Re: [PATCH] hfsplus: read support for directory hardlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/19/11 13:09, Christoph Hellwig wrote:
> Given that our view of how these links behave was a bit too simplistic
> I'll drop the patch from my tree for now.  I'm actually not quite sure
> if we can implement the required locking correctly.  It would be
> interesting to see what Apple does given that the hfsplus code is
> part of the xnu source tarball, but given their general implementaton
> quality I'd expect something utterly hacky.

I really don't see how the patch makes anything worse. In fact it makes things
slightly better by preventing modifications of the files in the hidden
directory. The raw files are currently exposed and all renames possible with the
patch are equally possible without it.

Moreover, I've done some more tests the last few weeks, and it turns out that
Apple only implements folder hardlinks for journaled HFS+. Since journaled HFS+
is only supported readonly by the hfsplus driver, the write operations are
currently not an issue.

It seems the appropriate read-only patch would ensure that the destination
folder is always hidden, and folder hardlinks are only ever resolved when the
filesystem is mounted read only. This will:
 - prevent creation of folder hardlinks independent of whether
   the filesystem is readonly or not;
 - enable navigation of any folder hardlinks when mounted readonly;
 - ensure all write operations work well for files not beneath a folder
   hardlink, including all files on filesystems without folder hardlinks.

Thoughts?
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux