mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
block: Add a disk flag to block integrity profile
So far we have relied on the app tag size to determine whether a disk has been formatted with T10 protection information or not. However, not all target devices provide application tag storage. Add a flag to the block integrity profile that indicates whether the disk has been formatted with protection information. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Sagi Grimberg <sagig@dev.mellanox.co.il> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
8288f496eb
commit
3aec2f41a8
4 changed files with 28 additions and 1 deletions
|
@ -1461,6 +1461,7 @@ static inline uint64_t rq_io_start_time_ns(struct request *req)
|
|||
enum blk_integrity_flags {
|
||||
BLK_INTEGRITY_VERIFY = 1 << 0,
|
||||
BLK_INTEGRITY_GENERATE = 1 << 1,
|
||||
BLK_INTEGRITY_DEVICE_CAPABLE = 1 << 2,
|
||||
};
|
||||
|
||||
struct blk_integrity_iter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue