Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nmvetcli-mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
Sysadmin
Archived
nmvetcli-mirror
Commits
e44363fe
Commit
e44363fe
authored
Apr 3, 2016
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
nvme: a couple typo fixes
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
cbb9b324
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nvmet/nvme.py
+7
-7
7 additions, 7 deletions
nvmet/nvme.py
with
7 additions
and
7 deletions
nvmet/nvme.py
+
7
−
7
View file @
e44363fe
...
...
@@ -370,14 +370,14 @@ class Subsystem(CFSNode):
'''
def
__repr__
(
self
):
return
"
<
Namespace
%s>
"
%
self
.
nqn
return
"
<
Subsystem
%s>
"
%
self
.
nqn
def
__init__
(
self
,
nqn
=
None
,
mode
=
'
any
'
):
'''
@param nqn: The Subsystems
'
s
NQN.
@param nqn: The Subsystems
'
NQN.
If no NQN is specified, one will be generated.
@type nqn: string
@param mode:An option
n
al string containing the object creation mode:
@param mode:An optional string containing the object creation mode:
- I{
'
any
'
} means the configFS object will be either looked up
or created.
- I{
'
lookup
'
} means the object MUST already exist configFS.
...
...
@@ -408,7 +408,7 @@ class Subsystem(CFSNode):
def
delete
(
self
):
'''
Recursively deletes a Subsystem
s
object.
Recursively deletes a Subsystem object.
This will delete all attached Namespace objects and then the
Subsystem itself.
'''
...
...
@@ -423,7 +423,7 @@ class Subsystem(CFSNode):
@classmethod
def
setup
(
cls
,
t
,
err_func
):
'''
Set up Subsystem
s
objects based upon t dict, from saved config.
Set up Subsystem objects based upon t dict, from saved config.
Guard against missing or bad dict items, but keep going.
Call
'
err_func
'
for each error.
'''
...
...
@@ -457,7 +457,7 @@ class Namespace(CFSNode):
MAX_NSID
=
8192
def
__repr__
(
self
):
return
"
<Namspace %d>
"
%
self
.
nsid
return
"
<Nam
e
space %d>
"
%
self
.
nsid
def
__init__
(
self
,
subsystem
,
nsid
=
None
,
mode
=
'
any
'
):
'''
...
...
@@ -465,7 +465,7 @@ class Namespace(CFSNode):
@param nsid: The Namespace identifier
If no nsid is specified, the next free one will be used.
@type nsid: int
@param mode:An option
n
al string containing the object creation mode:
@param mode:An optional string containing the object creation mode:
- I{
'
any
'
} means the configFS object will be either looked up
or created.
- I{
'
lookup
'
} means the object MUST already exist configFS.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment