Package: mount
Version: 2.12r-10
Severity: normal

When fstab has 2 lines like the following:

/dev/evms/home  /home                             ext3 defaults 0 2
/home           /export/work/srv/chroots/sid/home none bind     0 0


... then "mount /home" selects the second line, which is a quite
unexpected behaviour, especially if the real /home partition is not
mounted yet.

The traditional behaviour expected, when using a single dirname with
mount, is to get something mounted on the named directory.  I'm far from
sure that it makes any sense to match such a line - just think of
several mount-binds involving /proc for chroots: even if the real /proc
is mounted, it would not make any sense to select one bind over another.

I'd think mount, when given a single arg, should stat it to check
whether it is a dir, and it yes, should only look it up as a mountpoint.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (90, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.4-smp-gbbde1285
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mount depends on:
ii  libblkid1                     1.39-1     block device id library
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libuuid1                      1.39-1     universally unique id library

mount recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to