Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 09:17:41 +0400
From:      Andrey Groshev <greenx@yartv.ru>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: df output into jail
Message-ID:  <4AB70C75.6000609@yartv.ru>
In-Reply-To: <4AB34259.4010204@quip.cz>
References:  <4AB324F5.3040106@yartv.ru> <4AB34259.4010204@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Miroslav Lachman ?????:
> Andrey Groshev wrote:
>> Hi, All!
>>
>> I create garbage files.
>> Mounted in the main system partition for data.
>>
>> #mount|grep /usr/jails/samba/
>> /dev/amrd0s4d.journal on /usr/jails/samba/data (ufs, asynchronous, 
>> local, noatime, nosuid, gjournal)
>> /usr/jails/basejail on /usr/jails/samba/basejail (nullfs, local, 
>> read-only)
>> devfs on /usr/jails/samba/dev (devfs, local)
>> fdescfs on /usr/jails/samba/dev/fd (fdescfs)
>> procfs on /usr/jails/samba/proc (procfs, local)
>>
>>
>> And now...
>> I see the output in the Jail "df-h" - it returns only the root mount.
>>
>> # df -h
>> Filesystem Size Used Avail Capacity Mounted on
>> /dev/amrd0s4a 18G 3.6G 13G 21% /
>>
>> If you ask specifically "df-h / data", then displays the desired data.
>>
>> # df -h /data
>> Filesystem Size Used Avail Capacity Mounted on
>> /dev/amrd0s4d.journal 178G 768M 163G 0% [restricted]
>>
>> Looking sources, decided that this is due to answer "mount".
>> IMHO, should be able to see the file systems mounted below the 
>> directory of jail.
>
> I think you are looking for security.jail.enforce_statfs=1
> Default is security.jail.enforce_statfs=2!
>
> See man jail(8) for more details.
>
> Miroslav Lachman
Yes, this is it! I'm sorry that I did not read the full manual.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB70C75.6000609>