NFS honouring chattr +a
Subsystems (2)
Hi,
I've already searched the archives on this topic and didn't see anything useful.
I set up a test NFS server (v3) on a linux box and exported a partition
rw,no_squash_root. I set the attributes of a file in the exported partition as follows:
# chattr +a <file>
So the file is append only. When I attempt to read/write/append to the file I get a permission denied errror. Is there any way of getting NFS to honour this attribute as append only?
NOTE: I saw an archived post from Chris Mason suggesting a patch that looks like it will do what I'm asking, but there was no response to his message.
Thanks,
Paul
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
ty den 03.05.2005 Klokka 15:29 (+1000) skreiv Paul Stepowski:
Quoted 7 lines
Hi,
I've already searched the archives on this topic and didn't see anything useful.
I set up a test NFS server (v3) on a linux box and exported a partition
rw,no_squash_root. I set the attributes of a file in the exported partition as follows:
Quoted 5 lines
# chattr +a <file>So the file is append only. When I attempt to read/write/append to the file I get a permission denied errror. Is there any way of getting NFS to honour this attribute as append only?
There is a patch in recent kernels that prevents NFS from returning an I/O error in the case of a READ, but there is no protocol support at all for APPEND-only files, so there is nothing we can do for writes.
You'll have to find a different solution to your problem.
Cheers,
Trond
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs