summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-06-30 19:53:40 +0000
committerMike Fulbright <msf@redhat.com>2003-06-30 19:53:40 +0000
commit01c246f1310a23290e70dd44eb7a5d34b84b1c8a (patch)
tree64b5dab1a4c429d4d3135bd077aeb4c3bef1fa4d /partitions.py
parent79c97fcdf4b7e01856b3cede6036d87e05b1b091 (diff)
downloadanaconda-01c246f1310a23290e70dd44eb7a5d34b84b1c8a.tar.gz
anaconda-01c246f1310a23290e70dd44eb7a5d34b84b1c8a.tar.xz
anaconda-01c246f1310a23290e70dd44eb7a5d34b84b1c8a.zip
address some overflow situations with terabyte size filesystems (bug #91931)
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/partitions.py b/partitions.py
index 7ac4ade65..94f5c4ce9 100644
--- a/partitions.py
+++ b/partitions.py
@@ -206,14 +206,14 @@ class Partitions:
if fields[0].strip() == "PE size":
pesize = fields[1].strip()
try:
- pesize = int(pesize)
+ pesize = long(pesize)
except:
log("PE size for %s not a valid integer, defaulting to 4096" %(vg,))
pesize = 4096
elif fields[0].strip() == "size":
preexist_size = fields[1].strip()
try:
- preexist_size = int(preexist_size) / 1024.0
+ preexist_size = long(preexist_size) / 1024.0
except:
log("preexisting size for %s not a valid integer, ignoring" %(vg,))
preexist_size = None
@@ -266,7 +266,7 @@ class Partitions:
log("Unable to find LV size for %s/%s" % (vg, lv))
continue
# size is listed as number of blocks, we want size in megs
- lvsize = int(lvsize) / 2048.0
+ lvsize = long(lvsize) / 2048.0
theDev = "/dev/%s/%s" %(vg, lv)
fs = partedUtils.sniffFilesystemType(theDev)