В Птн, 24/07/2009 в 15:26 +0200, Karel Zak пишет: > This is very old (10+years) feature (but undocumented). The mount(8) > is trying to found mountpoint/device in fstab and then in mtab. > > I guess the original purpose for this feature is user-friendly "mount > /node -o remount". Unfortunately, the code does not check for > MS_REMOUNT flag and consults mtab in all cases. (The code is > consulting fstab/mtab before mount options parsing.) > It's bug in the mount.8 man page -- this behaviour should be > documented. Patches are welcomed :-) Looks like this one is easy. Patch in attachment. -- Peter.
commit ce0a3ab9f95212741f88cb2f1b369596d2ee3d32 Author: Peter Volkov <pva@xxxxxxxxxx> Date: Fri Jul 24 18:36:55 2009 +0400 Mention mtab for single mount point mount Karel Zak wrote: "This is very old (10+years) feature. The mount(8) is trying to found mountpoint/device in fstab and then in mtab. I guess the original purpose for this feature is user-friendly 'mount /node -o remount'. Unfortunately, the code does not check for MS_REMOUNT flag and consults mtab in all cases. (The code is consulting fstab/mtab before mount options parsing.)" This commit documents this feature. diff --git a/mount/mount.8 b/mount/mount.8 index 8e17549..da365f6 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -246,7 +246,9 @@ option will make mount fork, so that the filesystems are mounted simultaneously. .LP When mounting a file system mentioned in -.IR fstab , +.IR fstab +or +.IR mtab , it suffices to give only the device, or only the mount point.