Subject: Re: CVS commit: src
To: Jason Thorpe <thorpej@shagadelic.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: tech-kern
Date: 06/28/2005 22:16:33
--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

On Tue, Jun 28, 2005 at 10:54:34AM -0700, Jason Thorpe wrote:
> On Jun 28, 2005, at 6:28 AM, Reinoud Zandijk wrote:
> >yup...  though i have a similar naming problem as has HFS+. On UDF  
> >a file
> >can have an associated streamdir with it basicly turning it into a
> >composite of a file and a directory with named streams. Directories  
> >though
> >can also have an associated streamdir with it. (!)
> 
> Yah, this is done in Mac OS X on HFS+ file systems like so:
> 
>     /path/to/regular/file
>     /path/to/regular/file/..namedfork/data    <- equivalent to first  
> example
>     /path/to/regular/file/..namedfork/rsrc    <- Mac OS X "resource  
> fork"
> 
> This is handled by the HFS+-specific lookup routine.

So they are listable? and a directory then represented like 
/path/to/regular/directory/..namedfork/* ?

Is the "..namedfork" name a constant name?

> >so maybe it would be good to think of a way of adressing such named  
> >streams
> >and the file's associated attributes. The chflags(1) interface is the
> >closest matching interface but far too limited.
> 
> It should be pretty straight-forward to encapsulate this type of sub- 
> file handling into the file system itself... OTOH, it might map  
> pretty well to what Gordon wants with openat() and friends.

hmmm... openat() could be used for the streamdirs but isnt openat() a 
generic relative adressing way?

For the extra time attributes that might be handy i'll think of a 
VOP_{GET,SET}TIMES() proposal wich shouldn't be to hard to implement.

Cheers,
Reinoud


--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQsGwGoKcNwBDyKpoAQJcNAf/XhYfS2wfBQIgDeZdXnx7H68uSnZAiJe8
T6ellD4MvKgmy1g2m6tVhwOTobSjp5brwzEojGJze2pgkExiD0VQer82YWy35lkt
JI2A8urPXiE+hkMA56wXtUT6WF7YcbBLrFRBptJ3fcWWMYkJW5Bwpi3WECRESHOY
YQiERWu99jHWGI7YlQv4t3gN6l+vM+CmVD0vYKjl2QYu8UzQs/lbYmCc9aoO+aNL
zWbmzHguiTjhIDyNe39JBsWIHKfle5LEvmJi2fNTS4ieMM56omCz+yFsFBebHWbZ
wrnCMu/uSox44y+OdEVUHn1FhSTqPIkIjbcL9y58du8Dg3FEnOdbRQ==
=NvHt
-----END PGP SIGNATURE-----

--17pEHd4RhPHOinZp--