summaryrefslogtreecommitdiffstats
path: root/storage
Commit message (Collapse)AuthorAgeFilesLines
* Ignore probably-spurious disklabels on unpartitionable devices. (#567832)David Lehman2010-02-261-1/+5
|
* Revert "Write a multipath.conf before probing for mpaths."Peter Jones2010-02-261-6/+0
| | | | This reverts commit 74e65cbf111a4f17fa393192519910de53d6c7ac.
* Revert "Remove MultipathDevice.identity* and add DMDevice.serial"Peter Jones2010-02-261-44/+25
| | | | This reverts commit c69b38827091b64c7091e415c6596a7045fd5039.
* Revert "Add StorageDevice.serial_for_display"Peter Jones2010-02-261-6/+0
| | | | This reverts commit 8a4fdd59c1d0d613cb32778b7142da8ec0adbab1.
* Revert "working on this"Peter Jones2010-02-264-70/+20
| | | | This reverts commit a24e722ebcb06c88f88605190caebdcf83236690.
* working on thisPeter Jones2010-02-264-20/+70
|
* Add StorageDevice.serial_for_displayPeter Jones2010-02-261-0/+6
| | | | | | Sometimes we need to compare serials, and sometimes we need to display them. The two aren't necessarily the same thing, so add a function to differentiate them.
* Remove MultipathDevice.identity* and add DMDevice.serialPeter Jones2010-02-261-25/+44
| | | | | | We're not internally determining multipaths any more, so we don't really need a separate infrastructure for device serial numbers. Also, add a generic DMDevice.serial that gets it from self.dmUuid
* Write a multipath.conf before probing for mpaths.Peter Jones2010-02-261-0/+6
| | | | | If we don't have a multipath.conf when we scan, we get a default blacklist of everything, which isn't helpful. So write one.
* Check for the real device-mapper nodes in /proc/swaps. (#567840)David Lehman2010-02-251-2/+13
|
* Don't unconditionally unskip the partition step on failure (#567889).Chris Lumens2010-02-251-1/+3
| | | | | Remember that this step does not exist in text mode and we therefore cannot add it back into the step list when autopart fails.
* DiskLabel.status can't be determined so return False. (#563526,#561074)David Lehman2010-02-221-4/+1
|
* Add getDasdPorts() to storage/dasd.py.David Cantrell2010-02-221-0/+17
| | | | Reimplement the old isys.getDasdPorts() function in Python.
* Don't align free space geometries in getFreeRegions. (#565692)David Lehman2010-02-221-20/+1
|
* Align extended partitions like we do other partitions.David Lehman2010-02-221-3/+5
|
* logging: addFileHandler does not set autoLevel by defaultAles Kozumplik2010-02-181-1/+2
|
* PartitionDevice._setDisk: self.disk can be None. (#565930)David Lehman2010-02-161-1/+2
|
* Add currentSize method to the PartitionDevice class (#565822)Hans de Goede2010-02-161-0/+12
| | | | | | | | | | | | | | | | | | PartitionDevice was inheriting the currentSize property from StorageDevice, but that uses partedDevice.getSize() which returns 1024 when called on extended partitions (as that is what the kernel reports). This causes _setTargetSize() to try and change the extended partition geometry even when called with the current extended partition geometry size, as currentSize was mis-reporting the extended partition size. Since we do end sector alignment now a days when changing the partition geometry, we could end up making the extended partition to small to hold the last logical partition resulting in a: PartitionException: Unable to satisfy all constraints on the partition. Error. This patch fixes this by adding a currentSize method to the PartitionDevice class, which properly reports the currentSize for extended partitions.
* Require a format to have a mountpoint before testing for RO (#565879).Chris Lumens2010-02-161-0/+1
| | | | | Otherwise, we traceback trying to mount /mnt/sysimage/None or something stupid like that.
* Use the LUKS UUID, not the filesystem UUID for dracut. (#561373)David Lehman2010-02-161-1/+1
|
* Show the correct device path when formatting as swap or luks.David Lehman2010-02-162-2/+4
|
* Fix ordering of arguments to xfs_admin for writing fs label. (#556546)David Lehman2010-02-161-0/+6
| | | | xfs_admin expects -L <label> <device>.
* Log only the disks' names in PartitionDevice._setDisk.David Lehman2010-02-161-1/+1
|
* Warn when ignoring BIOS RAID members (#560932)Hans de Goede2010-02-161-1/+12
| | | | | | | | | | | | | This patch adds a warning when ignoring BIOS RAID members because no complete set using them could be found. This patch also introduces a much needed InstallInterfaceBase class, as I didn't feel like adding the exact same code to all of cmdline.py, gui.py and text.py . Note that the ignoring of BIOS RAID members is checked in 2 places, as the filter UI can be skipped under certain circumstances (kickstart). The interface code checks for disks it has already warned about.
* Intel BIOS RAID array not recognized (#565458)Hans de Goede2010-02-161-1/+3
| | | | | | Due to recent changes in udev_is_md_array, Intel BIOS RAID array members are wrongly identified as RAID arrays instead of as RAID array members, this causes the actual raid array to not be seen by anaconda.
* Remove newly added partition from disk if subsequent commit fails. (#559907)David Lehman2010-02-151-1/+7
| | | | | | | If the commit fails because there's an md array active on the disk we will try again to add the partition after stopping the array, but if we don't remove the failed-to-add partition first, we end up with a mess.
* Raise default lvm extent size from 4MB to 32MB.David Lehman2010-02-121-1/+1
|
* Add udev_settle after setup of LUKSDevice. (#534043)David Lehman2010-02-121-0/+1
| | | | | | | | | | LVM (when looking for PVs) is finding the temporary udev device instead of the real/final device, so this is to make sure things are as they should be when lvm goes-a-hunting for devices. We should probably be explicitly telling lvm which devices to look for PVs on to avoid it scanning every block device every time we run an lvm command.
* Pass '--force' to vgremove to avoid interactive prompts. (#563873)David Lehman2010-02-121-1/+1
|
* Merge branch 'no-instdata'Chris Lumens2010-02-083-82/+83
|\
| * Move escrowCertificates into the Storage object.Chris Lumens2010-02-041-0/+1
| |
| * Move storage into the Anaconda class.Chris Lumens2010-02-043-68/+68
| |
| * Move network to the Anaconda object.Chris Lumens2010-02-041-1/+1
| |
| * Move upgrade-related data to the Anaconda object.Chris Lumens2010-02-041-4/+4
| | | | | | | | | | | | This also removes the hack where upgrade can be True, False, or None in order to test whether we've seen the upgrade screen or not. Instead, it introduces a global value hack. I consider this the slightly cleaner approach.
| * Move instClass to be an attribute on Anaconda.Chris Lumens2010-02-041-1/+1
| |
| * Use anaconda.ksdata instead of anaconda.isKickstart.Chris Lumens2010-02-042-8/+8
| | | | | | | | | | | | anaconda.ksdata is only non-None if there's a kickstart file, just like anaconda.isKickstart would be. Therefore, we don't need two variables to test for the same condition.
* | Keep the end sector aligned when resizing partitions (#560647)Hans de Goede2010-02-061-0/+3
| | | | | | | | | | This is esp. important with DASD's as these will only accept properly aligned partitions.
* | Don't return the passphrase from hasKey. Should return a boolean.David Lehman2010-02-051-1/+1
| |
* | Fix splitting of error strings from program.log.David Lehman2010-02-052-2/+2
| | | | | | | | Timestamp/tag format changed.
* | Add a default size of 500MB for new partition requests.David Lehman2010-02-051-0/+3
| |
* | Remove check for MD_DEVNAME from udev_device_is_md. (#562024)David Lehman2010-02-051-2/+1
| | | | | | | | | | | | MD_DEVNAME is never set for existing md arrays. Some metadata versions will have MD_NAME, but not all. All md arrays have MD_METADATA while component devices do not, making it perfect for differentiating them.
* | Don't try to specify bitmap for RAID0 since mdadm doesn't allow it. (#562023)David Lehman2010-02-051-1/+2
|/
* Fix typo in action sorting. Disklabels before partitions. (#560017)David Lehman2010-02-031-2/+2
|
* Add ID_SERIAL in as a backup in case there's no ID_SERIAL_SHORT.Chris Lumens2010-02-031-1/+1
|
* Enforce maximum partition sizes. (#528276)David Lehman2010-02-031-8/+11
|
* Strip off the timestamp from error output pulled from program.log.David Lehman2010-02-032-2/+6
|
* Fix: ArithmeticError: Could not align to closest sector (#561278)Hans de Goede2010-02-031-2/+14
| | | | | | | | | | | | | | Given a partition layout like this: partition startsector endsector /boot 2048 1026047 PV 1026048 xxxxxxxxxx Then when we call getFreeRegions() parted gives us a free region with a geometry starting at sector 63 and ending at sector 2047, which we then try to align to our 2048 grain, which fails for the starting sector. When we fail to align, this means that the free region is too small to create an aligned partition in there, and we should just skip it.
* Remove unused udev_parse_block_entry() functionHans de Goede2010-02-021-10/+0
| | | | This is a leftover from having our own udev db reading code.
* Fixup partition aligning (#560586)Hans de Goede2010-02-012-9/+19
| | | | | | | | | | | | | | | | | | Our partitioning code was assuming that having a partition from sector 0 - 512 means the partition stops at sector 512, iow that it goes from sector 0 till 511, but that is not how parted geometries work, the range includes the end sector. So 0 - 512 will get you a 513 sectors partition. This patch adds an endAligment property to disklabel which can be used to properly align end sectors (which must be aligned to the disklabel's alignment with the offset decreased by 1), patches partitioning.py to use this to align end sectors and fixes up end sector calculations in partitioning.py to be start + length - 1. On DASD's (s390), the wrong end sector was causing a traceback (#560586), as DASD's disklabels need partitions to be cylinder aligned, and the wrong end sector violated this.
* Fix backtrace when adding mdraid arrays (#560360)Hans de Goede2010-02-011-1/+1
| | | | | When doing custom partitioning, and adding an mdraid array, and a pre-existing array has a minor > 32, we will back trace, this patch fixes this.