Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread Eric Eastman
On Wed, Jan 28, 2015 at 11:43 AM, Gregory Farnum wrote: > > On Wed, Jan 28, 2015 at 10:06 AM, Sage Weil wrote: > > On Wed, 28 Jan 2015, John Spray wrote: > >> On Wed, Jan 28, 2015 at 5:23 PM, Gregory Farnum wrote: > >> > My concern is whether we as the FS are responsible for doing anything > >>

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread Gregory Farnum
On Wed, Jan 28, 2015 at 10:06 AM, Sage Weil wrote: > On Wed, 28 Jan 2015, John Spray wrote: >> On Wed, Jan 28, 2015 at 5:23 PM, Gregory Farnum wrote: >> > My concern is whether we as the FS are responsible for doing anything >> > more than storing and returning that immutable flag ? are we suppos

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread Sage Weil
On Wed, 28 Jan 2015, John Spray wrote: > On Wed, Jan 28, 2015 at 5:23 PM, Gregory Farnum wrote: > > My concern is whether we as the FS are responsible for doing anything > > more than storing and returning that immutable flag ? are we supposed > > to block writes to anything that has it set? That

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread John Spray
On Wed, Jan 28, 2015 at 5:23 PM, Gregory Farnum wrote: > My concern is whether we as the FS are responsible for doing anything > more than storing and returning that immutable flag — are we supposed > to block writes to anything that has it set? That could be much > trickier... The VFS layer is c

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread Gregory Farnum
On Wed, Jan 28, 2015 at 5:24 AM, John Spray wrote: > We don't implement the GETFLAGS and SETFLAGS ioctls used for +i. > > Adding the ioctls is pretty easy, but then we need somewhere to put > the flags. Currently we don't store a "flags" attribute on inodes, > but maybe we could borrow the high b

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread Eric Eastman
Thank you for the reply. This is a feature that we would like to see. Should I write a cephfs tracker report on this as a possible future enhancement? On Wed, Jan 28, 2015 at 6:24 AM, John Spray wrote: > We don't implement the GETFLAGS and SETFLAGS ioctls used for +i. > > Adding the ioctls is pr

Re: [ceph-users] chattr +i not working with cephfs

2015-01-28 Thread John Spray
We don't implement the GETFLAGS and SETFLAGS ioctls used for +i. Adding the ioctls is pretty easy, but then we need somewhere to put the flags. Currently we don't store a "flags" attribute on inodes, but maybe we could borrow the high bits of the mode attribute for this if we wanted to implement

[ceph-users] chattr +i not working with cephfs

2015-01-27 Thread Eric Eastman
Should chattr +i work with cephfs? Using ceph v0.91 and a 3.18 kernel on the CephFS client, I tried this: # mount | grep ceph 172.16.30.10:/ on /cephfs/test01 type ceph (name=cephfs,key=client.cephfs) # echo 1 > /cephfs/test01/test.1 # ls -l /cephfs/test01/test.1 -rw-r--r-- 1 root root 2 Jan 27