[Libguestfs] [RFC] Inconsistent output of guestfs_list_filesystems

Nikolay Ivanets stenavin at gmail.com
Tue Jan 23 12:26:38 UTC 2018


2018-01-23 12:11 GMT+02:00 Richard W.M. Jones <rjones at redhat.com>:
> On Tue, Jan 23, 2018 at 12:44:10AM +0200, Mykola Ivanets wrote:
>> Before I rush to change something I request your comments on the subject.
>> Let me know what do you think and if it does make sense.
>>
>> The issue: guesfs_list_filesystems is inconsistent in its output.
>
> The concept of guestfs_list_filesystem is that it returns a list
> something like the list that running ‘df’ inside a traditional Unix
> would return, ie. a list of mounted filesystems backed by real
> devices, plus swap.
>
> That's not an exact definition.  A better way to understand it might
> be to look at how it is is used (ie. ‘git grep list[-_]filesystems’).

Isn't more like 'lsblk' rather than 'df'?  Because 'df' is useless
with unmounted
file systems where is 'lsblk' discovers all available block devices.

--
    Mykola Ivanets




More information about the Libguestfs mailing list