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

Directory contents can't be seen when the directory is a nullfs mount



Hello!
I just started to use ezjail and I really like it.
Thank you!

I'm trying to customize the base jail to add some readonly data
directory that will be shared between jails: /usr/data

So... Here is what I did:
/dev/ad0s1g is mounted (rw) on /usr/data on the host system
/usr/jails/basejail/usr/data is a (ro) nullfs mounted from /usr/data
/usr/jails/newjail/usr/data is a symlink to /basejail/usr/data

On the host system:
host# ls -al /usr/jails/basejail/usr/data/
total 194
[ ... some directory contents here ... ]

On one jail:
test# # ls -al /basejail/usr/data/
total 4
drwxr-xr-x   2 root  wheel  512 Sep 25 14:50 .
drwxr-xr-x  14 root  wheel  512 Sep 25 14:50 ..
test#

What am I doing wrong?
Any ideas?


Thanks.
Sorin.