Behaviour of mount_unionfs

Dario Freni saturnero at freesbie.org
Mon May 23 03:17:46 GMT 2005


cupa:/mnt/freesbie# ll
total 4
drwxr-xr-x  2 root  wheel  512 23 Mag 05:13 unionvar
drwxr-xr-x  2 root  wheel  512 23 Mag 05:13 var
cupa:/mnt/freesbie# mdconfig -a -t vnode -f /usr/local/freesbieiso/uzip/var.uzip
md2
cupa:/mnt/freesbie# mount /dev/md2.uzips1a var
cupa:/mnt/freesbie# ls -l var/
total 40
drwxrwxr-x  2 root    operator  512 23 Mag 04:54 .snap
drwxr-xr-x  2 root    wheel     512 23 Mag 04:33 account
drwxr-xr-x  4 root    wheel     512 23 Mag 04:33 at
drwxr-x---  2 root    wheel     512 23 Mag 04:33 backups
drwxr-x---  2 root    wheel     512 23 Mag 04:33 crash
drwxr-x---  3 root    wheel     512 23 Mag 04:33 cron
drwxr-xr-x  6 root    wheel     512 23 Mag 04:33 db
dr-xr-xr-x  2 root    wheel     512 23 Mag 04:33 empty
drwxrwxr-x  2 root    games     512 23 Mag 04:33 games
drwx------  2 root    wheel     512 23 Mag 04:33 heimdal
drwxr-xr-x  2 root    wheel     512 23 Mag 04:33 log
drwxrwxr-x  2 root    mail      512 23 Mag 04:33 mail
drwxr-xr-x  2 daemon  wheel     512 23 Mag 04:33 msgs
drwxr-xr-x  5 root    wheel     512 23 Mag 04:33 named
drwxr-xr-x  2 root    wheel     512 23 Mag 04:33 preserve
drwxr-xr-x  4 root    wheel     512 23 Mag 04:48 run
drwxrwxr-x  2 root    daemon    512 23 Mag 04:33 rwho
drwxr-xr-x  8 root    wheel     512 23 Mag 04:33 spool
drwxrwxrwt  3 root    wheel     512 23 Mag 04:48 tmp
drwxr-xr-x  2 root    wheel     512 23 Mag 04:35 yp
cupa:/mnt/freesbie# mdconfig -a -t malloc -o compress -s 16m
md3
cupa:/mnt/freesbie# /sbin/newfs -U /dev/md3
/dev/md3: 16.0MB (32768 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 4.02MB, 257 blks, 576 inodes.
        with soft updates
super-block backups (for fsck -b #) at:
 160, 8384, 16608, 24832
cupa:/mnt/freesbie# mount /dev/md3 unionvar/
cupa:/mnt/freesbie# mount_unionfs unionvar/ var/
cupa:/mnt/freesbie# ls -l var/
total 40
drwxrwxr-x   4 root  operator  512 23 Mag 05:14 .snap
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 account
drwxr-xr-x   6 root  wheel     512 23 Mag 05:15 at
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 backups
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 crash
drwxr-xr-x   5 root  wheel     512 23 Mag 05:15 cron
drwxr-xr-x   8 root  wheel     512 23 Mag 05:15 db
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 empty
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 games
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 heimdal
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 log
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 mail
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 msgs
drwxr-xr-x   7 root  wheel     512 23 Mag 05:15 named
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 preserve
drwxr-xr-x   6 root  wheel     512 23 Mag 05:15 run
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 rwho
drwxr-xr-x  10 root  wheel     512 23 Mag 05:15 spool
drwxr-xr-x   5 root  wheel     512 23 Mag 05:15 tmp
drwxr-xr-x   4 root  wheel     512 23 Mag 05:15 yp
cupa:/mnt/freesbie#

With unionfs we lost (again) every kind of permission. From the man
page I cannot realize if this really is the expected behaviour.

Bye,
Dario

-- 
Dario Freni (saturnero at freesbie.org) - satu on Azzurra
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050523/b3ab47e8/attachment.bin


More information about the freebsd-hackers mailing list