[Libguestfs] [PATCH 2/4] daemon: fstrim: Turn "discard operation is not supported" into ENOTSUP.
Richard W.M. Jones
rjones at redhat.com
Fri Aug 5 14:08:26 UTC 2016
On Fri, Aug 05, 2016 at 04:05:15PM +0200, Pino Toscano wrote:
> On Friday, 5 August 2016 12:22:45 CEST Richard W.M. Jones wrote:
> > Because we run the external fstrim command we don't have access to the
> > kernel errno when it fails. However in the case where it prints this
> > specific error message, turn that into errno ENOTSUP.
> > ---
>
> Can you please note this behaviour in the documentation of the fstrim
> API?
Sure.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
More information about the Libguestfs
mailing list