Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Masters Of The Universe (http://www.linux-archive.org/ubuntu-masters-universe/)
-   -   Pass a parted.FileSystem to parted.Partition.__init__() (http://www.linux-archive.org/ubuntu-masters-universe/244133-pass-parted-filesystem-parted-partition-__init__.html)

David Cantrell 02-11-2009 11:54 PM

Pass a parted.FileSystem to parted.Partition.__init__()
 
---
autopart.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/autopart.py b/autopart.py
index 6b5f887..648a1bb 100644
--- a/autopart.py
+++ b/autopart.py
@@ -478,8 +478,9 @@ def fitSized(diskset, requests, primOnly = 0, newParts = None):
geometry = parted.Geometry(device=disk.device,
start=startSec,
end=endSec)
+ fs=parted.FileSystem(type=fsType.name, geometry=geometry)
newp = parted.Partition(disk=disk, type=partType,
- fs=fsType, geometry=geometry)
+ fs=fs, geometry=geometry)
constraint = parted.Constraint(device=disk.device)

try:
--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 03:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.