diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-01-11 10:43:51 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-01-11 11:09:41 +0000 |
commit | 0c60e4d9dd6549c2135699490ba8a9ec1dd50ab9 (patch) | |
tree | 25e5e1f71bb285fd4964bf2c6c1489656e74a241 /generator | |
parent | fc241abdbac7a016cd2fac169ad64876107df3c8 (diff) | |
download | libguestfs-0c60e4d9dd6549c2135699490ba8a9ec1dd50ab9.tar.gz libguestfs-0c60e4d9dd6549c2135699490ba8a9ec1dd50ab9.tar.xz libguestfs-0c60e4d9dd6549c2135699490ba8a9ec1dd50ab9.zip |
fish: Don't fail if some mountpoints in /etc/fstab are bogus (RHBZ#668574).
Fix guestfish (and other C tools) so that they ignore errors
when /etc/fstab contains bogus entries.
Update the documentation for inspect-get-mountpoints to emphasize
that callers must be aware of this when mounting the returned
values.
Add a regression test.
Update the example code ("inspect_vm") to reflect the way this
API ought to be called.
For more detail see:
https://bugzilla.redhat.com/show_bug.cgi?id=668574
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generator_actions.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 5c6ce21c..ccaf10a7 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -907,6 +907,10 @@ This returns a hash of where we think the filesystems associated with this operating system should be mounted. Callers should note that this is at best an educated guess made by reading configuration files such as C</etc/fstab>. +I<In particular note> that this may return filesystems +which are non-existent or not mountable and callers should +be prepared to handle or ignore failures if they try to +mount them. Each element in the returned hashtable has a key which is the path of the mountpoint (eg. C</boot>) and a value |