]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvmetcli: remove status method for the UIPortNode
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 30 Nov 2017 10:27:23 +0000 (11:27 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Nov 2017 14:27:17 +0000 (06:27 -0800)
commit69182535c1df21c8cc2d0be4e5b4229f32a057e8
tree0ee6b83a338d1dde6af5698184f3d9ced8644197
parent389993977d5a0bfc366c8683a05553043740dfa9
nvmetcli: remove status method for the UIPortNode

nvmetcli defines a status method for the UIPortNode class but there is
no corresponding 'enable' file in configfs so typing in status will
always result in nvmetcli printing disbaled if one types 'status' in
the port node:

/> cd ports/1/
/ports/1> status
Status for /ports/1: disabled
/ports/1>

There are two possible ways for fixing this issue, provide a configfs
file to enable/disable the port node in the kernel or delete the
method in nvmetcli. Having a configfs file in the kernel is pointless,
as ports get enabled when symlinked to a namespace so zap the pointless status
method in user-space.

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