Displaying 4 results from an estimated 4 matches for "emulate_zero_with_pwrit".
Did you mean:
emulate_zero_with_pwrite
2018 Mar 22
0
Re: [PATCH v6] v2v: Add -o rhv-upload output mode.
...the
right thing to do unless we can guarantee that trimmed data is read
back as zeroes.
> > + # so nbdkit could call this even if the server doesn't support
> > + # zeroing. If this is the case we must emulate.
> > + if not h['can_zero']:
> > + emulate_zero_with_pwrite(h, count, offset)
> > + return
> > +
> > + # Construct the JSON request for zeroing.
> > + buf = json.dumps({'op': "zero",
> > + 'offset': offset,
> > + 'size': count,
>...
2018 Mar 21
3
Re: [PATCH v6] v2v: Add -o rhv-upload output mode.
...calls, there is no 'can_zero' method
>
Do you mean h["can_zero"] set in getoptions()?
> + # so nbdkit could call this even if the server doesn't support
> + # zeroing. If this is the case we must emulate.
> + if not h['can_zero']:
> + emulate_zero_with_pwrite(h, count, offset)
> + return
> +
> + # Construct the JSON request for zeroing.
> + buf = json.dumps({'op': "zero",
> + 'offset': offset,
> + 'size': count,
> + 'fl...
2018 Mar 21
2
[PATCH v6] v2v: Add -o rhv-upload output mode.
v5 was here:
https://www.redhat.com/archives/libguestfs/2018-March/msg00032.html
There is only a single patch in this version because the other
patches went upstream.
This patch adds the virt-v2v -o rhv-upload mode
(https://bugzilla.redhat.com/show_bug.cgi?id=1557273).
Compared to v5, this adds the ability to make zero, trim and flush
requests to the oVirt imageio server
2018 Mar 21
0
[PATCH v6] v2v: Add -o rhv-upload output mode.
...transfer_service=h['transfer_service']
+
+ # Unlike the trim and flush calls, there is no 'can_zero' method
+ # so nbdkit could call this even if the server doesn't support
+ # zeroing. If this is the case we must emulate.
+ if not h['can_zero']:
+ emulate_zero_with_pwrite(h, count, offset)
+ return
+
+ # Construct the JSON request for zeroing.
+ buf = json.dumps({'op': "zero",
+ 'offset': offset,
+ 'size': count,
+ 'flush': False})
+
+ http.putre...