Re: What's a realistic size for xattr?

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

 



On Thu, Mar 13, 2008 at 12:07:37AM +0000, Jamie Lokier wrote:
> On Macs, xattrs are used to store the "resource fork", which contains
> icons etc. so can be quite large.  Of course that's not done on Linux.
> People do sometimes try to copy those files to Linux and back, and it
> generally fails because Linux refuses the large xattrs.

The resource fork in HFS/HFS+ is not considered an xattr at all. In fact,
it's effectively another file that just happens to be attached to the
same inode-equivalent. There is a data fork (seen as a normal file
for unix) and the resource fork, and it's just the posix style API that
treats one as more important than the other. The two are considered
peers in the on-disk format and in the classic mac API.

The only way I've seen the resource fork stored on a non-Apple fs is
as a named stream style format or some kind of encoded single file
format like AppleSingle/AppleDouble or BinHex.

If you really want to talk about size, there is a lot more than icons
and metadata stored in the resource fork. In the m68k era, the compiled
code was also stored in the resource fork with each segment showing up
as a numbered resource of type 'CODE' that could be dynamically loaded
and released. If you look at an application from those days, it most
likely has a 0-length data fork.

	Brad Boyer
	flar@xxxxxxxxxxxxx

--
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