diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2014-09-26 19:20:03 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-27 11:14:51 -0400 |
commit | 3aec2f41a8baeb70aa77556a4e4dcec7d9d70b4d (patch) | |
tree | 2725a81cae556798bd3f363c4e8e5595c1ce1aaf /include/linux | |
parent | 8288f496eb1b1905c425e92eaf1abbb29119217b (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index cf92eb031ae9..4600fc63e3fc 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1461,6 +1461,7 @@ static inline uint64_t rq_io_start_time_ns(struct request *req) | |||
1461 | enum blk_integrity_flags { | 1461 | enum blk_integrity_flags { |
1462 | BLK_INTEGRITY_VERIFY = 1 << 0, | 1462 | BLK_INTEGRITY_VERIFY = 1 << 0, |
1463 | BLK_INTEGRITY_GENERATE = 1 << 1, | 1463 | BLK_INTEGRITY_GENERATE = 1 << 1, |
1464 | BLK_INTEGRITY_DEVICE_CAPABLE = 1 << 2, | ||
1464 | }; | 1465 | }; |
1465 | 1466 | ||
1466 | struct blk_integrity_iter { | 1467 | struct blk_integrity_iter { |