DragonFly bugs List (threaded) for 2007-01
DragonFly BSD
DragonFly bugs List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: HEAD: no rootfs in jail


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Fri, 26 Jan 2007 19:30:44 +0900

On Fri, Jan 19, 2007 at 05:12:14PM +0900, YONETANI Tomokazu wrote:
> On Fri, Jan 19, 2007 at 12:32:21PM +0900, YONETANI Tomokazu wrote:
> > I don't remember when I started seeing this, but `df' doesn't show
> > the rootfs from inside jail, but any other mountpoints are visible.
> 
> Correction: this is NOT specific to jail, but the same goes for chroot'ed
> environment.

I still got no clue for this, but the getfsstat(2) behavior is
definitely wrong:

# chroot /j
# ls / /usr
/:
bin     dev     etc     proc    root    sbin    usr     var

/usr:
bin             include         libexec         pkg             share
freebsd_pkg     lib             local           pkgsrc          src
games           libdata         obj             sbin
# df /
df: /: No such file or directory
# df /usr
df: /usr: No such file or directory
# mount
mount: getmntinfo: Unknown error: 0

At first I thought that chroot_visible_mnt() was to be blamed, but
the behavior doesn't change even if I changed it to always return 1.

Cheers.



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