Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
itminedu
snf-ganeti
Commits
04fa07f2
Commit
04fa07f2
authored
17 years ago
by
Manuel Franceschini
Browse files
Options
Downloads
Patches
Plain Diff
Add constants for file-based storage
Reviewed-by: iustinp
parent
f9193417
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/constants.py
+9
-1
9 additions, 1 deletion
lib/constants.py
with
9 additions
and
1 deletion
lib/constants.py
+
9
−
1
View file @
04fa07f2
...
...
@@ -87,6 +87,7 @@ DT_PLAIN = "plain"
DT_LOCAL_RAID1
=
"
local_raid1
"
DT_REMOTE_RAID1
=
"
remote_raid1
"
DT_DRBD8
=
"
drbd
"
DT_FILE
=
"
file
"
# the set of network-mirrored disk templates
DTS_NET_MIRROR
=
frozenset
([
DT_REMOTE_RAID1
,
DT_DRBD8
])
...
...
@@ -96,6 +97,11 @@ LD_LV = "lvm"
LD_MD_R1
=
"
md_raid1
"
LD_DRBD7
=
"
drbd
"
LD_DRBD8
=
"
drbd8
"
LD_FILE
=
"
file
"
# file backend driver
FD_LOOP
=
"
loop
"
FD_BLKTAP
=
"
blktap
"
# the set of drbd-like disk types
LDS_DRBD
=
frozenset
([
LD_DRBD7
,
LD_DRBD8
])
...
...
@@ -111,7 +117,9 @@ INSTANCE_IMPORT = "import"
DISK_TEMPLATES
=
frozenset
([
DT_DISKLESS
,
DT_PLAIN
,
DT_LOCAL_RAID1
,
DT_REMOTE_RAID1
,
DT_DRBD8
])
DT_DRBD8
,
DT_FILE
])
FILE_DRIVER
=
frozenset
([
FD_LOOP
,
FD_BLKTAP
])
# import/export config options
INISECT_EXP
=
"
export
"
...
...
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