On 25/10/17 07:57, Stephane Chazelas wrote:
> Test case:
>
> /tmp$ mkdir -p 1/2
> /tmp$ sudo mount -o size=1M -t tmpfs x 1/2
> /tmp$ sudo mount -o size=2M -t tmpfs y 1
> /tmp$ mkdir 1/2
> /tmp$ df -h 1/2
> Filesystem Size Used Avail Use% Mounted on
> x 2.0M 0 2.0M 0% /tm
Test case:
/tmp$ mkdir -p 1/2
/tmp$ sudo mount -o size=1M -t tmpfs x 1/2
/tmp$ sudo mount -o size=2M -t tmpfs y 1
/tmp$ mkdir 1/2
/tmp$ df -h 1/2
Filesystem Size Used Avail Use% Mounted on
x 2.0M 0 2.0M 0% /tmp/1/2
The Size is correct as that's obtained from statfs() on