Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Ganeti ext storage provider for RBD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
Ganeti ext storage provider for RBD
Commits
6af0242f
Commit
6af0242f
authored
7 years ago
by
Filippos Giannakos
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in comments
parent
f574093c
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
ext_scripts/ext_rbd.py
+3
-3
3 additions, 3 deletions
ext_scripts/ext_rbd.py
with
3 additions
and
3 deletions
ext_scripts/ext_rbd.py
+
3
−
3
View file @
6af0242f
...
@@ -42,7 +42,7 @@ The following variables are optional:
...
@@ -42,7 +42,7 @@ The following variables are optional:
- EXTP_IMAGE_FEATURE: The enabled features of the new RBD volume
- EXTP_IMAGE_FEATURE: The enabled features of the new RBD volume
- EXTP_STRIPE_UNIT Size (in bytes) of a block of data
- EXTP_STRIPE_UNIT Size (in bytes) of a block of data
- EXTP_STRIPE_COUNT Number of consecutive objects in a stripe
- EXTP_STRIPE_COUNT Number of consecutive objects in a stripe
- EXTP_USERSPACE_ONLY
Number o
f
c
on
secutive objects in a stripe
- EXTP_USERSPACE_ONLY
Set i
f on
ly userspace access is requested
- EXTP_USP_* Parameters to append to the userspace URI
- EXTP_USP_* Parameters to append to the userspace URI
The code branches to the correct function, depending on the name (sys.argv[0])
The code branches to the correct function, depending on the name (sys.argv[0])
...
@@ -296,7 +296,7 @@ def format_qemu_uri(name, pool=None, cephx=None, conf_file=None, cache=None,
...
@@ -296,7 +296,7 @@ def format_qemu_uri(name, pool=None, cephx=None, conf_file=None, cache=None,
uri
=
'
kvm:rbd:%s
'
%
RBD
.
format_name
(
name
,
pool
=
pool
)
uri
=
'
kvm:rbd:%s
'
%
RBD
.
format_name
(
name
,
pool
=
pool
)
extra_conf
=
''
extra_conf
=
''
# Only id is supported for cephx authentication
, for
the userspace URI.
# Only
'
id
'
is supported for cephx authentication
in
the userspace URI.
if
cephx
.
get
(
'
id
'
):
if
cephx
.
get
(
'
id
'
):
extra_conf
+=
'
:id=%s
'
%
cephx
[
'
id
'
]
extra_conf
+=
'
:id=%s
'
%
cephx
[
'
id
'
]
if
conf_file
:
if
conf_file
:
...
@@ -308,7 +308,7 @@ def format_qemu_uri(name, pool=None, cephx=None, conf_file=None, cache=None,
...
@@ -308,7 +308,7 @@ def format_qemu_uri(name, pool=None, cephx=None, conf_file=None, cache=None,
extra_conf
+=
'
:rbd_cache=true
'
extra_conf
+=
'
:rbd_cache=true
'
if
cache
==
'
writethrough
'
:
if
cache
==
'
writethrough
'
:
# To ensure that the cache is set in writethrough mode.
# To ensure that the cache is set in writethrough mode.
# QEMU alone
,
does not set this value when 'cache=writethrough' is set,
# QEMU alone does not set this value when 'cache=writethrough' is set,
# although if 'ceph.conf' does not says otherwise, 'rbd_cache' is set
# although if 'ceph.conf' does not says otherwise, 'rbd_cache' is set
# to true.
# to true.
extra_conf
+=
'
:rbd_cache_max_dirty=0
'
extra_conf
+=
'
:rbd_cache_max_dirty=0
'
...
...
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