| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 autopart run with the new pyparted.
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
Now provided by pyparted as parted.getPartitionByName()
|
| |
|
|
|
| |
The parted.Partition object provides getSize() to return the size
of the partition in a human-readable format.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
* po/sk.po: Typo fix.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
| |
track of the request being resizable rather than just the filesystem
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
- remove --bytes-per-inode support.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
#230268).
|
| | |
|
| |
|
|
| |
- fix typo in raid request
|
| |
|
|
| |
(#149375)
|
| |
|
|
| |
(#186412)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
* partRequests.py (RaidRequestSpec.sanityCheckRaid): Ensure there
are <= 27 members of the RAID device.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
clamp each LV's max size, initial size, and growth amounts to pesize
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
<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.
|
| | |
|
| |
|
|
|
|
| |
uses them for getActualSize.
Also several more comments of dispair.
|
| |
|
|
| |
will provide.
|
| |
|
|
| |
flag (#97560).
|
| |
|
|
| |
* partRequests.py: import math, fix a traceback
|