Summary: | 'list-filesystems' does not know about virtio 9p filesystems or detect existing mounts | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Daniel Berrangé <berrange> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | mbooth, moli, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-22 17:01:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: |
Description
Daniel Berrangé
2011-06-21 14:08:00 UTC
I found a place in sysfs you can enumerate 9p filesystems. Assuming the 'virtio_9p' module has been loaded, you can iterate reading the 'mount_tag' file from the subdirectories: /sys/bus/virtio/drivers/9pnet_virtio/virtio*/ list-filesystems is a "meta" API call. It is implemented on the library side (not in the daemon) and works by calling out to various daemon functions including list-devices, list-partitions, lvs and vfs-type. http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/listfs.c;hb=HEAD It would therefore make sense to implement another daemon function like "list-9ps" which would return all 9p filesystems (by looking in the /sys directory mentioned above). Then extend list-filesystems to call this. Presumably all 9p filesystems will have the type "9p" so it won't be necessary to call vfs-type on them. Although use of mount_tag (instead of a device) is going to cause no end of confusion throughout the rest of the API ... Patches posted here: https://www.redhat.com/archives/libguestfs/2011-June/msg00122.html These are not complete or tested yet. |