jallenkrueger / profuse

Automatically exported from code.google.com/p/profuse
0 stars 0 forks source link

hfs support for large xattr? #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Copying a prodos file with a large resource fork (prodos.ResourceFork)  to HFS 
causes problems:

kelvin-sherlocks-imac:tmp kelvin$ ~/Projects/profuse/xattr list 
/Volumes/Genesys.1.3.Dk1/Genesys 
com.apple.FinderInfo         32
prodos.AuxType                2
prodos.FileType               1
prodos.ResourceFork      119811

kelvin-sherlocks-imac:tmp kelvin$ cp /Volumes/Genesys.1.3.Dk1/Genesys ./
cp: /Volumes/Genesys.1.3.Dk1/Genesys: could not copy extended attributes to 
./Genesys: 
Argument list too long

Original issue reported on code.google.com by ksherl...@gmail.com on 6 Oct 2009 at 1:25

GoogleCodeExporter commented 9 years ago
http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/3#
---
Extended attributes in HFS+ are implemented as named forks in the Attributes 
File. But unlike resource forks, 
which can be very large (up to the maximum file size supported by the file 
system), extended attributes in 
HFS+ are stored “inline” in the Attributes File. In practice, this means a 
limit of about 128 bytes per attribute. 
But it also means that the disk head doesn’t need to take a trip to another 
part of the disk to get the actual 
data.
---

the IIgs resource fork should therefore be exported as com.apple.ResourceFork.  
However, that may confuse 
Finder or anyone else expecting a macintosh resource fork.

Original comment by ksherl...@gmail.com on 6 Oct 2009 at 1:29