summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide/blockdev
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-03-23 08:11:50 +0100
committerJens Axboe <axboe@kernel.dk>2026-03-25 06:49:01 -0600
commit829def1e35ca3a6ef07d53d47089ef7cff0fd127 (patch)
tree3d46ce4aec30a829ca88ce2ec05270b3cbfbd3ac /Documentation/admin-guide/blockdev
parenteff8d1656e83d186fdf9dd3ad0f229088440e4c6 (diff)
zloop: forget write cache on force removal
Add a new options that causes zloop to truncate the zone files to the write pointer value recorded at the last cache flush to simulate unclean shutdowns. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://patch.msgid.link/20260323071156.2940772-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/admin-guide/blockdev')
-rw-r--r--Documentation/admin-guide/blockdev/zoned_loop.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/admin-guide/blockdev/zoned_loop.rst b/Documentation/admin-guide/blockdev/zoned_loop.rst
index 6aa865424ac3..a01f857b36ad 100644
--- a/Documentation/admin-guide/blockdev/zoned_loop.rst
+++ b/Documentation/admin-guide/blockdev/zoned_loop.rst
@@ -104,6 +104,11 @@ ordered_zone_append Enable zloop mitigation of zone append reordering.
(extents), as when enabled, this can significantly reduce
the number of data extents needed to for a file data
mapping.
+discard_write_cache Discard all data that was not explicitly persisted using a
+ flush operation when the device is removed by truncating
+ each zone file to the size recorded during the last flush
+ operation. This simulates power fail events where
+ uncommitted data is lost.
=================== =========================================================
3) Deleting a Zoned Device