summaryrefslogtreecommitdiffstats
path: root/partitions.py
Commit message (Collapse)AuthorAgeFilesLines
* - Handle empty drive lists better when looking for usb-storage and firewire.Peter Jones2006-05-161-1/+1
|
* * isys/isys.py (driveIsRemovable): Split module checking out to itsPeter Jones2006-05-091-0/+17
| | | | | | | | | | own functions. Allow usb-storage installs. * partitions.py: warn if you're using firewire or usb * loader2/modules.c (loadModule): Delay on reloading usb-storage, as it takes undefined time as well. Without this /tmp/scsidisks is wrong. * loader2/modules.c (writeModulesConf): don't exclude usb-storage or sbp2.
* Emit --useexisting and --noformat for VGs, RAID, and LVs (#189123).Chris Lumens2006-04-271-2/+12
|
* Get ready for a surprise...David Cantrell2006-03-241-4/+5
| | | | not really. It's just iutil.getArch() -> rhpl.getArch() updates.
* 2006-02-06 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-02-061-1/+1
| | | | | * partitions.py (Partitions.setFromDisk): Fix reading of chunksize from pre-existing RAID (#178291)
* None vs. 0 vs. "" fixes.Chris Lumens2006-01-091-5/+5
|
* Always write out a device name for RAID devices.Chris Lumens2006-01-091-0/+1
|
* * dmraid.py (dmDriveCache): add dmDriveCache class, to to managePeter Jones2005-12-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | our three-drive-monte with isys's hard drive list. (getRaidSetInfo): remove completely (scanForRaid): don't use getRaidSetInfo, just test the RaidSet object directly. Also log a warning when we encounter a degraded raidset. (startAllRaid): don't use a generator, since we need to provide a non-None empty result set. (stopRaidSet): simplify the code a bit. (stopAllRaids): remove traceback stuff, and remove artifacts of getRaidSetInfo * fsset.py: don't disable dmraids when rescanning partitions (LogicalVolumeDevice): rename the volume group name argument to "vgname" instead of "lvname", and add an argument for the object so we can find its physical volumes. * lvm.py (writeForceConf): take device list as an argument, and use that to write the filter rules. * partRequests.py (LogicalVolumeRequestSpec.getDevice): pass vg object in to fsset.LogicalVolumeDevice * partedUtils.py (DiskSet.startDmRaid): rewrite it to remove some unneeded code, and make it a lot simpler. (.startAllRaid): cut out a lot of crap, make the s390 handling simpler (.stopDmRaid): remove some useless stuff (.stopAllRaid): remove the s390 handling (.openDevices): check for None to see if dmraid is initialized. * partitions.py (Partitions.setFromDisk): call lvm.writeForceConf before we probe for PV/VG/LV info.
* - handle dmraid different from normal raid, so it's alive when wePeter Jones2005-11-171-1/+2
| | | | partition
* 2005-10-20 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-10-201-0/+7
| | | | | * partitions.py (Partitions.sanityCheckAllRequests): Don't allow bootable partitions on xfs
* Use new logging system.Chris Lumens2005-08-121-13/+15
|
* 2005-07-08 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-07-081-5/+0
| | | | * partitions.py (Partitions.getBootableRequest): Nuke some dead code.
* 2005-06-07 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-06-071-13/+4
| | | | | | | * partitions.py (Partitions.writeKS): And use the quoted format so we get it everywhere (#159193) * fsset.py (FileSystemType.getName): Pass back quoted fsname if needed.
* 2005-05-19 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-05-191-6/+21
| | | | | | | | | | | | * fsset.py (prepbootFileSystem.__init__): PReP partitions should be marked bootable, from Dustin Kirkland. * raid.py (availRaidLevels): Allow ppc to have a RAID /boot, from Dustin Kirkland. * partitions.py (Partitions.getBootableRequest): Split PMac/pSeries handling to be different. pSeries can do bootable PReP. Patch from Dustin Kirkland <dustin.kirkland@us.ibm.com>
* 2005-04-27 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-04-271-1/+1
| | | | | * partitions.py (Partitions.setFromDisk): Fix lvs showing up with a mountpoint of 0 (#153965)
* update LV snapshot delete codePeter Jones2005-03-281-14/+25
|
* bad method name, no donut.Peter Jones2005-03-281-1/+1
|
* Delete snapshot LVs before their parentsPeter Jones2005-03-281-7/+15
|
* move availRaidLevels from fsset.py to raid.py, so it can be evaluated rightPeter Jones2005-03-091-1/+1
| | | | in all imports
* put the apple bootloader stuff in the kickstart list, and remove it fromPeter Jones2005-02-231-0/+2
| | | | the raid and lvm possibilities early on
* Fix clampPVSize call. Fix typo in getBootableRequest.Chris Lumens2005-02-231-2/+2
|
* Deal with multiple Apple Bootstrap partitions (dwmw2)Paul Nasrat2005-02-211-11/+12
|
* Fedora PPC - autopartitioning (#121266) and G5 (#149081)Paul Nasrat2005-02-191-0/+24
|
* * lvm.py (lvlist): return size in MB.Peter Jones2005-01-211-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lvm.py (pvlist): return size in MB. * lvm.py (vglist): return size in MB, and pesize in KB. * lvm.py (clampLVSizeRequest): use math.ceil and math.floor for "roundup", so we don't need to special case "size % pe == 0" * lvm.py (clampPVSize): replace the completely broken code that fails to implement a size heuristic for lvm1. We still need to guess at the available size, but not here. * partRequest.py: add PartitionSpec.getPVSize, which returns a size for a Physical Volume given a partition. If there's no PV in the real partition, it guesses the size based on the free space. Make VolumeGroupRequestSpec.getActualSize use PartitonSpec.getPVSize instead of PartitionSpec.getActualSize * partitions.py: make Partitions.setFromDisk use the PE size from the volume group, so we don't give the wrong pesize to clamp later and create an LV with an invalid size. Also make it handle lv size in MB. make Partitions.getAvailLVMPartitions use the PV's size, not the partition's size. It'll estimate the size from the partition's size if there's no LV created yet. * iw/lvm_dialog_gui.py: use getPVSize instead of getActualSize for LVM physical volume sizes.
* 2004-12-20 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-201-2/+5
| | | | | | * partitions.py (Partitions.writeKS): Improve quoting of fstypes. Patch from Danen Brücker <dbrucker AT modwest DOT com> on anaconda-devel-list
* 2004-12-08 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-091-4/+4
| | | | | | | | | * partitions.py (Partitions.setFromDisk): Adding as a request requires more bits, do as a delete (#142304) (Partitions.getPartialLVMRequests): Check deletes now * partRequests.py (PartialVolumeGroupRequestSpec): It's not really a RequestSpec, change accordingly.
* 2004-12-03 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-031-0/+5
| | | | | * partitions.py (Partitions.setFromDisk): Detect partial vgs, preserve the name (#139058)
* 2004-12-03 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-031-4/+17
| | | | | | | * partitions.py (Partitions.getPartialLVMRequests): Get partial volume group requests (Partitions.isVolumeGroupNameInUse): If we have a partial by the requested name, let it be known so that we avoid conflicts.
* 2004-12-01 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-011-0/+2
| | | | * partitions.py (Partitions.writeKS): Include pesize (#141370)
* 2004-11-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-11-041-3/+3
| | | | | * partitions.py (Partitions.writeKS): Have to have sizes as integers (#138109)
* 2004-11-03 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-11-031-1/+1
| | | | | | | | | * autopart.py (getAutopartitionBoot): Use iutil.hasiSeriesNativeStorage instead of iutil.hasIbmSis() * partitions.py (Partitions.sanityCheckAllRequests): Likewise. * iutil.py (hasiSeriesNativeStorage): Rename from hasIbmSis(), check for ipr as well as ibmsis.
* 2004-10-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-10-171-0/+2
| | | | | | | * partitions.py (Partitions.writeKS): Write out size=0 (#135714) * kickstart.py (KickstartBase.definePartition): Allow partition size to be zero to work better with LVM autopart (#135714)
* 2004-10-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-10-041-0/+2
| | | | | | | | * partitions.py (Partitions.writeKS): Include PPC PReP boot partition (#133934) * kickstart.py (KickstartBase.definePartition) Allow specifying the PPC PReP Boot partition as "part prepboot"
* fix getting the raid chunk size to actually workJeremy Katz2004-07-131-1/+1
|
* fix size reporting (#127535)Jeremy Katz2004-07-121-1/+1
|
* don't crash on an unsupported raid level (#125492, others)Jeremy Katz2004-06-151-1/+6
|
* quote fstype if needed (#119243)Jeremy Katz2004-06-091-1/+4
|
* bump down min sizes to avoid problems with cylinders causing rounding oddnessJeremy Katz2004-05-111-2/+2
|
* fix traceback (#115564)Jeremy Katz2004-02-181-1/+1
|
* remove auto-swap formatting hack from the 7.2 days. this used to beJeremy Katz2004-01-061-16/+4
| | | | | really useful in the "use fdisk, set swap partition" case. it shouldn't really be necessary anymore (#107264)
* and use the lvm.py stuff to find preexisting partitions for installs tooJeremy Katz2003-12-121-64/+19
|
* merge fixJeremy Katz2003-12-051-1/+1
|
* avoid trying to remove a raid minor more than onceJeremy Katz2003-11-061-1/+1
|
* read the chunk size of preexisting raid devices and reuse it (#101518)Jeremy Katz2003-10-161-1/+7
|
* pull up fix for #105788 from taroon-branchJeremy Katz2003-10-141-0/+19
|
* if we're doing a hard drive install from a removable drive (like usb-storage),Jeremy Katz2003-09-291-1/+4
| | | | then there won't be a request associated with it in most cases (#105720)
* don't try to remove existing log vols or vol groups more than once (#104993)Jeremy Katz2003-09-251-2/+6
|
* merge from taroonJeremy Katz2003-09-201-1/+7
| | | | fairly large merge, but all fairly obvious stuff. will test in a tree tomorrow
* merge from taroon branch to headJeremy Katz2003-07-311-0/+3
|
* massive merge from taroon branch. changes are all over the place, but aJeremy Katz2003-07-081-5/+6
| | | | | | | | | | | | | | summary of looking through the diff is * clean up warnings, we build with -Wall -Werror here too * product.img stuff * max logical partitions enforcement * 1 TB max fs size * ethtool stuff * autopart in kickstart * driver disk fixes * RHEL upgrade stuff * network driver disks * variant pkgorder/tree splitting