Skip to contentSkip to conversation

NFS honouring chattr +a

DISCUSSION Paul Stepowski 2 participants 2 messages May 3, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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