On Nov 14, 2007, at 11:32 PM, Wichert Akkerman wrote:
> I understand the richness of the filesystem very well. What I don't
> understand is why OSX tools prefer to create lots of special files
> instead of using standard options to hide them. For example the tar
> format is quite flexible and allows you to add custom block types. If
> Apple had used that this problem would not exist.
>
> Wichert.
It's my understanding that the metadata support in tar that was added
in 10.4 is still experimental, but I believe the intent was to plug
into the same API that the other OS X tools use to keep track of this
metadata. It probably seemed natural to represent the metatadata
using the AppleDouble format, which after all has been around for
awhile and is supported by a host of other tools.
Perhaps, as you say, it might have been useful to add a "custom block
type" to handle this. But not knowing the technical issues involved,
I'm hesitant to criticize these sorts of decisions. I understand
that the regular tar utility doesn't even *see* the metadata because
it doesn't know how to get this information from the HFS+ filesystem
API. So they need to add this ability to tar. I suspect that in
order to get two-way translation of this metadata, you probably need
a sane fallback in case someone uses a non-apple tar on a non-HFS+
filesystem, so the AppleDouble format with hidden files may make a
lot of sense. Could you even get this sort of sane fallback using
custom block types?
What I think they fumbled on is not providing some sort of command
line option to turn off the retention of metadata when using tar.
Using an environment variable to turn this off seems a little
clumsy. I noticed that the Mac version of rsync has an "extended-
attributes" option "-E" that turns on support for metadata.
Ric
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers