From f1191862b788175e5ffec5d8aae1518f507afa99 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Sun, 23 Jun 2002 05:35:04 +0000 Subject: save origfstype if lv is preexisting --- partRequests.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/partRequests.py b/partRequests.py index 323aab8ff..bf113df08 100644 --- a/partRequests.py +++ b/partRequests.py @@ -718,9 +718,18 @@ class LogicalVolumeRequestSpec(RequestSpec): percent is the percentage of the volume group's space this should use. """ - RequestSpec.__init__(self, fstype = fstype, format = format, - mountpoint = mountpoint, size = size, - preexist = preexist) + # if it's preexisting, the original fstype should be set + if preexist == 1: + origfs = fstype + else: + origfs = None + + RequestSpec.__init__(self, fstype = fstype, format = format, + mountpoint = mountpoint, size = size, + preexist = preexist, origfstype = origfs) + + + self.type = REQUEST_LV self.logicalVolumeName = lvname -- cgit