Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
f5c9793b
Commit
f5c9793b
authored
14 years ago
by
Thibault VINCENT
Browse files
Options
Downloads
Patches
Plain Diff
storage: fix naming
parent
6012fcd5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ccnode/interface.py
+3
-3
3 additions, 3 deletions
ccnode/interface.py
ccnode/libvirtwrapper.py
+3
-3
3 additions, 3 deletions
ccnode/libvirtwrapper.py
with
6 additions
and
6 deletions
ccnode/interface.py
+
3
−
3
View file @
f5c9793b
...
@@ -252,7 +252,7 @@ class HVStorage(object):
...
@@ -252,7 +252,7 @@ class HVStorage(object):
:type pool: libvirt.`virStoragePool`
:type pool: libvirt.`virStoragePool`
'''
'''
def
get_pool_
total_space
(
self
,
pool
):
def
get_pool_
space_total
(
self
,
pool
):
'''
'''
Returns the storage capacity of this pool in bytes
Returns the storage capacity of this pool in bytes
...
@@ -261,7 +261,7 @@ class HVStorage(object):
...
@@ -261,7 +261,7 @@ class HVStorage(object):
:return: :class:`int` of capacity in bytes
:return: :class:`int` of capacity in bytes
'''
'''
def
get_pool_available
_space
(
self
,
pool
):
def
get_pool_
space_
available
(
self
,
pool
):
'''
'''
Returns available space of this storage pool in bytes
Returns available space of this storage pool in bytes
...
@@ -270,7 +270,7 @@ class HVStorage(object):
...
@@ -270,7 +270,7 @@ class HVStorage(object):
:return: :class:`int` of available free space in bytes
:return: :class:`int` of available free space in bytes
'''
'''
def
get_pool_
used_
space
(
self
,
pool
):
def
get_pool_space
_used
(
self
,
pool
):
'''
'''
Returns current storage pool usage in bytes
Returns current storage pool usage in bytes
...
...
This diff is collapsed.
Click to expand it.
ccnode/libvirtwrapper.py
+
3
−
3
View file @
f5c9793b
...
@@ -444,7 +444,7 @@ class LibvirtHVStorage(HVStorage):
...
@@ -444,7 +444,7 @@ class LibvirtHVStorage(HVStorage):
except
libvirt
.
libvirtError
as
e
:
except
libvirt
.
libvirtError
as
e
:
raise
StorageError
(
"
Can
'
t get pool state (%s)
"
%
e
)
raise
StorageError
(
"
Can
'
t get pool state (%s)
"
%
e
)
def
get_pool_
total_space
(
self
,
pool
):
def
get_pool_
space_total
(
self
,
pool
):
'''
'''
Returns the storage capacity of this pool in bytes
Returns the storage capacity of this pool in bytes
...
@@ -457,7 +457,7 @@ class LibvirtHVStorage(HVStorage):
...
@@ -457,7 +457,7 @@ class LibvirtHVStorage(HVStorage):
except
libvirt
.
libvirtError
as
e
:
except
libvirt
.
libvirtError
as
e
:
raise
StorageError
(
"
Can
'
t get pool informations (%s)
"
%
e
)
raise
StorageError
(
"
Can
'
t get pool informations (%s)
"
%
e
)
def
get_pool_available
_space
(
self
,
pool
):
def
get_pool_
space_
available
(
self
,
pool
):
'''
'''
Returns available space of this storage pool in bytes
Returns available space of this storage pool in bytes
...
@@ -470,7 +470,7 @@ class LibvirtHVStorage(HVStorage):
...
@@ -470,7 +470,7 @@ class LibvirtHVStorage(HVStorage):
except
libvirt
.
libvirtError
as
e
:
except
libvirt
.
libvirtError
as
e
:
raise
StorageError
(
"
Can
'
t get pool informations (%s)
"
%
e
)
raise
StorageError
(
"
Can
'
t get pool informations (%s)
"
%
e
)
def
get_pool_
used_
space
(
self
,
pool
):
def
get_pool_space
_used
(
self
,
pool
):
'''
'''
Returns current storage pool usage in bytes
Returns current storage pool usage in bytes
...
...
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