tech-kern archive

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

Re: extattr namespaces



On Mon, Feb 13, 2012 at 11:27:29AM +0100, Manuel Bouyer wrote:
> But then, if you see USER "foo.bar" in the filesystem, you don't know
> if it should be mapped to user.foo.bar or foo.bar.
> I don't think this can work.

If the disk is from FreeBSD, you mount with  -o stripxattr. When
you read it, USER "foo.bar" becomes user.foo.bar. When you write 
user.foo.bar, it is stored as USER "foo.bar". Therefore you can use 
the Linux-like API and you will not screw up what is stored on disk.

If the disk is nativr, you mount without -o stripxattr, and USER "foo.bar"
remains foo.bar when read. And when foo;bar is writte, it goes to  USER 
"foo.bar"

It seems to work, doesn't it?

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index