summaryrefslogtreecommitdiffstats
path: root/storage
Commit message (Collapse)AuthorAgeFilesLines
* Fix discovery of existing raid/lvm for ks install without clearpart ↵Radek Vykydal2009-06-052-7/+4
| | | | | | | | | | | | | | | | | (#503310) (#503681) Default clearPartType to None so that all devices are discovered during storage initialization step, and UI parttype can be set to its default "Replace existing linux system". Also set clearPartType appropriately when going back from partition dialog so that all devices are discovered during storage reset. There is one case that can't be resolved this way: clearpart --all or --linux is set in ks and "Create custom layout" is selected in parttype UI step. Because of ks setting, storage initialization doesn't discover devices (RAID, LVM) on partitions that are to be cleared and therefore they are not present in custom partition dialog. This can be workarounded by going back and than again to custom partitioning dialog. I think we should grey-out type of partitioning combo set to value from ks clearpart command.
* Use gettext.ldngettext when necessary (#467603)David Cantrell2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i18n people have suggested using ngettext when we need to have singular and plural forms of strings, where the count will vary as to what we are reporting to the user. I've made the changes they have suggested. I created a new lambda function called P_() to use for the plural cases. P_() takes in three parameters: 1) The singular form of the string. 2) The plural form of the string. 3) A count. Here's an example: ....some loop runs doing stuff bytesWritten = 47 msg = P_("Wrote %d byte.", "Wrote %d bytes.", bytesWritten) % (bytesWritten,) print msg The % substitution is correct at the end because P_() returns a single string, so we only need the format string to account for that. Some strings have been changed slightly to make it easier for translations to other languages, particularly when choosing plural forms.
* Pass --force to lvresize so it doesn't ask for confirmation.David Lehman2009-05-311-1/+1
|
* Fix a typo in action sorting for resize actions (fs vs. device). (#501000)David Lehman2009-05-311-1/+1
|
* Create and use unique ids for Device instances. (#500808)David Lehman2009-05-282-18/+33
| | | | | | | The use of a unique id frees us from having to worry about parted renaming partitions whenever we remove one. It will also provide a mechanism with which we can more reliably track protected partitions, currently problematic for the same reason.
* Adjust remaining PartitionDevices' names after removing a partition.David Lehman2009-05-281-0/+8
| | | | | | Since parted renames/renumbers partitions, we need to update the names of the PartitionDevice instances so that they are in sync with the parted Partition.
* Limit the trigger to block type devices.Joel Granados Moreno2009-05-281-1/+1
| | | | | When calling udev_trigger for the save exception to local storage device, limit the call to block devices.
* Make sure that the devices are correctly detected (#491700)Joel Granados Moreno2009-05-271-0/+3
|
* Ensure matching rootfs type to live type with autopart (#501876)Jeremy Katz2009-05-261-0/+4
| | | | | | For autopartitioning with live images, we want to make the fstype of / match that of the live image as otherwise, the partitioning will fail due to the mismatch
* Move /boot checks from sanityCheck into Platform.checkBootRequest.Chris Lumens2009-05-211-43/+1
|
* Call checkBootRequest from sanityCheck.Chris Lumens2009-05-211-0/+5
|
* Put some space in that big scary warning.Chris Lumens2009-05-211-1/+1
|
* Make sure the right _isMigratable gets used for Ext3FS (#501585).Chris Lumens2009-05-201-0/+2
| | | | | | | It appears that the migratable property in the FS class was using FS._isMigratable when we'd overridden that method in Ext3FS. This fix prevents the upgrade migrate fs screen from showing up unless ext4migrate is on the cmdline, like intended.
* We are not guaranteed to have a partedDisk in the udev code (#501556, #501428).Chris Lumens2009-05-191-1/+1
| | | | | | | This goes back to having drives with no media present, like USB media readers. At this point in the code, we can't yet use mediaPresent because we don't have all the device objects set up. So, we just have to rely on partedDisk being None. Besides, checking for None is always a good idea anyway.
* LVMVolumeGroupDevice stores pesize in MB, kickstart expects it in KB.David Lehman2009-05-151-1/+1
|
* Deactivate md arrays regardless of state if the device is present. (#496441)David Lehman2009-05-151-1/+4
| | | | | Instead of only deactivating an array whose state is some variation on "active", try to deactivate any array that appears to be assembled.
* Lame hack to make sure --size= is never 0 (#500905).Chris Lumens2009-05-151-2/+2
|
* Don't filter out partitions that haven't been allocated (#500932).Chris Lumens2009-05-151-1/+2
| | | | | | This modifies the behavior from commit 72d46dbe2b99c4, which was causing all partition requests involving RAID (or probably LVM too) to get thrown out of the auto partition requests list.
* Write out PE size as an integer, since that's what anaconda wants (#501049).Chris Lumens2009-05-151-1/+1
|
* Set clearPartType to None on preupgrade too (#499321).Chris Lumens2009-05-151-1/+1
|
* Fix indentation of line to remove cancelled actions from the list. (#500932)David Lehman2009-05-151-1/+2
| | | | | The one thing that has to happen when cancelling any action is that it must be removed from the DeviceTree's list of actions.
* Consider active-idle state of md device as accepatable status of device ↵Radek Vykydal2009-05-151-1/+1
| | | | | | | | | | (#497407) This should fix traceback met when we were updating sysfs path attribute of md device in active-idle state (empty string was returned as the device was not in state clean or active). I think it is a state very rarely met in our tests. According to md.txt, it is "like active, but no writes have been seen for a while". I prepared updates.img for testing, but we can't reproduce the bug.
* Fix detection of cciss disks (#499408)Doug Chapman2009-05-151-0/+1
| | | | | | | | Since cciss device names have a subdirectory (i.e. cciss/c0d0p1) they are represented in sysfs with a ! so that it doesn't incorrectly have an extra subdir in the sysfs namespace. When anaconda gets the device name from sysfs it was trying to lookup the name with a ! but anaconda stores them with the / in the name.
* Get existing fs size for xfs.David Cantrell2009-05-141-0/+4
|
* Get existing fs size for ntfs.David Cantrell2009-05-141-0/+3
|
* Get existing fs size for jfs.David Cantrell2009-05-141-0/+3
|
* Get existing fs size for ext2, ext3, and ext4.David Cantrell2009-05-141-0/+3
|
* Compute existing filesystem size using fs info utility.David Cantrell2009-05-141-13/+82
| | | | | | | The _getExistingSize() method in class FS will using the filesystem info/dump utility to figure out the size of the filesystem. Each filesystem must define _infofs, _defaultInfoOptions, and _existingSizeFields.
* Do not allow users to migrate ext4 to ext4.David Cantrell2009-05-141-5/+5
| | | | | | | | Noticed that ext4 filesystems were presenting users with a 'migrate to' combo box with 'ext4' as the only entry. Tracked down the problem to the migratable property override in Ext3FS. Changed it around to use helper functions with property() and the UI is working more sanely now. Users cannot select ext4 as the migration target for ext4.
* Ignore unrecognized device-mapper devices we find. (#499967)David Lehman2009-05-141-3/+1
|
* Treat the loop labels as devices without a label.(#493219)Joel Granados Moreno2009-05-141-0/+10
| | | | | | The label "loop" in parted means devices that have no partition table but have a filesystem. Since anaconda does not handle this state, we shall handle said devices as if they had no label.
* Add the partition table partition after initializing (#498602).Chris Lumens2009-05-141-0/+9
| | | | | | We need to make sure the mac partition table partition is in the device tree before going any farther in anaconda, or we'll get a traceback when reviewing the layout in the UI.
* Fix a traceback when installing over previous installs on PPC (#499963).Chris Lumens2009-05-121-1/+5
|
* Fix a typo when probing exception disks.Chris Lumens2009-05-121-1/+1
|
* Add support for --noformat too.Chris Lumens2009-05-122-13/+27
|
* Add support for --onpart, --ondrive, and --useexisting.Chris Lumens2009-05-122-8/+33
|
* Make the storage.writeKS method useful and called from instdata (#493703).Chris Lumens2009-05-121-0/+44
|
* Add writeKS methods to the device objects.Chris Lumens2009-05-121-0/+80
|
* Add writeKS methods to all the format objects.Chris Lumens2009-05-126-1/+31
|
* If clearPartType is None, don't attempt to clear a device (#499321).Chris Lumens2009-05-111-1/+1
|
* Once a partition is part of another device it cannot be modified. (#496760)David Lehman2009-05-081-3/+10
|
* Maintain request sort order by using req_disks instead of parents.David Lehman2009-05-081-1/+1
| | | | | | Request sorting is supposed to depend on the number of disks a given request can be allocated from (req_disks), not what disk it is currently allocated from (parents).
* Do not set a parent on the /mnt/sysimage/dev bind mount object (#499724).Chris Lumens2009-05-081-1/+1
| | | | | | | Doing so means we eventually end up trying to bind mount /mnt/sysimage/dev onto /mnt/sysimage/dev, which of course is never going to work. That means there's no device nodes and we can't get the boot blocks off devices to see if the upgrade bootloader option should even be offered.
* Run tune2fs on newly formatted ext[34] filesystems. (#495476)David Lehman2009-05-081-0/+22
|
* Don't clear the first partition on any disk with a Mac disk label (#492154).Chris Lumens2009-05-071-0/+7
|
* Fix KeyError when partition numbers change during allocation. (#497911)David Lehman2009-05-071-4/+4
|
* Verify with fsck after resizing filesystemsJeremy Katz2009-05-061-0/+2
| | | | | Resizing can introduce errors too, so for paranoia, we should check afterwards
* Check if we'll clear a partition after setting its format attr. (#499251)David Lehman2009-05-061-3/+7
|
* Don't pass the default clearPartType value to the device tree.David Lehman2009-05-061-1/+9
| | | | | | In non-kickstart installs, clearPartType gets set to CLEARPART_TYPE_LINUX before the user makes a choice. We shouldn't pass that value to the device tree constructor unless we're doing a kickstart install.
* Fix some logic errors in storage.partitioning.shouldClear.David Lehman2009-05-061-1/+5
| | | | | If we're not clearing any partitions, return early. Also, be more explicit about the CLEARPART_TYPE_LINUX case.