tech-kern archive

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

Re: extattr namespaces



hi,

> Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
> 
>> I'm not sure you can even read them: on freebsd "user.foo.bar" will be stored
>> as name "foo.bar" in (integer) namespace user. When we'll read it we'll
>> find foo in (integer) namespace user but we don't know which namespace
>> it really belongs to (as we store the namespace with the name);
>> and for us this will be name "bar" in namespace foo.
> 
> I guess the trick is that anything outside (system, trusted, security)
> will be stored in (integer) user namespace. Therefore you an read it,
> the problem is that you do not know if you should present user.foo.bar
> or foo.bar to the user.

how about the following mapping?

        xattr name string <-> ufs on-disk

        "system.foo"      <-> SYSTEM "foo"
        "others.bar"      <-> USER "others.bar"

YAMAMOTO Takashi

> 
> -- 
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index