diff options
author | Miklos Szeredi | 2010-03-08 19:01:13 +0100 |
---|---|---|
committer | Karel Zak | 2010-03-11 14:32:36 +0100 |
commit | 97a3cef4f1f18c30d662eda5cf072cc27825a55c (patch) | |
tree | db5853c9286d6fc0b8a0b2d188effb94cdaeb347 /mount/umount.8 | |
parent | mount: properly ignore comments in /etc/filesystems (diff) | |
download | kernel-qcow2-util-linux-97a3cef4f1f18c30d662eda5cf072cc27825a55c.tar.gz kernel-qcow2-util-linux-97a3cef4f1f18c30d662eda5cf072cc27825a55c.tar.xz kernel-qcow2-util-linux-97a3cef4f1f18c30d662eda5cf072cc27825a55c.zip |
umount: add --fake option to umount(8)
Add --fake option to umount(8), which omits calling the actual umount
syscall (and the loop device deletion) but modifies /etc/mtab. This
is similar to the -f or --fake option to mount(8).
This would allow some simplifications in fuse by allowing it to call
the umount syscall and letting umount(8) just update mtab.
[kzak@redhat.com: - initialize 'res' variable in umount_one() ]
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.8')
-rw-r--r-- | mount/umount.8 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mount/umount.8 b/mount/umount.8 index aa9041128..5ef861aaa 100644 --- a/mount/umount.8 +++ b/mount/umount.8 @@ -123,6 +123,12 @@ anymore. Don't canonicalize paths. For more details about this option see the .B mount(8) man page. +.IP "\fB\-\-fake\fP" +Causes everything to be done except for the actual system call; this +``fakes'' unmounting the filesystem. It can be used to remove +entries from +.I /etc/mtab +that were unmounted earlier with the -n option. .SH "THE LOOP DEVICE" The |