Re: 4.8-rcN nfs, access(W_OK) on an immutable inode

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

 



> On Sep 5, 2016, at 13:19, J. R. Okajima <hooanon05g@xxxxxxxxx> wrote:
> 
> 
> Hello again,
> 
> linux-v4.8-rcN has a commit
> 	337684a 2016-08-07 fs: return EPERM on immutable inode
> 
> I am afraid NFS should follow the same behaviour. In other words,
> fs/nfs/dir.c:nfs_do_access() should return -EPERM when MAY_WRITE on an
> immutable inode. Currently it returns EACCES.
> 

The NFS protocol has no way to convey to the client that the inode is labeled as immutable on the server. The NFSv4.1 “retention_hold” mechanism described in RFC5661 comes close, and could possibly be used, but it is not implemented for now.

Note also that file immutability is not a POSIX concept, and EPERM is consequently not listed as one of the POSIX sanctioned return values for access(): http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html

Cheers
  Trond

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux