Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvmetcli: fix double ana groupid when save config
@ 2024-10-29  3:43 Guixin Liu
  2024-10-31  2:37 ` Guixin Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Guixin Liu @ 2024-10-29  3:43 UTC (permalink / raw)
  To: hch, sagi, kch; +Cc: linux-nvme

There are two ana grpid in json file after save the config,
including ana group: "ana":{"grpid"}, and "ana_grpid", remove one,
still one can use both of them to set ana_grpid.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
---
 nvmet/nvme.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nvmet/nvme.py b/nvmet/nvme.py
index 59efdb5..41b4845 100644
--- a/nvmet/nvme.py
+++ b/nvmet/nvme.py
@@ -626,7 +626,6 @@ class Namespace(CFSNode):
     def dump(self):
         d = super(Namespace, self).dump()
         d['nsid'] = self.nsid
-        d['ana_grpid'] = self.grpid
         return d
 
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-24 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29  3:43 [PATCH] nvmetcli: fix double ana groupid when save config Guixin Liu
2024-10-31  2:37 ` Guixin Liu
2024-11-26  8:43   ` Guixin Liu
2024-11-29 11:07 ` Hannes Reinecke
2024-12-24 11:53 ` Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox