All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] Need info on LTP tests that use /dev/loop mount device.
@ 2022-11-22 15:56 SANDUR Suresh via ltp
  2022-11-23 12:00 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: SANDUR Suresh via ltp @ 2022-11-22 15:56 UTC (permalink / raw)
  To: ltp@lists.linux.it


[-- Attachment #1.1: Type: text/plain, Size: 641 bytes --]

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?

regards,
Suresh


[-- Attachment #1.2: Type: text/html, Size: 3555 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Need info on LTP tests that use /dev/loop mount device.
  2022-11-22 15:56 [LTP] Need info on LTP tests that use /dev/loop mount device SANDUR Suresh via ltp
@ 2022-11-23 12:00 ` Petr Vorel
       [not found]   ` <MR1P264MB395376B3E3DAAA7E33BE24B5A80C9@MR1P264MB3953.FRAP264.PROD.OUTLOOK.COM>
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2022-11-23 12:00 UTC (permalink / raw)
  To: SANDUR Suresh; +Cc: ltp@lists.linux.it

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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Need info on LTP tests that use /dev/loop mount device.
       [not found]     ` <MR1P264MB3233CF6C132C977798EB16819F0C9@MR1P264MB3233.FRAP264.PROD.OUTLOOK.COM>
@ 2022-11-25 14:00       ` SANDUR Suresh via ltp
  0 siblings, 0 replies; 3+ messages in thread
From: SANDUR Suresh via ltp @ 2022-11-25 14:00 UTC (permalink / raw)
  To: ltp@lists.linux.it; +Cc: GUPTA Davender


[-- Attachment #1.1: Type: text/plain, Size: 1657 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 5271 bytes --]

[-- Attachment #2: Type: text/plain, Size: 60 bytes --]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-25 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-22 15:56 [LTP] Need info on LTP tests that use /dev/loop mount device SANDUR Suresh via ltp
2022-11-23 12:00 ` Petr Vorel
     [not found]   ` <MR1P264MB395376B3E3DAAA7E33BE24B5A80C9@MR1P264MB3953.FRAP264.PROD.OUTLOOK.COM>
     [not found]     ` <MR1P264MB3233CF6C132C977798EB16819F0C9@MR1P264MB3233.FRAP264.PROD.OUTLOOK.COM>
2022-11-25 14:00       ` SANDUR Suresh via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.