[LTP] Need info on LTP tests that use /dev/loop mount device.

SANDUR Suresh suresh-s.sandur@thalesgroup.com
Fri Nov 25 15:00:46 CET 2022


Thanks for the message Petr.

A follow-up question. Why only some tests have the all_filesystems flag enabled? Why not for all tests?

regards,
Suresh

________________________________
From: Petr Vorel <pvorel@suse.cz<mailto:pvorel@suse.cz>>
Sent: Wednesday, November 23, 2022 5:30 PM
To: SANDUR Suresh <suresh-s.sandur@thalesgroup.com<mailto:suresh-s.sandur@thalesgroup.com>>
Cc: ltp@lists.linux.it<mailto:ltp@lists.linux.it> <ltp@lists.linux.it<mailto:ltp@lists.linux.it>>
Subject: Re: [LTP] Need info on LTP tests that use /dev/loop mount device.

Hi Suresh,

> Hello,

> I am trying to understand the test cases that use the /dev/loop* device. For example the following tests use the loop device:

> chmod06, chown04, chown04_16, create06, fallocate04, fallocate05 and fsetxattr01

> What is the purpose of using the /dev/loop device? Is it to test some feature of the FS which cannot be done with the currently mounted FS? For example, execute the testcase on a RO filesystem? Are there any others? I am not sure about this, but does LTP also do something like mount the loop device and put different FS, like ext2, ext3, ext4, xfs on the loop device and run the same testcase?

/dev/loop is used for .all_filesystems to run the test on various filesystems
(btrfs, exfat, ext2, ext3, fuse, ntfs, vfat, tmpfs, xfs). But you could pass a
real device via environment variable $LTP_DEV.

https://github.com/linux-test-project/ltp/wiki/C-Test-API#115-testing-with-a-block-device
https://github.com/linux-test-project/ltp/wiki/C-Test-API#113-filesystem-type-detection-and-skiplist

Kind regards,
Petr

> regards,
> Suresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20221125/1be3faed/attachment.htm>


More information about the ltp mailing list