User mounts of symlinks doesn't work anymore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just cloned v2.13-pre7-221-ga256ea0 and tried to build it, and
discovered an unpleasant change in the behaviour of mount(8).

With the old util-linux (2.13pre7 and before back to the dawn of time)
you could name symlinks in /dev as devices in /etc/fstab, and mounting
and unmounting would work fine:

lrwxrwxrwx 1 root root 3 2007-06-14 22:53 /dev/cdrom -> hdf

/dev/cdrom      /mnt/cdrom  iso9660     defaults,ro,user,nosuid,nodev,noauto  0 0

$ mount /mnt/cdrom
$ grep cdrom /etc/mtab
/dev/cdrom /mnt/cdrom iso9660 ro,noexec,nosuid,nodev 0 0
$ umount /mnt/cdrom
(succeeds)

Now, we see this:

$ mount /mnt/cdrom
$ grep cdrom /etc/mtab
/dev/hdf /mnt/cdrom iso9660 ro,noexec,nosuid,nodev 0 0
$ umount /mnt/cdrom
umount: /mnt/cdrom mount disagrees with the fstab

(of course umounting still works when done as root)

Those new /etc/mtab contents are hardly ideal: they're the same as
/proc/mounts now, but it's definitely a bit of a loss of information,
and it seems to be confusing umount as well so I expect it's an
unintentional change.

It's late and I'm hay-fevery so I haven't tracked down the actual bug
yet. I'll do it tomorrow if nobody else does (but honestly I expect
someone else will get to this first, it's probably really easy to fix).

-- 
`... in the sense that dragons logically follow evolution so they would
 be able to wield metal.' --- Kenneth Eng's colourless green ideas sleep
 furiously
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux