Bug#501184: aufs-tools: provide /usr/sbin/mount.aufs as /sbin/mount.aufs

2008-10-05 Thread Michael Prokop
Package: aufs-tools
Version: 0+20080719-4
Severity: important


Is there a specific reason why the aufs mount script is provided
under /usr/sbin instead of /sbin?

Quoting util-linux-2.13.1.1/mount/mount.c:

[...]
  if (type  strlen(type)  100) {
   sprintf(mountprog, /sbin/mount.%s, type);
   if (stat(mountprog, statbuf) == 0) {
[...]

- so there's a different behaviour between installing
the mount script of aufs as /usr/sbin/mount.aufs vs.
/sbin/mount.aufs.

, [ man aufs ]
| If you dislike the difference between the aufs entries in /etc/mtab
| and /proc/mounts, and if you are using mount(8) in util−linux
| package, then try ./mount.aufs script.
`

You can verify the different behaviour on your own running the usage
example from the manpage:

, [ man aufs ]
| # mount -v -t aufs br:/day0:/base none /u
| none on /u type aufs (rw,xino=/day0/.aufs.xino,br:/day0=rw:/base=ro)
| # mount -v -o remount,\
|  prepend:/day1,\
|  xino=/day1/xino,\
|  mod:/day0=ro,\
|  del:/day0 \
|  /u
| none on /u type aufs (rw,xino=/day1/xino,br:/day1=rw:/base=ro)
`

Credits for bringing up the issue to Tong Sun.

regards,
-mika-



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



Bug#501184: aufs-tools: provide /usr/sbin/mount.aufs as /sbin/mount.aufs

2008-10-05 Thread Michael Prokop
* Julian Andres Klode [EMAIL PROTECTED] [20081005 17:11]:
 2008/10/5 Michael Prokop [EMAIL PROTECTED]:

  Is there a specific reason why the aufs mount script is provided
  under /usr/sbin instead of /sbin?

 The script itself depends on the following programs:
   - /usr/bin/awk
   - /usr/bin/tr
   - /usr/bin/tac
   - /usr/bin/diff
   - /usr/bin/xargs

Alright. Maybe you can add this to README.Debian?

thx  regards,
-mika-


signature.asc
Description: Digital signature