Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
nvmetcli.7724
0002-nvmetcli-remove-status-method-for-the-uipo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-nvmetcli-remove-status-method-for-the-uiportnode.patch of Package nvmetcli.7724
From: Johannes Thumshirn <jthumshirn@suse.de> Date: Thu, 30 Nov 2017 11:27:23 +0100 Subject: nvmetcli: remove status method for the UIPortNode Git-commit: 69182535c1df21c8cc2d0be4e5b4229f32a057e8 Patch-mainline: v0.6 References: bsc#1070533 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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nvmetcli b/nvmetcli index 5378365eb91f..4fbc12ec430f 100755 --- a/nvmetcli +++ b/nvmetcli @@ -356,11 +356,6 @@ class UIPortNode(UINode): UIPortSubsystemsNode(self) UIReferralsNode(self) - def status(self): - if self.cfnode.get_enable(): - return "enabled" - return "disabled" - class UIPortSubsystemsNode(UINode): def __init__(self, parent): -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor