summaryrefslogtreecommitdiffstats
path: root/src/nvme/nbft.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvme/nbft.c')
-rw-r--r--src/nvme/nbft.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvme/nbft.c b/src/nvme/nbft.c
index f2ffc21..b7d0dc8 100644
--- a/src/nvme/nbft.c
+++ b/src/nvme/nbft.c
@@ -246,6 +246,12 @@ static int read_ssns(struct nbft_info *nbft,
ssns->nid_type = raw_ssns->nidt;
ssns->nid = raw_ssns->nid;
+ /* flags */
+ ssns->unavailable = !!(le16_to_cpu(raw_ssns->flags) &
+ NBFT_SSNS_UNAVAIL_NAMESPACE_UNAVAIL);
+ ssns->discovered = !!(le16_to_cpu(raw_ssns->flags) &
+ NBFT_SSNS_DISCOVERED_NAMESPACE);
+
/* security profile */
if (raw_ssns->security_desc_index) {
ssns->security = security_from_index(nbft, raw_ssns->security_desc_index);