umount: instead of non-standard -D, use -d with opposite meaning

(closes bug 1604)
umount: do not try to free loop device or erase mtab if remounted ro
umount: do not complain several times about the same mountpoint

function                                             old     new   delta
umount_main                                          646     638      -8
packed_usage                                       23662   23652     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18)             Total: -18 bytes
This commit is contained in:
Denis Vlasenko
2008-02-14 12:00:21 +00:00
parent 773f6710c1
commit b2e578a1f2
2 changed files with 38 additions and 37 deletions

View File

@ -3996,7 +3996,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
"\n -l Lazy umount (detach filesystem)" \
"\n -f Force umount (i.e., unreachable NFS server)" \
USE_FEATURE_MOUNT_LOOP( \
"\n -D Do not free loop device (if a loop device has been used)")
"\n -d Free loop device if it has been used")
#define umount_example_usage \
"$ umount /dev/hdc1\n"