@@ -2708,7 +2708,9 @@ struct nvme_ns_list {
27082708 * @dmrl: Dataset Management Ranges Limit
27092709 * @dmrsl: Dataset Management Range Size Limit
27102710 * @dmsl: Dataset Management Size Limit
2711- * @rsvd16: reserved
2711+ * @rsvd16: Reserved
2712+ * @aocs: Admin Optional Command Support
2713+ * @rsvd20: Reserved
27122714 */
27132715struct nvme_id_ctrl_nvm {
27142716 __u8 vsl ;
@@ -2717,7 +2719,9 @@ struct nvme_id_ctrl_nvm {
27172719 __u8 dmrl ;
27182720 __le32 dmrsl ;
27192721 __le64 dmsl ;
2720- __u8 rsvd16 [4080 ];
2722+ __u8 rsvd16 [2 ];
2723+ __le16 aocs ;
2724+ __u8 rsvd20 [4076 ];
27212725};
27222726
27232727/**
@@ -2729,6 +2733,8 @@ struct nvme_id_ctrl_nvm {
27292733 * @elbaf: List of Extended LBA Format Support
27302734 * @npdgl: Namespace Preferred Deallocate Granularity Large
27312735 * @rsvd272: Reserved
2736+ * @tlbaag: Tracked LBA Allocation Granularity
2737+ * @rsvd296: Reserved
27322738 */
27332739struct nvme_nvm_id_ns {
27342740 __le64 lbstm ;
@@ -2737,7 +2743,9 @@ struct nvme_nvm_id_ns {
27372743 __u8 rsvd10 [2 ];
27382744 __le32 elbaf [64 ];
27392745 __le32 npdgl ;
2740- __u8 rsvd272 [3824 ];
2746+ __u8 rsvd272 [20 ];
2747+ __le32 tlbaag ;
2748+ __u8 rsvd296 [3800 ];
27412749};
27422750
27432751/**
@@ -4171,14 +4179,18 @@ struct nvme_lbas_ns_element {
41714179};
41724180
41734181/**
4174- * enum nvme_lba_status_atype - Potentially Unrecoverable LBAs
4175- * @NVME_LBA_STATUS_ATYPE_SCAN_UNTRACKED: Potentially Unrecoverable LBAs
4176- * @NVME_LBA_STATUS_ATYPE_SCAN_TRACKED: Potentially Unrecoverable LBAs
4177- * associated with physical storage
4182+ * enum nvme_lba_status_atype - Action type the controller uses to return LBA status
4183+ * @NVME_LBA_STATUS_ATYPE_ALLOCATED: Return tracked allocated LBAs status
4184+ * @NVME_LBA_STATUS_ATYPE_SCAN_UNTRACKED: Perform scan and return Untracked and
4185+ * Tracked Potentially Unrecoverable LBAs
4186+ * status
4187+ * @NVME_LBA_STATUS_ATYPE_TRACKED: Return Tracked Potentially Unrecoverable
4188+ * LBAs associated with physical storage
41784189 */
41794190enum nvme_lba_status_atype {
4180- NVME_LBA_STATUS_ATYPE_SCAN_UNTRACKED = 0x10 ,
4181- NVME_LBA_STATUS_ATYPE_SCAN_TRACKED = 0x11 ,
4191+ NVME_LBA_STATUS_ATYPE_ALLOCATED = 0x2 ,
4192+ NVME_LBA_STATUS_ATYPE_SCAN_UNTRACKED = 0x10 ,
4193+ NVME_LBA_STATUS_ATYPE_TRACKED = 0x11 ,
41824194};
41834195
41844196/**
0 commit comments