summaryrefslogtreecommitdiffstats
path: root/partRequests.py
Commit message (Collapse)AuthorAgeFilesLines
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-1/+3
| | | | * po/sk.po: Typo fix.
* Support encrypted RAID member devices. (#429600)David Lehman2008-04-071-1/+2
| | | | | | | | | When creating the RAIDDevice instance, pass in Device instances (as opposed to device names) for the members list. This way we have all the information we need to set up the RAID, including encryption stuff. Previously we instantiated Devices for the RAID members in the setupDevice method. Now we just use the preexisting Device instances from the member RequestSpecs.
* Require live installs to be to an ext2 or ext3 filesystem (#397871)Jeremy Katz2008-04-011-0/+4
|
* Add support for encrypted LVs.David Lehman2008-03-261-3/+10
|
* Don't traceback if we have little freespace partitions (#438696)Jeremy Katz2008-03-251-1/+1
|
* Make it obvious which partitions are being formatted and encryptedJeremy Katz2007-12-311-4/+10
| | | | | | Add a lock icon in the format column for partitions which are to be formatted and encrypted. Only use the specific partition and don't go into child requests for things like RAID and LVM. Pixmap is from the Bluecurve icon theme
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-4/+4
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-10/+18
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Better checking for bootable request on an encrypted deviceJeremy Katz2007-12-111-30/+32
| | | | | | | Do the checking for if the bootable request is on an encrypted device in the final sanity check rather than at request add. This makes it so that you can add /boot later. Takes advantage of the new request.isEncrypted() method which checks base devs for LVM and RAID
* Backend code for logical volume resizingJeremy Katz2007-11-291-2/+21
|
* Give access to partitions when determining min/max size to resize; also keepJeremy Katz2007-11-291-2/+11
| | | | track of the request being resizable rather than just the filesystem
* Add infrastructure for partition resizingJeremy Katz2007-11-291-0/+18
| | | | | | | | | | We add support to preexisting partitions to be resized by adjusting their partition spec and then acting on the changes within the main partitioning engine. Keep track of what the maximum size for a preexisting partitition is so that we don't have to check in the UI Filesystems can claim to be resizable and implement the resize() method as well as the getMinimumSize() method
* Initial support for block devices encrypted using LUKS/dm-crypt.David Lehman2007-11-161-5/+49
| | | | | | The class LUKSDevice, in cryptodev.py, handles the details of creation and management of the encrypted devices. RequestSpec and Device classes contain an optional LUKSDevice instance describing the device's encryption setup. There is no support for pre-existing encrypted devices and kickstart support is not present at this point.
* - add --fsprofile support to lvm, paritition, and raid.Peter Jones2007-10-261-37/+32
| | | | - remove --bytes-per-inode support.
* Remove disabled badblocks checking code.Chris Lumens2007-08-031-13/+9
|
* Another attempt to enforce formatting of / on livecd installs.Chris Lumens2007-08-011-3/+5
|
* Certain filesystems must be formatted on live CD installs (#250301).Chris Lumens2007-08-011-3/+8
|
* 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 changeloganaconda-11.1.0.66-1Peter 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
|