OnOS X, saving breaks hard links

خرید بک لینک

I'm using OS X 10.10.5, and I'm seeing a strange issue with hardlinked files. When I update one of the linked files and save the change, the other linked file becomes blank -- a zero-byte file. This happens when either linked file is updated. On investigation, it appears that the inode of the saved file is changing, i.e. before saving, both files have an inode 1777192, and after saving the updated file has an inode 1777268, while the linked file is still 1777192.

Is this normal behavior for OS X? What can I do to maintain the link when updating the files? I use hardlinks to keep certain files in a folder I rsync to an exteal server, so I need to be able to update these and maintain the link. Symlinks break when they're overwritten, so I can't use them for this purpose.

If it's relevant, this computer has a networked account on a campus network.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 334 تاريخ: سه شنبه 5 مرداد 1395 ساعت: 21:26

صفحه بندی