]> www.infradead.org Git - users/hch/nvmetcli.git/commitdiff
nvmetcli: allow setting of serial number number
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 13 Jul 2017 10:48:45 +0000 (12:48 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 18 Jul 2017 17:48:11 +0000 (19:48 +0200)
Allow a user to set a serial number of a controller in configfs in order to
have persistent serials that survive a reboot of the target.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmetcli

index 56dda66c39a7c8065be3b597c1dddbf13a41b954..354ce4826f112cd09fee281a3df4cf329531202c 100755 (executable)
--- a/nvmetcli
+++ b/nvmetcli
@@ -148,6 +148,7 @@ class UISubsystemsNode(UINode):
 class UISubsystemNode(UINode):
     ui_desc_attr = {
         'allow_any_host': ('string', 'Allow access by any host if set to 1'),
+        'serial': ('string', 'Export serial number to hosts'),
     }
 
     def __init__(self, parent, cfnode):