Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
nvmetcli
0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch of Package nvmetcli
From 5e5e45f5e2800ff1f791e67f683891963f1583a4 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Fri, 27 Mar 2020 07:55:34 +0100 Subject: [PATCH] nvmetcli: don't remove ANA Group 1 on clear The first ANA group is maintained by the kernel so it cannot be deleted. Signed-off-by: Hannes Reinecke <hare@suse.de> --- nvmet/nvme.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvmet/nvme.py b/nvmet/nvme.py index 0647ddc..fdec4ff 100644 --- a/nvmet/nvme.py +++ b/nvmet/nvme.py @@ -845,6 +845,11 @@ class ANAGroup(CFSNode): a._setup_attrs(n, err_func) + def delete(self): + # ANA Group 1 is automatically created/deleted + if self.grpid != 1: + super(ANAGroup, self).delete() + def dump(self): d = super(ANAGroup, self).dump() d['grpid'] = self.grpid -- 2.16.4
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