summaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-02-13 19:31:23 +0000
committerJeremy Katz <katzj@redhat.com>2002-02-13 19:31:23 +0000
commit76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a (patch)
treed69b340204c852ed2e7490f9d84bd5b0598de79f /constants.py
parent3cc5e61f10ba9bbe6539539cecedfadb795199e0 (diff)
downloadanaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.tar.gz
anaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.tar.xz
anaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.zip
even more fun... move Partitions object to partitions.py and adjust accordingly.
move the Request object into partRequests.py and actually make it a nicer object with subclasses for the various types.
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/constants.py b/constants.py
index 9746ebb84..ed24b0436 100644
--- a/constants.py
+++ b/constants.py
@@ -16,3 +16,24 @@
DISPATCH_BACK = -1
DISPATCH_FORWARD = 1
DISPATCH_NOOP = None
+
+
+# different types of partition requests
+# REQUEST_PREEXIST is a placeholder for a pre-existing partition on the system
+# REQUEST_NEW is a request for a partition which will be automatically
+# created based on various constraints on size, drive, etc
+# REQUEST_RAID is a request for a raid device
+# REQUEST_PROTECTED is a preexisting partition which can't change
+# (harddrive install, harddrive with the isos on it)
+#
+REQUEST_PREEXIST = 1
+REQUEST_NEW = 2
+REQUEST_RAID = 4
+REQUEST_PROTECTED = 8
+REQUEST_VG = 16 # volume group
+REQUEST_LV = 32 # logical volume
+
+# when clearing partitions, what do we clear
+CLEARPART_TYPE_LINUX = 1
+CLEARPART_TYPE_ALL = 2
+CLEARPART_TYPE_NONE = 3