Re: [PATCH] Btrfs: fix snapshot inconsistency after a file write followed by truncate

2014-10-28 Thread Filipe David Manana
On Mon, Oct 27, 2014 at 7:57 PM, Chris Mason c...@fb.com wrote: On Tue, Oct 21, 2014 at 6:12 AM, Filipe Manana fdman...@suse.com wrote: If right after starting the snapshot creation ioctl we perform a write against a file followed by a truncate, with both operations increasing the file's

Re: [PATCH] Btrfs: fix snapshot inconsistency after a file write followed by truncate

2014-10-27 Thread Chris Mason
On Tue, Oct 21, 2014 at 6:12 AM, Filipe Manana fdman...@suse.com wrote: If right after starting the snapshot creation ioctl we perform a write against a file followed by a truncate, with both operations increasing the file's size, we can get a snapshot tree that reflects a state of the source

[PATCH] Btrfs: fix snapshot inconsistency after a file write followed by truncate

2014-10-21 Thread Filipe Manana
If right after starting the snapshot creation ioctl we perform a write against a file followed by a truncate, with both operations increasing the file's size, we can get a snapshot tree that reflects a state of the source subvolume's tree where the file truncation happened but the write operation