[Libguestfs] [PATCH v2 1/4] file: Avoid unsupported fallocate() calls
Nir Soffer
nsoffer at redhat.com
Mon Aug 13 20:58:22 UTC 2018
On Mon, Aug 13, 2018 at 8:44 PM Eric Blake <eblake at redhat.com> wrote:
> > #ifdef FALLOC_FL_ZERO_RANGE
> > - r = do_fallocate (h->fd, FALLOC_FL_ZERO_RANGE, offset, count);
> > - if (r == -1 && errno != EOPNOTSUPP) {
> > - nbdkit_error ("zero: %m");
> > + if (h->can_zero_range) {
> > + r = do_fallocate (h->fd, FALLOC_FL_ZERO_RANGE, offset, count);
> > + if (r== 0)
>
> Spacing is off.
>
I'll fix it in the next version.
Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180813/b57461a0/attachment.htm>
More information about the Libguestfs
mailing list