| From: |
| Zhang Yi <yi.zhang-AT-huaweicloud.com> |
| To: |
| linux-fsdevel-AT-vger.kernel.org, linux-ext4-AT-vger.kernel.org, linux-block-AT-vger.kernel.org, dm-devel-AT-lists.linux.dev, linux-nvme-AT-lists.infradead.org, linux-scsi-AT-vger.kernel.org |
| Subject: |
| [PATCH blktests 0/3] blktest: add unmap write zeroes tests |
| Date: |
| Tue, 18 Mar 2025 15:28:32 +0800 |
| Message-ID: |
| <20250318072835.3508696-1-yi.zhang@huaweicloud.com> |
| Cc: |
| linux-xfs-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, hch-AT-lst.de, tytso-AT-mit.edu, djwong-AT-kernel.org, john.g.garry-AT-oracle.com, bmarzins-AT-redhat.com, chaitanyak-AT-nvidia.com, shinichiro.kawasaki-AT-wdc.com, yi.zhang-AT-huawei.com, yi.zhang-AT-huaweicloud.com, chengzhihao1-AT-huawei.com, yukuai3-AT-huawei.com, yangerkun-AT-huawei.com |
| Archive-link: |
| Article |
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