nvmet: implement rotational media information log
Most of the information is stubbed. Supporting these commands is a requirement for supporting rotational media. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
+14
-1
@@ -642,6 +642,18 @@ struct nvme_endurance_group_log {
|
||||
__u8 rsvd192[320];
|
||||
};
|
||||
|
||||
struct nvme_rotational_media_log {
|
||||
__le16 endgid;
|
||||
__le16 numa;
|
||||
__le16 nrs;
|
||||
__u8 rsvd6[2];
|
||||
__le32 spinc;
|
||||
__le32 fspinc;
|
||||
__le32 ldc;
|
||||
__le32 fldc;
|
||||
__u8 rsvd24[488];
|
||||
};
|
||||
|
||||
struct nvme_smart_log {
|
||||
__u8 critical_warning;
|
||||
__u8 temperature[2];
|
||||
@@ -1281,6 +1293,7 @@ enum {
|
||||
NVME_LOG_ENDURANCE_GROUP = 0x09,
|
||||
NVME_LOG_ANA = 0x0c,
|
||||
NVME_LOG_FEATURES = 0x12,
|
||||
NVME_LOG_RMI = 0x16,
|
||||
NVME_LOG_DISC = 0x70,
|
||||
NVME_LOG_RESERVATION = 0x80,
|
||||
NVME_FWACT_REPL = (0 << 3),
|
||||
@@ -1435,7 +1448,7 @@ struct nvme_get_log_page_command {
|
||||
__u8 lsp; /* upper 4 bits reserved */
|
||||
__le16 numdl;
|
||||
__le16 numdu;
|
||||
__u16 rsvd11;
|
||||
__le16 lsi;
|
||||
union {
|
||||
struct {
|
||||
__le32 lpol;
|
||||
|
||||
Reference in New Issue
Block a user