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.
Showing the changes to include/linux/blkdev.h (1 of 4 files). Show all
Unified · Split
| @@ -1461,6 +1461,7 @@ static inline uint64_t rq_io_start_time_ns(struct request *req) · 1460 unmodified lines | ||
| 1461 | 1461 | enum blk_integrity_flags { |
| 1462 | 1462 | BLK_INTEGRITY_VERIFY = 1 << 0, |
| 1463 | 1463 | BLK_INTEGRITY_GENERATE = 1 << 1, |
| 1464 | + BLK_INTEGRITY_DEVICE_CAPABLE = 1 << 2, | |
| 1464 | 1465 | }; |
| 1465 | 1466 | |
| 1466 | 1467 | struct blk_integrity_iter { |