[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] autopart.py code and documentation fixes



The autopart.autoCreatePartitionRequests() is broken.  A patch to fix
it is attached.  Some other docs and comment changes are included.

Cheers,

Matt
-- 
Matt Wilson
rpath, Inc.
msw rpath com
Index: anaconda
===================================================================
RCS file: /usr/local/CVS/anaconda/anaconda,v
retrieving revision 1.347
diff -u -r1.347 anaconda
--- anaconda	15 Aug 2005 20:18:44 -0000	1.347
+++ anaconda	15 Aug 2005 20:57:43 -0000
@@ -8,8 +8,8 @@
 # Mike Fulbright <msf redhat com>
 # Jakub Jelinek <jakub redhat com>
 # Jeremy Katz <katzj redhat com>
-# Erik Troan <ewt redhat com>
-# Matt Wilson <msw specifixinc com>
+# Erik Troan <ewt rpath com>
+# Matt Wilson <msw rpath com>
 #
 # ... And many others
 #
Index: autopart.py
===================================================================
RCS file: /usr/local/CVS/anaconda/autopart.py,v
retrieving revision 1.170
diff -u -r1.170 autopart.py
--- autopart.py	11 Aug 2005 20:56:29 -0000	1.170
+++ autopart.py	15 Aug 2005 20:57:44 -0000
@@ -1546,17 +1546,18 @@
     """Return a list of requests created with a shorthand notation.
 
     Mainly used by installclasses; make a list of tuples of the form
-    (mntpt, fstype, minsize, maxsize, grow, format)
+    (mntpt, fstype, minsize, maxsize, grow, format, asvol)
     mntpt = None for non-mountable, otherwise is mount point
     fstype = None to use default, otherwise a string
     minsize = smallest size
     maxsize = max size, or None means no max
     grow = 0 or 1, should partition be grown
     format = 0 or 1, whether to format
+    asvol = 0 or 1, whether or not it should be a logical volume
     """
     
     requests = []
-    for (mntpt, fstype, minsize, maxsize, grow, format) in autoreq:
+    for (mntpt, fstype, minsize, maxsize, grow, format, asvol) in autoreq:
         if fstype:
             ptype = fsset.fileSystemTypeGet(fstype)
         else:
@@ -1577,7 +1578,7 @@
     """Return a list of requests created with a shorthand notation using LVM.
 
     Mainly used by installclasses; make a list of tuples of the form
-    (mntpt, fstype, minsize, maxsize, grow, format)
+    (mntpt, fstype, minsize, maxsize, grow, format, asvol)
     mntpt = None for non-mountable, otherwise is mount point
     fstype = None to use default, otherwise a string
     minsize = smallest size

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]