Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
04fa07f2
Commit
04fa07f2
authored
Mar 25, 2008
by
Manuel Franceschini
Browse files
Add constants for file-based storage
Reviewed-by: iustinp
parent
f9193417
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/constants.py
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment