[LTP] [RFC] Limit the tmpfs size on mounting

Li Wang liwang@redhat.com
Thu Jul 1 07:58:01 CEST 2021


Cyril Hrubis <chrubis@suse.cz> wrote:


> I guess that appending '-o size ...' to the mount flags in prepare_device()
> is reasonable, but instead of hardcoing the value we should do the same
> as we do with the loop devices and the size should be
> MAX(tst_test->dev_min_size, DEV_SIZE_MB).
>

Yes, dynamically setting the size is better.


> > /dev/loop0                             tmpfs     126G   23G  104G  18%
>
> Also it looks like should pass something as "ltp-tmpfs" instead of the
> "/dev/loopX" string in a case of "tmpfs" filesystem in order not to
> confuse people...
>

Quite good proposals, I have sent two patches for achieving the ideas.

Thanks!
-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210701/c31bf5ad/attachment.htm>


More information about the ltp mailing list