summaryrefslogtreecommitdiffstats
path: root/partRequests.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace old storage modules.David Lehman2009-02-231-1057/+0
|
* Ensure request.drive is always a list (#485622)David Cantrell2009-02-201-1/+5
| | | | | | | | | | | | | | | | | The main problem here is that get_partition_by_name() has been removed from partedUtils.py. The functionality is now provided by the getPartitionByPath() method on a parted.Disk object. The old function in partedUtils would iterate over the PedDisk collection and each partition manually, whereas now we have to call getPartitionByPath() for each parted.Disk we have. request.drive has been used inconsistently throughout the existing storage code and only started to show up when I was moving things from anaconda to pyparted. What this patch does is ensure that request.drive on RequestSpec objects is always a list or None. There are a few other changes in the storage code to handle the request.drive variable always being a list, but I think it should be pretty straightforward.
* Fix PartitionSpec.getActualSize()David Cantrell2009-02-121-4/+4
| | | | Fix autopart run with the new pyparted.
* getPartitionByPath expects the device to start with /dev/.Chris Lumens2009-02-121-1/+1
|
* Use parted.Disk.getPartitionByPath()David Cantrell2009-02-121-5/+12
| | | | | | Removed the parted.getPartitionByName() function. There is now a method on parted.Disk called getPartitionByPath() which provides the same functionality, but only works on a single Disk.
* Removed partedUtils.get_partition_by_name()David Cantrell2009-02-121-1/+1
| | | | Now provided by pyparted as parted.getPartitionByName()
* Removed partedUtils.getPartSizeMB()David Cantrell2009-02-121-1/+1
| | | | | The parted.Partition object provides getSize() to return the size of the partition in a human-readable format.
* Allow live installs to use ext4 as root and make the error message clearerJeremy Katz2009-01-191-4/+3
|
* If it's encrypted, it's encrypted. Passphrases will get sorted out.David Lehman2008-09-151-1/+1
|
* LUKSDevice.getScheme() no longer cares if the dev has a passphrase. (#461203)David Lehman2008-09-111-1/+1
|
* Use print() as a function.Peter Jones2008-09-081-1/+1
|
* 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 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