Re: [PATCH] btrfs: make reflinks respect O_SYNC O_DSYNC and S_SYNC flags

2021-04-01 Thread David Sterba
On Wed, Mar 31, 2021 at 11:07:26AM +, Filipe Manana wrote: > On Mon, Mar 29, 2021 at 7:49 PM David Sterba wrote: > > > > On Tue, Mar 23, 2021 at 06:39:49PM +, fdman...@kernel.org wrote: > > > From: Filipe Manana > > > > > > If we reflink to or from a file opened with O_SYNC/O_DSYNC or to/

Re: [PATCH] btrfs: make reflinks respect O_SYNC O_DSYNC and S_SYNC flags

2021-03-31 Thread Filipe Manana
On Mon, Mar 29, 2021 at 7:49 PM David Sterba wrote: > > On Tue, Mar 23, 2021 at 06:39:49PM +, fdman...@kernel.org wrote: > > From: Filipe Manana > > > > If we reflink to or from a file opened with O_SYNC/O_DSYNC or to/from a > > file that has the S_SYNC attribute set, we totally ignore that a

Re: [PATCH] btrfs: make reflinks respect O_SYNC O_DSYNC and S_SYNC flags

2021-03-29 Thread David Sterba
On Tue, Mar 23, 2021 at 06:39:49PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > If we reflink to or from a file opened with O_SYNC/O_DSYNC or to/from a > file that has the S_SYNC attribute set, we totally ignore that and do not > durably persist the reflink changes. Since a reflink