search for: guestfs_mountable_volume

Displaying 1 result from an estimated 1 matches for "guestfs_mountable_volume".

2016 Feb 26
1
Displaying mountables in the error output of guestfish etc
...think probably the way to solve this is with new public APIs for returning the device and volume name from a mountable. Similar to guestfs_internal_parse_mountable in fact, but a public API that we commit to. char *device = guestfs_mountable_device (g, const char *mountable); char *volume = guestfs_mountable_volume (g, const char *mountable); If a mountable doesn't have a (sub-)volume, the second API should probably return a well-defined errno (ESRCH or ENOENT?). The code in fish/options.c then just has to: foreach fs in guestfs_list_filesystems: device = guestfs_mountable_device fs volume =...