Re: [RFC PATCH v4 4/6] Btrfs: prevent ioctls from interfering with a swap file

2018-08-21 Thread Omar Sandoval
On Fri, May 25, 2018 at 06:10:43PM +0200, David Sterba wrote: > On Fri, May 25, 2018 at 09:00:58AM -0700, Omar Sandoval wrote: > > On Fri, May 25, 2018 at 04:50:55PM +0200, David Sterba wrote: > > > On Thu, May 24, 2018 at 02:41:28PM -0700, Omar Sandoval wrote: > > > > From: Omar Sandoval > > > >

Re: [RFC PATCH v4 4/6] Btrfs: prevent ioctls from interfering with a swap file

2018-05-25 Thread David Sterba
On Fri, May 25, 2018 at 09:00:58AM -0700, Omar Sandoval wrote: > On Fri, May 25, 2018 at 04:50:55PM +0200, David Sterba wrote: > > On Thu, May 24, 2018 at 02:41:28PM -0700, Omar Sandoval wrote: > > > From: Omar Sandoval > > > > > > When a swap file is active, we must make sure that the extents of

Re: [RFC PATCH v4 4/6] Btrfs: prevent ioctls from interfering with a swap file

2018-05-25 Thread Omar Sandoval
On Fri, May 25, 2018 at 04:50:55PM +0200, David Sterba wrote: > On Thu, May 24, 2018 at 02:41:28PM -0700, Omar Sandoval wrote: > > From: Omar Sandoval > > > > When a swap file is active, we must make sure that the extents of the > > file are not moved and that they don't become shared. That means

Re: [RFC PATCH v4 4/6] Btrfs: prevent ioctls from interfering with a swap file

2018-05-25 Thread David Sterba
On Thu, May 24, 2018 at 02:41:28PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > When a swap file is active, we must make sure that the extents of the > file are not moved and that they don't become shared. That means that > the following are not safe: > > - chattr +c (enable compression