linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH blktests 0/3] blktest: add unmap write zeroes tests
@ 2025-03-18  7:28 Zhang Yi
  2025-03-18  7:28 ` [PATCH blktests 1/3] scsi/010: " Zhang Yi
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Zhang Yi @ 2025-03-18  7:28 UTC (permalink / raw)
  To: linux-fsdevel, linux-ext4, linux-block, dm-devel, linux-nvme,
	linux-scsi
  Cc: linux-xfs, linux-kernel, hch, tytso, djwong, john.g.garry,
	bmarzins, chaitanyak, shinichiro.kawasaki, yi.zhang, yi.zhang,
	chengzhihao1, yukuai3, yangerkun

From: Zhang Yi <yi.zhang@huawei.com>

The Linux kernel is planning to support FALLOC_FL_WRITE_ZEROES in
fallocate(2). Add tests for the newly added BLK_FEAT_WRITE_ZEROES_UNMAP
feature flag on the block device queue limit. These tests test block
device unmap write zeroes sysfs interface

        /sys/block/<disk>/queue/write_zeroes_unmap

with various SCSI/NVMe/device-mapper devices.

The /sys/block/<disk>/queue/write_zeroes_unmap interface should return
1 if the block device supports unmap write zeroes command, and it should
return 0 otherwise.

 - scsi/010 test SCSI devices.
 - dm/003 test device mapper stacked devices.
 - nvme/060 test NVMe devices.

Thanks,
Yi.

Zhang Yi (3):
  scsi/010: add unmap write zeroes tests
  dm/003: add unmap write zeroes tests
  nvme/060: add unmap write zeroes tests

 common/rc          | 16 +++++++++++
 tests/dm/003       | 57 ++++++++++++++++++++++++++++++++++++++
 tests/dm/003.out   |  2 ++
 tests/nvme/060     | 68 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/nvme/060.out |  4 +++
 tests/scsi/010     | 56 ++++++++++++++++++++++++++++++++++++++
 tests/scsi/010.out |  2 ++
 7 files changed, 205 insertions(+)
 create mode 100755 tests/dm/003
 create mode 100644 tests/dm/003.out
 create mode 100755 tests/nvme/060
 create mode 100644 tests/nvme/060.out
 create mode 100755 tests/scsi/010
 create mode 100644 tests/scsi/010.out

-- 
2.46.1


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

end of thread, other threads:[~2025-04-28 13:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18  7:28 [PATCH blktests 0/3] blktest: add unmap write zeroes tests Zhang Yi
2025-03-18  7:28 ` [PATCH blktests 1/3] scsi/010: " Zhang Yi
2025-04-03  7:26   ` Shinichiro Kawasaki
2025-04-28  3:32     ` Zhang Yi
2025-03-18  7:28 ` [PATCH blktests 2/3] dm/003: " Zhang Yi
2025-04-03  7:43   ` Shinichiro Kawasaki
2025-04-28  4:32     ` Zhang Yi
2025-04-28  8:13       ` Shinichiro Kawasaki
2025-04-28  9:04         ` Zhang Yi
2025-04-28  9:25           ` Shinichiro Kawasaki
2025-04-28 13:55             ` Zhang Yi
2025-03-18  7:28 ` [PATCH blktests 3/3] nvme/060: " Zhang Yi
2025-04-03  7:49   ` Shinichiro Kawasaki
2025-04-03  7:55 ` [PATCH blktests 0/3] blktest: " Shinichiro Kawasaki
2025-04-28  4:34   ` Zhang Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).