rsync с Mac 10.13 на Pop _OS 20.04 создает скрытые файлы из Mac xattr

Это связано с обратным переносом изменений, внесенных Red Hat в ядро ​​7.5 (v3.10.0 -862 ). lsвыполняет системный вызов getdents(), который теперь выполняет iterate_dir()вместо readdir().

Возврат к ядру версии 3.10.0 -693.21.1 должен решить проблему.

0
17.09.2020, 00:47
1 ответ

Я думаю, что попытаюсь ответить на свой вопрос после некоторого исследования. Когда я посмотрел файл ```. _мой -файл.txt ``в моей системе Linux он вернул «файл AppleDouble Macintosh». Поэтому я искал «appledouble».

Во-первых, из моего ОБНОВЛЕНИЯ 2 выше:

With Mac OS X, there is a mechanism called "Apple Double" that allows the system to work with disk formats that do not have a forked file feature... Apple Double does this by converting the file into two separate files. The first new file keeps the original name and contains the data fork of the original file. The second new file has the name of the original file prefixed by a "._ " and contains the resource fork of the original file.

Кажется, что rsyncиз Mac в Linux создаст эти файлы ". _", а rsyncиз Linux обратно в Mac отправит их обратно на Mac, если я сначала не удалю их (, например,find. -name *._* -delete)или исключить их.

Если эти. _файлы попадают на Mac, есть команда Macdot_clean:

...recursively merges all._* files with their corresponding native files...

--Справочная страница dot _clean .

Это обсуждалось на Ask Different здесь , здесь и здесь .

0
18.03.2021, 23:04

Теги

Похожие вопросы