diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-09 15:56:20 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-09 16:10:24 +0100 |
commit | 5546ea6d68532caa69fbede1f29385afe34e7362 (patch) | |
tree | cf323c0cabe09a9303251abd8566c3851fdc64ad /fuse/guestmount.pod | |
parent | bfbfe6dd788ee3705383b544c5bc238a7dd5ca53 (diff) | |
download | libguestfs-5546ea6d68532caa69fbede1f29385afe34e7362.tar.gz libguestfs-5546ea6d68532caa69fbede1f29385afe34e7362.tar.xz libguestfs-5546ea6d68532caa69fbede1f29385afe34e7362.zip |
fuse: Add guestmount --pid-file option (RHBZ#838592).
Diffstat (limited to 'fuse/guestmount.pod')
-rw-r--r-- | fuse/guestmount.pod | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fuse/guestmount.pod b/fuse/guestmount.pod index d4590457..fdcf1337 100644 --- a/fuse/guestmount.pod +++ b/fuse/guestmount.pod @@ -120,7 +120,9 @@ condition: fusermount -u /mnt # immediately try to use 'disk.img' <-- UNSAFE -The solution is to spin waiting for the guestmount process to exit. +The solution is to use the I<--pid-file> option to write the +guestmount PID to a file, then after fusermount spin waiting for this +PID to exit. Note that if you use the C<guestfs_mount_local> API directly (see L<guestfs(3)/MOUNT LOCAL>) then it is much easier to write a safe, @@ -282,6 +284,10 @@ to the chosen values. =back +=item B<--pid-file filename> + +Write the PID of the guestmount worker process to C<filename>. + =item B<-r> =item B<--ro> |