mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-05 08:44:14 +02:00
Add a new BLOCK_URING_CMD_ZONE_RESET_ALL uring cmd to reset all zones for a given block device. This can be used by storage systems or file system mkfs tools to initialize multiple devices in parallel. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://patch.msgid.link/20260804125038.740388-7-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
16 lines
422 B
C
16 lines
422 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_LINUX_BLKDEV_H
|
|
#define _UAPI_LINUX_BLKDEV_H
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* io_uring block file commands, see IORING_OP_URING_CMD.
|
|
* It's a different number space from ioctl(), reuse the block's code 0x12.
|
|
*/
|
|
#define BLOCK_URING_CMD_DISCARD _IO(0x12, 0)
|
|
#define BLOCK_URING_CMD_ZONE_RESET_ALL _IO(0x12, 1)
|
|
|
|
#endif
|