Re: [Qemu-devel] semantics of FIEMAP without FIEMAP_FLAG_SYNC (was Re: [PATCH v5 13/14] nbd: Implement NBD_CMD_WRITE_ZEROES on server)

2016-07-21 Thread Pádraig Brady
On 21/07/16 13:41, Dave Chinner wrote: > On Wed, Jul 20, 2016 at 09:40:06AM -0400, Paolo Bonzini wrote: 1) is it expected that SEEK_HOLE skips unwritten extents? >>> >>> There are multiple answers to this, all of which are correct depending >>> on current context and state: >>> >>> 1. No - som

Re: [Qemu-devel] semantics of FIEMAP without FIEMAP_FLAG_SYNC (was Re: [PATCH v5 13/14] nbd: Implement NBD_CMD_WRITE_ZEROES on server)

2016-07-21 Thread Pádraig Brady
On 21/07/16 12:43, Dave Chinner wrote: > On Wed, Jul 20, 2016 at 03:35:17PM +0200, Niels de Vos wrote: >> On Wed, Jul 20, 2016 at 10:30:25PM +1000, Dave Chinner wrote: >>> On Wed, Jul 20, 2016 at 05:19:37AM -0400, Paolo Bonzini wrote: Adding ext4 and XFS guys (Lukas and Dave respectively). As

Re: [Qemu-devel] [PATCH] copy, dd: simplify and optimize NUL bytes detection

2015-10-25 Thread Pádraig Brady
On 24/10/15 03:24, Pádraig Brady wrote: > On 23/10/15 12:15, Pádraig Brady wrote: >> On 22/10/15 20:47, Paolo Bonzini wrote: >>> >>> >>> On 22/10/2015 19:39, Radim Krčmář wrote: >>>> 2015-10-22 18:14+0200, Paolo Bonzini: >>>>> On

Re: [Qemu-devel] [PATCH] copy, dd: simplify and optimize NUL bytes detection

2015-10-23 Thread Pádraig Brady
On 23/10/15 12:15, Pádraig Brady wrote: > On 22/10/15 20:47, Paolo Bonzini wrote: >> >> >> On 22/10/2015 19:39, Radim Krčmář wrote: >>> 2015-10-22 18:14+0200, Paolo Bonzini: >>>> On 22/10/2015 18:02, Eric Blake wrote: >>>>> I see a bug i

Re: [Qemu-devel] [PATCH] copy, dd: simplify and optimize NUL bytes detection

2015-10-23 Thread Pádraig Brady
On 22/10/15 20:47, Paolo Bonzini wrote: > > > On 22/10/2015 19:39, Radim Krčmář wrote: >> 2015-10-22 18:14+0200, Paolo Bonzini: >>> On 22/10/2015 18:02, Eric Blake wrote: I see a bug in there: >>> >>> Of course. You shouldn't have told me what the bug was, I deserved >>> to look for it myse

Re: [Qemu-devel] [PATCH] copy, dd: simplify and optimize NUL bytes detection

2015-10-23 Thread Pádraig Brady
On 22/10/15 20:47, Paolo Bonzini wrote: > > > On 22/10/2015 19:39, Radim Krčmář wrote: >> 2015-10-22 18:14+0200, Paolo Bonzini: >>> On 22/10/2015 18:02, Eric Blake wrote: I see a bug in there: >>> >>> Of course. You shouldn't have told me what the bug was, I deserved >>> to look for it myse

Re: [Qemu-devel] [PATCH] copy, dd: simplify and optimize NUL bytes detection

2015-10-22 Thread Pádraig Brady
On 22/10/15 15:44, Paolo Bonzini wrote: > > > On 22/10/2015 16:37, Eric Blake wrote: + /* Check first 16 bytes manually. */ + for (len = 0; len < 16; len++) +{ + if (! bufsize) +return true; + if (*p) +return false; + p

Re: [Qemu-devel] [PATCH] block/raw-posix: use seek_hole ahead of fiemap

2014-09-25 Thread Pádraig Brady
t; >> Is this fix for the corruptor? The commit message doesn't make it >> clear. If so and fiemap is safe now, why would we still prefer >> seek_hole? syncing a file has performance side effects, so best go try the (more portable) seek hole interface. > The preference

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-09-15 Thread Pádraig Brady
I see seek hole is supported in the latest qemu-img so I would reorder so that's tried first like: if lseek(SEEK_HOLE) == ENOTSUP use_that if fiemap(FIEMAP_FLAG_SYNC) use_that -- You received this bug notification because you are a member of qemu- devel-ml, which