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 10:37:25AM +0000, Emmanuel Dreyfus wrote:
> On Mon, Feb 13, 2012 at 11:27:29AM +0100, Manuel Bouyer wrote:
> > But then, if you see USER "" in the filesystem, you don't know
> > if it should be mapped to or
> > I don't think this can work.
> If the disk is from FreeBSD, you mount with  -o stripxattr. When
> you read it, USER "" becomes When you write 
>, it is stored as USER "". Therefore you can use 
> the Linux-like API and you will not screw up what is stored on disk.

And what happens if you write "" ? You could just error out in
this case.

> If the disk is nativr, you mount without -o stripxattr, and USER ""
> remains when read. And when foo;bar is writte, it goes to  USER 
> ""
> It seems to work, doesn't it?

If a string which doesn't start with system or user errors out in
the stripxattr case, then it should work

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index