summaryrefslogtreecommitdiffstats
path: root/partRequests.py
Commit message (Collapse)AuthorAgeFilesLines
* More RAID10 fixes (#230268).Chris Lumens2007-03-221-1/+1
|
* Apply patch to add support for RAID10 (Orion Poplawski <orion@cora.nwra.com>,Chris Lumens2007-02-281-0/+2
| | | | #230268).
* Skip the LV size check if grow is set (#203095).Chris Lumens2006-08-181-1/+1
|
* - update changelogPeter Jones2006-07-261-1/+1
| | | | - fix typo in raid request
* Show preexisting label if any exists to the UI and the mount point comboChris Lumens2006-07-211-4/+7
| | | | (#149375)
* Don't allow logical volumes to be smaller than their volume group's PE sizeChris Lumens2006-05-251-0/+8
| | | | (#186412)
* * dmraid.py (dmDriveCache): add dmDriveCache class, to to managePeter Jones2005-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Support bytesPerInode on RAID (Curtis Doty <Curtis at Greenkey.net, #175288).Chris Lumens2005-12-081-4/+6
|
* Use new logging system.Chris Lumens2005-08-121-4/+6
|
* Allow the resulting string to be put into a call to rhpl.log.Chris Lumens2005-05-031-1/+1
|
* Recognize --label for the part keyword (#79832).Chris Lumens2005-04-271-20/+25
|
* 2005-04-21 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-04-211-0/+3
| | | | | * partRequests.py (RaidRequestSpec.sanityCheckRaid): Ensure there are <= 27 members of the RAID device.
* update LV snapshot delete codePeter Jones2005-03-281-4/+1
|
* Delete snapshot LVs before their parentsPeter Jones2005-03-281-1/+4
|
* update copyright statements, like a good little corperate stooge ;)Peter Jones2005-03-071-1/+1
|
* comment out new log events that are only marginally helpfulPeter Jones2005-03-071-2/+2
| | | | clamp each LV's max size, initial size, and growth amounts to pesize
* * autopart.py: fix growable size log to show IDs instead of python'sPeter Jones2005-03-071-52/+6
| | | | | | | | | | | | | | | | | | | | <instance> info. log how much free space we're starting with. don't clamp an lv's total size, instead clamp pv's sizes appropriately * lvm.py: remove and recreate all PVs when we do a vgremove, so they don't lose 1 PE each time due to an lvm2 bug. log what lvm commands are being run, since that doesn't go into lvmout. log total vs actual in getVGFreeSpace * partRequests.py: get rid of getPVSize, that way can't work (oopsie). remove bogus check in getActualSize. clamp totalspace for preexisting PVs. clamp each PV's size and trim 1 PE off when computing total space. don't clamp the LV's overall size. * iw/lvm_dialog_gui.py: clamp each PV and trim 1 PE when computing availSpaceMB. Ow. My head hurts. But autopartition actually works, and even shows the same numbers as the editor afterwards.
* Fix __str__ parameter names so we don't traceback while debugging.Peter Jones2005-03-041-3/+3
|
* Make getPVSize not needs partedUtils devices unless the subclassed typePeter Jones2005-02-251-23/+22
| | | | | | uses them for getActualSize. Also several more comments of dispair.
* All RequestSpec objects have to be able to guess how much space a nest PVPeter Jones2005-02-251-33/+44
| | | | will provide.
* Support setting filesystem options via kickstart through a --fsoptionsChris Lumens2005-02-031-7/+10
| | | | flag (#97560).
* 2005-02-02 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-02-021-1/+1
| | | | * partRequests.py: import math, fix a traceback
* * lvm.py (lvlist): return size in MB.Peter Jones2005-01-211-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Support bytes per inode on a per-partition basis (#57550).Chris Lumens2005-01-141-14/+34
|
* 2004-12-08 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-091-2/+2
| | | | | | | | | * 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/+17
| | | | | | * partRequests.py (PartialVolumeGroupRequestSpec.__init__): Add partial volume group request for handling non-complete volume groups so we avoid conflicting names.
* 2004-10-19 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-10-191-0/+4
| | | | | | | | * autopart.py (doAutoPartition): Don't hard code VG name for auto-partitioned volume groups as VolGroup00 (#134263) * partRequests.py (VolumeGroupRequestSpec.__init__): Add autoname hack for autopart + lvm.
* 2004-10-06 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-10-061-1/+2
| | | | | | | | | * partRequests.py (RequestSpec.sanityCheckRequest): Call sanityCheckMountPoint with new option * partIntfHelpers.py (sanityCheckMountPoint): Don't allow formatting unless they specify a mountpoint on pre-existing partitions (#134865)
* 2004-10-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-10-041-5/+0
| | | | | * partRequests.py (LogicalVolumeRequestSpec.getDevice): Fix changing of VG name carrying through to boot loader setup (#132213)
* Fix for setting boot md no (#125006)Paul Nasrat2004-07-121-4/+1
|
* switch autopartitioning to use lvm by default. setup is basicallyJeremy Katz2004-07-071-2/+10
| | | | | | | * Create /boot partition (or appropriate for the arch) * For each drive being used in auto-partitioning, create a PV * Use these pvs in a vg * Create auto-partition requests as logical volumes in the vg
* bump default pesize to 32 MBJeremy Katz2004-05-271-1/+1
|
* need this tooJeremy Katz2004-05-201-0/+2
|
* if we go back from partitioning, we need to be able to change what the deviceJeremy Katz2003-12-171-4/+0
| | | | | is. this could actually be the root cause of a number of different things but is certainly the cause of #111243
* read the chunk size of preexisting raid devices and reuse it (#101518)Jeremy Katz2003-10-161-2/+5
|
* don't try to remove existing log vols or vol groups more than once (#104993)Jeremy Katz2003-09-251-0/+14
|
* massive merge from taroon branch. changes are all over the place, but aJeremy Katz2003-07-081-4/+5
| | | | | | | | | | | | | | 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
* another taroon merge. tagged before as before-taroon-merge, after asJeremy Katz2003-04-241-2/+2
| | | | | | | | after-taroon-merge this one adds s390 fixes, basic i/p series platform support, support for multiple kernels and one second stage, cmdline kickstart mode (nice for s390), some warning cleanups.
* don't require a size to be specified if the logical volume is preexisting. ↵Jeremy Katz2003-02-201-1/+1
| | | | needed for kickstart (#84494)
* fix for bug #79454 - a tad messy but this way I dont duplicate code elsewhereMike Fulbright2003-01-311-5/+14
|
* bump up copyright for things we have changed this year so farMike Fulbright2003-01-141-1/+1
|
* oopsMike Fulbright2003-01-091-2/+1
|
* fix for bug #81127 - dont let user use mount points that are symlinks in the ↵Mike Fulbright2003-01-081-2/+11
| | | | filesystem package
* hmm... this will be a little bit more correctJeremy Katz2003-01-071-1/+1
|
* add support for reading the size of preexisting VGs directly (#79920)Jeremy Katz2003-01-031-7/+20
|
* added code to handle growing lvm partitions. Only intended for use via ks at ↵Mike Fulbright2002-08-191-5/+16
| | | | moment (UI doesnt support or expose it)
* clamp sizes to allowable sizes based on Physical Extent of Volume GroupMike Fulbright2002-08-141-1/+6
|
* make error message a little more clear per request on kickstart-listJeremy Katz2002-07-181-2/+2
|
* Changes as per Milan Documentation String ReviewMike Fulbright2002-07-121-2/+2
|
* record preexisting fstype for a lvMike Fulbright2002-06-251-1/+8
|