Re: [PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-31 Thread Dave Chinner
On Sat, Jul 29, 2017 at 12:43:46PM -0700, Dan Williams wrote: > Record the immutable state in the on-disk inode so that on the next boot > the protections against reflink and hole punch etc are automatically > restored. Keep in mind we can't do this without all the userspace side support for the

Re: [PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-31 Thread Dave Chinner
On Sat, Jul 29, 2017 at 12:43:46PM -0700, Dan Williams wrote: > Record the immutable state in the on-disk inode so that on the next boot > the protections against reflink and hole punch etc are automatically > restored. Keep in mind we can't do this without all the userspace side support for the

Re: [PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-31 Thread Darrick J. Wong
On Sat, Jul 29, 2017 at 12:43:46PM -0700, Dan Williams wrote: > Record the immutable state in the on-disk inode so that on the next boot > the protections against reflink and hole punch etc are automatically > restored. > > This deliberately does not add a FS_XFLAG_IOMAP_IMMUTABLE since >

Re: [PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-31 Thread Darrick J. Wong
On Sat, Jul 29, 2017 at 12:43:46PM -0700, Dan Williams wrote: > Record the immutable state in the on-disk inode so that on the next boot > the protections against reflink and hole punch etc are automatically > restored. > > This deliberately does not add a FS_XFLAG_IOMAP_IMMUTABLE since >

[PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-29 Thread Dan Williams
Record the immutable state in the on-disk inode so that on the next boot the protections against reflink and hole punch etc are automatically restored. This deliberately does not add a FS_XFLAG_IOMAP_IMMUTABLE since fallocate(2) is the path to toggle this flag. Cc: Jan Kara Cc:

[PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-29 Thread Dan Williams
Record the immutable state in the on-disk inode so that on the next boot the protections against reflink and hole punch etc are automatically restored. This deliberately does not add a FS_XFLAG_IOMAP_IMMUTABLE since fallocate(2) is the path to toggle this flag. Cc: Jan Kara Cc: Jeff Moyer Cc: