summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix ordering of arguments to xfs_admin for writing fs label. (#556546)David Lehman2010-02-161-0/+6
| | | | xfs_admin expects -L <label> <device>.
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-151-7/+4
| | | | | iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
* Fixup various errors detected by pylintHans de Goede2010-01-141-3/+4
| | | | | | | | | | | | | | | | | | I've been running pylint on a subset of anaconda: booty storage iw/*.py platform.py And it has found various errors this commit fixes: - Restore line accidently dropped from iscsi.py - execWithPulseProgress should propagate the return value of execWithCallback - storage.formats.fs:535 (FS.doCheck): self.intf should be just intf - storage.formats.fs: add missing "import sys" (for sys.exit) - advanced_config.py add missing import for NetworkConfigurator - lvm_dialog_gui.py: VolumeGroupEditor.editLogicalVolume dev was renamed to d - partition_gui.py: remove an unneeded semicolon - partition_gui.py: PartitionWindow.createCB rc should be dialog_rc - storage.FSSet.write: put docstring in the proper place - platform.Sparc.minimumSector: sectors should be sector
* NTFS filesystems are not really modifiable in any real sense. Admit it.David Lehman2010-01-131-1/+1
|
* Add a "dict" attribute to Device and DeviceFormat classes.David Lehman2009-12-221-0/+9
| | | | | | | This attribute is a dict that describes the device or format instance with considerable detail. It is intended that the dict will be pickled using the shelve module, so values should be picklable objects. Keys should be descriptive strings.
* Put fsprofile support back in.David Lehman2009-12-221-1/+5
|
* Add __str__ methods to the DeviceFormat classes.David Lehman2009-12-161-0/+10
|
* Change btrfs command line optionJosef Bacik2009-12-091-1/+1
| | | | | | | | | | | In F11 and F12 the command line option to enable btrfs during the installer was "icantbelieveitsnotbtr". Unfortunately I can't spell believe the first time every time, and btrfs has come quite a ways since F11 and is stable enough to start being tested on a larger scale. So change the command line option to "btrfs" in keeping with tradition and to make it a bit simpler for those who want to take it for a test spin in F13. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
* Use selinux python module for file context operations.David Lehman2009-12-081-4/+6
|
* Whenever storage code tries to log a method call, do so into the ↵Ales Kozumplik2009-12-031-3/+1
| | | | | | | 'tmp/storage.log' file. (a part of #524980) Previously, the method call was logged into 'tmp/anaconda.log' which made the file harder to do anything useful with.
* Display progress or wait window when formatting devices.David Lehman2009-11-301-2/+2
| | | | | | If we are using an external utility to create the format we can use iutil.execWithPulseProgress. For formats we create using a python module we can only put up a waitWindow.
* Don't attempt to get the size of a filesystem unless it's supported (#540598).Chris Lumens2009-11-241-1/+1
| | | | | | | We're not guaranteed to have the _infofs program on every platform, so we need to make sure the filesystem is supported before making an attempt. For now this is only showing up on NTFS volumes on ppc, but it's possible to come up in other places.
* Fix "resize failed: 1" errors for ext2/ext3/ext4 (#517491).David Cantrell2009-10-291-3/+25
| | | | | | | | | | | | | | | | The following install test case has been failing: https://fedoraproject.org/wiki/QA:Testcase_Anaconda_autopart_%28shrink%29_install The problem was with the minSize property in Ext2FS. We use resize2fs to get the minSize for ext2/3/4 filesystems, which is good because resize2fs accounts for additional things an extX volume may need. The problem is the value it reports is in blocks. We have to convert those blocks to bytes, then to megabytes, then round up to account for any fractional megabytes. Use dumpe2fs to get the block size and use resize2fs as we have been, but modify the calculation of size. Also the _setTargetSize() method in FS needed a change. minSize can be less than or equal to newsize, not just less than.
* Improve message given to user for fsck failures (#527626).David Cantrell2009-10-191-2/+64
| | | | | | | | If fsck fails with a return code indicating errors we can't automatically fix, give the user a more descriptive error dialog before exiting. There's not much we can do if the filesystem is beyond automatic repair, so tell the user to repair the filesystem under rescue mode or something similar.
* Set partedPartition system to the correct FS when creating an FSHans de Goede2009-10-081-0/+18
| | | | | | | | | | | | | | The playing around with partedPartition flags only allows us to determine the partition table entry for certain usuages which are deemed special by parted. For normal FS usuage, parted will default to the type for the FS it has detected (for pre-existing partitions) or to Linux (83) for new partitions. This means that for example reformatting a vfat partition as ext3, or a new partition as vfat will lead to incorrect partition type entries in the partition table. This patch fixes this. This patch is intended for both master and F-12.
* Add --label to anaconda-ks.cfg if needed (#526223).Chris Lumens2009-10-051-0/+3
|
* Fix existing size calculation for NTFS (#520627)David Cantrell2009-10-021-1/+2
| | | | Rounding errors when computing the existing size of NTFS volumes.
* Write label to filesystem if we have one set (#526226, #526242)David Cantrell2009-10-021-1/+5
| | | | | | If a label is set on a filesystem (e.g., the --label switch on a part command in a kickstart file), make sure it is set during the filesystem creation.
* Remove unused fsFromConfig methodHans de Goede2009-09-011-17/+0
| | | | Remove unused fsFromConfig method, it is not used and has syntax errors in it.
* Don't hardcode path to tune2fs.David Lehman2009-08-311-1/+2
|
* Add support for the reiserfs filesystem (#504401)David Cantrell2009-08-191-0/+37
| | | | | | | | | | | | As the bug indicates, the kernel module is still available. I'm not really interested in supporting installation to reiserfs, but I think we should be able to recognize the filesystems in the partitioning UI as well as let people shrink existing reiserfs filesystems to make room for Fedora on more sane filesystems. Detection works as is, but users have to pass 'reiserfs' on the command line to enable installation to reiserfs volumes or to enable resize support.
* Don't try to get the size of fstypes w/ no infofsProg defined.David Lehman2009-08-171-1/+1
|
* Edit user-visible dialogs for style.Peter Jones2009-07-131-3/+3
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* Allow /boot on ext4 now that we have a grub that allows itJeremy Katz2009-06-301-16/+0
|
* 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.
* 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.
* Add writeKS methods to all the format objects.Chris Lumens2009-05-121-1/+16
|
* Run tune2fs on newly formatted ext[34] filesystems. (#495476)David Lehman2009-05-081-0/+22
|
* Verify with fsck after resizing filesystemsJeremy Katz2009-05-061-0/+2
| | | | | Resizing can introduce errors too, so for paranoia, we should check afterwards
* The PS3 bootloader allows booting from ext4 filesystems (#498539).Chris Lumens2009-05-051-1/+16
|
* Correct setting the SELinux context on mountpoints (#494995).Chris Lumens2009-05-011-8/+8
| | | | | | We need to pass the mountpoint and the chroot in separately so everything doesn't end up under /mnt/sysimage. Doing that results in the contexts being set to mnt_t, which causes all sorts of problems on reboot.
* Support vfat filesystems in the partitioning UI (#496351).Chris Lumens2009-04-241-0/+1
|
* Don't try to get size for nodev and bind filesystems.David Lehman2009-04-211-0/+6
|
* Determine minimum size for filesystems once, from constructor.David Lehman2009-04-141-39/+48
| | | | | | | | | | This way we won't have to setup complex devices every time the maxSize attribute is accessed. The device's minimum size should never change without the user doing something that triggers a storage reset/rescan, so there is no reason to expect that caching the minimum size will lead to new failures. We know that the device is already setup when the constructor is called, so it is a perfect time to obtain the minimum size and be done with it.
* Some fs types cannot be passed to programs (#495061, #493075).Chris Lumens2009-04-091-6/+16
| | | | | For fake filesystems types like EFI that are really vfat underneath, we want to pass "vfat" to all the commands that expect a type.
* When a new module is loaded, update the kernel_filesystems list.Chris Lumens2009-04-091-0/+8
|
* Try not to raise exceptions from minSize calculators.David Lehman2009-04-071-5/+2
| | | | | These should either get a min size or return a reasonable default. Crashing the installer for something like this is not reasonable.
* Load filesystem modules on demand (#490795, #494108).Chris Lumens2009-04-071-0/+37
| | | | | | | Instead of loading filesystem modules all at once in loader, load them as needed from the filesystem format __init__ methods. The intention here is to remove a lot of the special code from loader and avoid kernel errors in modules that the user never even wants to have involved.
* Don't traceback from failure finding minimum fs size. (#494070)David Lehman2009-04-061-1/+3
|
* Remove temporary directory used in _getExistingSize()David Cantrell2009-04-021-0/+1
|
* put xfs back where it belongsEric Sandeen2009-04-021-1/+1
| | | | | | | | Ow, turned xfs to unsupported *and* no cmdline override, bummer. -Eric Signed-off-by: Eric Sandeen <sandeen@redhat.com>
* Fixes of errors shown by pylint that didn't get into the beta build.Martin Gracik2009-03-311-4/+3
|
* Fix the supported property of filesystems and prepboot format.David Lehman2009-03-301-2/+5
| | | | | This will make the fstype combo contain only the filesystems it should.
* Device is sometimes None.Joel Granados Moreno2009-03-251-1/+1
| | | | If its none there is no need to parse it.
* Register the NoDevFS class.Chris Lumens2009-03-241-0/+2
|