summaryrefslogtreecommitdiffstats
path: root/partRequests.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-28 21:36:59 +0000
committerPeter Jones <pjones@redhat.com>2005-03-28 21:36:59 +0000
commite1b00db6c794295a0e68ffc8a498f54eed78ebd0 (patch)
tree4ebb3a3addbeaa7f0a565efc864eadad0785199f /partRequests.py
parentdc3bdef00ab252648dd31edae9ab299af7007c19 (diff)
downloadanaconda-e1b00db6c794295a0e68ffc8a498f54eed78ebd0.tar.gz
anaconda-e1b00db6c794295a0e68ffc8a498f54eed78ebd0.tar.xz
anaconda-e1b00db6c794295a0e68ffc8a498f54eed78ebd0.zip
update LV snapshot delete code
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/partRequests.py b/partRequests.py
index 01be85ac5..2b9a38ce9 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -798,7 +798,7 @@ class LogicalVolumeRequestSpec(RequestSpec):
def __init__(self, fstype, format = None, mountpoint = None,
size = None, volgroup = None, lvname = None,
preexist = 0, percent = None, grow=0, maxSizeMB=0,
- bytesPerInode = 4096, lvorigin=None):
+ bytesPerInode = 4096):
"""Create a new VolumeGroupRequestSpec object.
fstype is the fsset filesystem type.
@@ -812,7 +812,6 @@ class LogicalVolumeRequestSpec(RequestSpec):
grow is whether or not to use free space remaining.
maxSizeMB is max size to grow to.
bytesPerInode is the size of the inodes on the partition.
- lvorigin is the name of the LV that this snapshot LV is taken from
"""
# if it's preexisting, the original fstype should be set
@@ -839,8 +838,6 @@ class LogicalVolumeRequestSpec(RequestSpec):
self.grow = grow
self.maxSizeMB = maxSizeMB
self.startSize = size
- self.lvorigin = lvorigin
- self.snapshots = []
if not percent and not size and not preexist:
raise RuntimeError, "Error with Volume Group:Logical Volume %s:%s - Logical Volume must specify either percentage of vgsize or size" % (volgroup, lvname)