summaryrefslogtreecommitdiff
path: root/mount/umount.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:26:31 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:26:31 +0100
commit756bfd018eb393640dad490df1a1ca840d9ee79b (patch)
treed95fd02eefcc647d4886761ccb74e976ee7aa32a /mount/umount.c
parenta47f2e66141271cde40ee5190acf93d7878bc93d (diff)
downloadutil-linux-old-756bfd018eb393640dad490df1a1ca840d9ee79b.tar.gz
Imported from util-linux-2.12o tarball.
Diffstat (limited to 'mount/umount.c')
-rw-r--r--mount/umount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c
index 15d94f93..b26c28d4 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -571,7 +571,10 @@ umount_file (char *arg) {
die(2,
_("umount: %s is not mounted (according to mtab)"),
file);
- if (!is_mounted_once(file))
+ /* The 2.4 kernel will generally refuse to mount the same
+ filesystem on the same mount point, but will accept NFS.
+ So, unmounting must be possible. */
+ if (!is_mounted_once(file) && strcmp(mc->m.mnt_type,"nfs"))
die(2,
_("umount: it seems %s is mounted multiple times"),
file);