Does Linux support xattr in NFS?
IF tries using it in both NFS3 and NFS4 under Debian Lenny (2.6.32, both
server and client), without success.
# setfattr -n user.comment -v "this is a comment" /mnt/nfs
setfattr: /mnt/nfs: Operation not supported
--
Tomasz Chmielewski
http://blog.wpkg.org
DQpPbiBNb24sIDIwMTItMTEtMTIgYXQgMTQ6NDkgLTA1MDAsIE1hdHQgVy4gQmVuamFtaW4gd3Jv
dGU6DQo+IENhbiB5b3UgcmVzdGF0ZSByZWFzb25pbmcgd2h5IGl0IHdpbGwgbmV2ZXIgZG8gc28s
IGFuZCB3aGV0aGVyIHRoaXMgaXMgdGhlIHNhbWUgYXMgc2F5aW5nIGl0IHdpbGwgbmV2ZXIgaW1w
bGVtZW50IG5hbWVkIGF0dHJpYnV0ZXM/DQo+IA0KPiBUaGFua3MsDQo+IA0KPiBNYXR0DQo+IA0K
DQpDZXJ0YWlubHkuLi4NCg0KeGF0dHJzIGFyZSB0aGUgYmFzdGFyZCBvZmZzcHJpbmcgZnJvbSBo
ZWxsIG9mIGlvY3RsKCkgYW5kIHVzZXIgZGVmaW5lZA0KdHdpdHRlciBtZXNzYWdlLXNpemVkIG1l
dGFkYXRhLiBUaGUgdXNlci1kZWZpbmVkIG1ldGFkYXRhIGNvdWxkDQp0aGVvcmV0aWNhbGx5IGJl
IGV4cG9ydGVkIHNvIHRoYXQgd2UgY291bGQgYWxsIHJ1biAndHJhY2tlcicgcmVhbGx5DQpyZWFs
bHkgc2xvd2x5IG92ZXIgTkZTLCBidXQgdGhhdCB3b3VsZCBqdXN0IGVuY291cmFnZSB0aGUgcGVv
cGxlIHdobw0KYmVsaWV2ZSB0aGF0IHJ1bm5pbmcgYW4gaW9jdGwoKSBvdmVyIHRoZSBuZXR3b3Jr
IHdvdWxkIGJlIGEgcmVhbGx5IG5lYXQNCmlkZWEuDQoNCm5hbWVkIGF0dHJpYnV0ZXMgaGF2ZSBu
b3RoaW5nIHRvIGRvIHdpdGggeGF0dHJzLiBUaGV5IGFyZSBhIGx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tbWVudCAtdiAidGhpcyBpcyBhIGNvbW1lbnQiIC9tbnQvbmZzDQo+ID4gPiBz
ZXRmYXR0cjogL21udC9uZnM6IE9wZXJhdGlvbiBub3Qgc3VwcG9ydGVkDQo+ID4gPiANCj4gPiA+
IA0KPiA+ID4gLS0NCj4gPiA+IFRvbWFzeiBDaG1pZWxld3NraQ0KPiA+ID4gaHR0cDovL2Jsb2cu
d3BrZy5vcmcNCj4gPiA+IC0tDQo+ID4gPiBUbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDog
c2VuZCB0aGUgbGluZSAidW5zdWJzY3JpYmUgbGludXgtbmZzIg0KPiA+IGluIHRoZQ0KPiA+ID4g
Ym9keSBvZiBhIG1lc3NhZ2UgdG8gbWFqb3Jkb21vQHZnZXIua2VybmVsLm9yZyBNb3JlIG1ham9y
ZG9tbyBpbmZvDQo+ID4gYXQNCj4gPiA+IGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21v
LWluZm8uaHRtbA0KPiA+IE7vv73vv73vv73vv73vv71y77+977+9ee+/ve+/ve+/vWLvv71Y77+9
77+9x6d277+9Xu+/vSneunsubu+/vSvvv73vv73vv73vv71777+977+977+9Iu+/ve+/vV5u77+9
cu+/ve+/ve+/vXrvv73vv73vv71o77+977+977+977+9Ju+/ve+/ve+/vUfvv73vv73vv71o77+9
KO+/vemaju+/vd2iaiLvv73vv73vv71t77+977+977+977+977+9eu+/vd6W77+977+977+9Zu+/
ve+/ve+/vWjvv73vv73vv71+77+9be+/vQ0KPiANCg0KLS0gDQpUcm9uZCBNeWtsZWJ1c3QNCkxp
bnV4IE5GUyBjbGllbnQgbWFpbnRhaW5lcg0KDQpOZXRBcHANClRyb25kLk15a2xlYnVzdEBuZXRh
cHAuY29tDQp3d3cubmV0YXBwLmNvbQ0K
A few years ago, SGI tried to promote "NFS3 XATTR", an extension to
NFSv3 to add xattr support. It roughly added 3 functions to the protocol
(GETXATTR, SETXATTR, LISTXATTR), in a similar way as what 9p.2000L does.
Nothing but IRIX had this NFSv3 feature. As far as I know, it remained
quite exotic and stayed a SGI's thing.
Philippe
Matt W. Benjamin a écrit :
> Can you restate reasoning why it will never do so, and whether this is the same as saying it will never implement named attributes?
>
> Thanks,
>
> Matt
>
> ----- "Trond Myklebust" <[email protected]> wrote:
>
>
>> No. We will never support xattrs over NFS.
>>
>>
>>> -----Original Message-----
>>> From: [email protected] [mailto:linux-nfs-
>>> [email protected]] On Behalf Of Tomasz Chmielewski
>>> Sent: Monday, November 12, 2012 10:14 AM
>>> To: [email protected]
>>> Subject: xattr support in NFS?
>>>
>>> Does Linux support xattr in NFS?
>>>
>>> IF tries using it in both NFS3 and NFS4 under Debian Lenny (2.6.32,
>>>
>> both
>>
>>> server and client), without success.
>>>
>>> # setfattr -n user.comment -v "this is a comment" /mnt/nfs
>>> setfattr: /mnt/nfs: Operation not supported
>>>
>>>
>>> --
>>> Tomasz Chmielewski
>>> http://blog.wpkg.org
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs"
>>>
>> in the
>>
>>> body of a message to [email protected] More majordomo info
>>>
>> at
>>
>>> http://vger.kernel.org/majordomo-info.html
>>>
>> N�����r��y���b�X��ǧv�^�){.n�+����{���"��^n�r���z���h����&���G���h�(�階�ݢj"���m�����z�ޖ���f���h���~�m�
>>
>
>
Can you restate reasoning why it will never do so, and whether this is the same as saying it will never implement named attributes?
Thanks,
Matt
----- "Trond Myklebust" <[email protected]> wrote:
> No. We will never support xattrs over NFS.
>
> > -----Original Message-----
> > From: [email protected] [mailto:linux-nfs-
> > [email protected]] On Behalf Of Tomasz Chmielewski
> > Sent: Monday, November 12, 2012 10:14 AM
> > To: [email protected]
> > Subject: xattr support in NFS?
> >
> > Does Linux support xattr in NFS?
> >
> > IF tries using it in both NFS3 and NFS4 under Debian Lenny (2.6.32,
> both
> > server and client), without success.
> >
> > # setfattr -n user.comment -v "this is a comment" /mnt/nfs
> > setfattr: /mnt/nfs: Operation not supported
> >
> >
> > --
> > Tomasz Chmielewski
> > http://blog.wpkg.org
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-nfs"
> in the
> > body of a message to [email protected] More majordomo info
> at
> > http://vger.kernel.org/majordomo-info.html
> N�����r��y���b�X��ǧv�^�){.n�+����{���"��^n�r���z���h����&���G���h�(�階�ݢj"���m�����z�ޖ���f���h���~�m�
--
Matt Benjamin
The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI 48104
http://linuxbox.com
tel. 734-761-4689
fax. 734-769-8938
cel. 734-216-5309
Tm8uIFdlIHdpbGwgbmV2ZXIgc3VwcG9ydCB4YXR0cnMgb3ZlciBORlMuDQoNCj4gLS0tLS1Pcmln
aW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGludXgtbmZzLW93bmVyQHZnZXIua2VybmVsLm9y
ZyBbbWFpbHRvOmxpbnV4LW5mcy0NCj4gb3duZXJAdmdlci5rZXJuZWwub3JnXSBPbiBCZWhhbGYg
T2YgVG9tYXN6IENobWllbGV3c2tpDQo+IFNlbnQ6IE1vbmRheSwgTm92ZW1iZXIgMTIsIDIwMTIg
MTA6MTQgQU0NCj4gVG86IGxpbnV4LW5mc0B2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDogeGF0
dHIgc3VwcG9ydCBpbiBORlM/DQo+IA0KPiBEb2VzIExpbnV4IHN1cHBvcnQgeGF0dHIgaW4gTkZT
Pw0KPiANCj4gSUYgdHJpZXMgdXNpbmcgaXQgaW4gYm90aCBORlMzIGFuZCBORlM0IHVuZGVyIERl
YmlhbiBMZW5ueSAoMi42LjMyLCBib3RoDQo+IHNlcnZlciBhbmQgY2xpZW50KSwgd2l0aG91dCBz
dWNjZXNzLg0KPiANCj4gIyBzZXRmYXR0ciAtbiB1c2VyLmNvbW1lbnQgLXYgInRoaXMgaXMgYSBj
b21tZW50IiAvbW50L25mcw0KPiBzZXRmYXR0cjogL21udC9uZnM6IE9wZXJhdGlvbiBub3Qgc3Vw
cG9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