summaryrefslogtreecommitdiffstats
path: root/fuse/guestmount.pod
diff options
context:
space:
mode:
Diffstat (limited to 'fuse/guestmount.pod')
-rw-r--r--fuse/guestmount.pod8
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>