summaryrefslogtreecommitdiffstats
path: root/storage/formats
Commit message (Collapse)AuthorAgeFilesLines
...
* If a filesystem is already mounted, don't raise an error.Chris Lumens2009-03-231-1/+1
| | | | | This seems pretty harmless to me, and raising an error causes problems when dealing with bind mounts.
* Use label attr instead of non-existent fslabel attr. (#491120)David Lehman2009-03-201-3/+3
|
* Handle system crappyness.Joel Granados Moreno2009-03-192-2/+11
| | | | | | | | | | | | | | | | | | | | * storage/__init__.py (createSuggestedVGName): Take into account the new lvm black list. * storage/devicelibs/lvm.py (blacklistVG): New function, add a VG to a the black list. * storage/devicelibs/lvm.py (vgreduce): introduces a new argument to the function. rm means use the lvm --removemissing option. * storage/devices.py (LVMVolumeGroupDevice.complete): New function to evaluate if VG is consistent. * storage/devices.py (LVMLogicalVolumeDevice.complete): Likewise for LVs. * storage/devicetree.py (_handleInconsistencies): New function intended to catch all unwanted behavior from the system before continuing. * storage/devicetree.py (questionReinitILVM): New function intended to ask the user what to do in case we find inconsistent LVM metadata.
* Let's not remove our mountpointsJeremy Katz2009-03-191-1/+1
| | | | | | isys.umount() defaults to removing directories. Maybe we should change that, but it has implications for a fair number of callers. So let's just not remove the mountpoints for now
* Indicate filesystem is mountable if we have a mount command.David Cantrell2009-03-181-1/+2
| | | | | | | For NTFS, we don't have the name 'ntfs' in /proc/filesystems. It uses fuseblk. Return True for mountable if the filesystem is listed in /proc/filesystems -or- if we have a mount command for that filesystem type.
* Mount existing filesystems read-only when getting size.David Cantrell2009-03-181-2/+2
| | | | | Pass 'ro' in the mount options. Also add a hyphen in the temporary mount point name so it looks like 'getsize-XXXXXX'.
* FormatArgs -> FormatOptions (#490737).Chris Lumens2009-03-171-4/+4
|
* isys.umount removes mount directory by defaultRadek Vykydal2009-03-161-1/+0
|
* Fix tempfile.mkdtemp call.Radek Vykydal2009-03-161-1/+1
|
* Initialize attribute _mountpoint before using itRadek Vykydal2009-03-161-1/+1
|
* Use os.statvfs() to get existing filesystem size.David Cantrell2009-03-151-0/+27
| | | | | Mount the filesystem in a temporary location, call os.statvfs(), compute filesystem size in megabytes.
* Add resizeArgs for Ext2FS and fix it for BtrFS.David Cantrell2009-03-151-1/+6
| | | | | | Add a resizeArgs property for Ext2FS, make sure the size gets the 'M' suffix and the arguments are in the right order. Make sure the size gets the 'm' suffix in the BtrFS.resizeArgs property.
* Raise FSResizeError if filesystem cannot be resized.David Cantrell2009-03-151-2/+1
| | | | | | | Raise FSResizeError exception if we enter this method, but the format is not resizable. The calling methods have checks to prevent this from happening, so if we get this far, it should be an exception.
* Fix supportable attribute for cmdline-enabled fstypes.anaconda-11.5.0.30-1David Lehman2009-03-131-7/+9
|
* Default to a name based on the uuid for existing luks mappings.David Lehman2009-03-131-1/+3
| | | | | This is what we default to in the device tree, so this just lines the two up.
* A getter doesn't usually take a parameter (#489965).Chris Lumens2009-03-121-1/+1
|
* currentSize is expected to be a float, so convert it to one (#489882).Chris Lumens2009-03-121-1/+1
|
* Format modules import fixMartin Gracik2009-03-121-1/+1
| | | | The last patch was importing from a wrong directory
* Fixed the format modules importMartin Gracik2009-03-121-3/+4
|
* Fix _getCheckArgs() in class FS.David Cantrell2009-03-101-1/+2
| | | | | _getCheckArgs() needs to return argv. In doCheck(), replace argv with a call to self._getCheckArgs().
* Use the pyblock functions when possible.Joel Granados Moreno2009-03-101-1/+0
| | | | | | | | | | | * storage/devicelibs/dm.py : For each function that is used in the storage code, we try to use pyblock first. We fail to calling dmsetup. * storage/devices.py : Erased the commented line that had the pyblock call. We are doing all the pyblock calls from storage/devicelibs/dm.py. * storage/devicetree.py : likewise. * storage/formats/dmraid.py : likewise.
* Clean up handling of /proc, /sys, /dev/pts, /dev/shm entries.David Lehman2009-03-091-0/+1
| | | | | | Just drop them when parsing /etc/fstab -- that way we can create them before mounting the system the same way for upgrade, rescue, and install.
* Add dmraid functionality to new storage code.Joel Granados Moreno2009-03-061-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * storage/devices.py (DMRaidArrayDevice): Complete the DMRaidArrayDevice class. * storage/devices.py (PartitionDeviceFactory): When creating a partition we need to decide, based on the device holding the partition, what type of partition class will be returned. * storage/devices.py (PartitionDevice): When setting the disk we must be careful to change stuff accordingly. * storage/devicetree.py (addUdevDevice): Handle the creation of the dmraid device and its members in the addUdeveDevice function. * storage/formats/dmraid.py (DMRaidMember): Complete the format that handles devices being members of a dmraid array. * storage/udev.py (udev_device_is_dmraid): add a function that recognizes dmraid devices from the provided info list. * storage/udev.py (udev_device_get_dmraid_partition_disk): function that gets the disk string from partition info. * storage/udev.py (udev_device_is_dmraid_partition): function that checks for dmraid partitions. * storage/__init__.py (disks(self)): return a list of disks from the internal attribute. * storage/__init__.py (Storage.disks): we really want to make sure we return all the objects that comply with the DiskDevice interface (inheret from DiskDevice) * storage/__init__.py (Storage.partitions): Same as above but for PartitionDevice. * iw/autopart_type (PartitionTypeWindow(InstallWindow)): use disk.name instead of munging the first 5 characters of the path. * storage/partitioning (newPartition): Use the new partition factory to create a partition.
* Nodev filesystems always exist. And the device is arbitrary.David Lehman2009-03-051-2/+4
|
* Add resizeArgs property for resizable filesystems.David Cantrell2009-03-051-7/+15
|
* Fill out class NTFS a bit more.David Cantrell2009-03-051-2/+6
| | | | | | Add _fsck, _maxSize, _defaultCheckOptions. Make minSize a property. Uncomment _defaultMountOptions and make it a list. Uncomment _packages.
* Add fsckProg property to class FS.David Cantrell2009-03-051-0/+5
|
* Ext2FS.migratable(self) -> Ext2FS.migratableDavid Cantrell2009-03-051-1/+1
| | | | Parent properties are not called like methods, remove '.(self)'.
* Install storage/ with the rest, include it and booty in images.David Lehman2009-03-041-0/+33
|
* LUKS is not supported in the sense that _supported implies.David Lehman2009-03-041-1/+1
| | | | | | The supported attr is only used for deciding which formats should be included in the "fstype" combo in partition/lvm/raid dialogs. In this sense, luks is not supported.
* Fix a bunch of "supported" methods so they work properly.David Lehman2009-03-041-3/+6
|
* Conditionalize ext3->ext4 migrate on "ext4migrate" cmdline arg.David Lehman2009-03-041-0/+6
|
* Don't traceback if options is None in doFormat.David Lehman2009-03-041-2/+4
|
* Fix match on "name" attribute we can lookup by, eg: "software RAID".David Lehman2009-03-041-1/+1
|
* Migrate FS user interface plumbing.David Cantrell2009-03-031-5/+6
| | | | | | | | | | | | | Hook up the migrate fs UI components with the new storage backend. Highlights: - If user selects Migrate filesystem to, the Format checkbox is disabled. Same for the reverse, selecting Format disables the Migrate options. - Mount point entry box is not disabled for migrate selections. - Wrap the return value in storage.formats.fs.FS.migratable in bool(). If the filter() operation returns a list, that's what we get in the return value rather than True. - Other minor typo and syntax fixes.
* Separate checks for mapName and key/passphrase, add a destroy method.David Lehman2009-03-031-12/+17
| | | | | Also, set the mapName immediately after formatting since that's the earliest we can possibly have the UUID.
* LVM is giving us unacceptable grief over persistence of metadata.David Lehman2009-03-031-0/+4
|
* Respect "xfs", "jfs", "icantbelieveitsnotbtr" cmdline args.David Lehman2009-03-031-0/+18
|
* Make sure _name is None so _type gets used by name property.David Lehman2009-03-021-0/+1
|
* self_migratable -> self._migratableDavid Cantrell2009-03-021-1/+1
| | | | Fix a typo.
* Remove possibly unnecessary code in class NoDevFSDavid Cantrell2009-03-021-2/+0
| | | | | | I cannot find anywhere that 'nodev' is used. I played around with variants on these two lines, but eventually ended up removing them to continue with testing.
* Change partedFlags attribute to partedFlag.David Lehman2009-02-274-4/+4
|
* Various changes to format base class and fs base class.David Lehman2009-02-272-38/+163
| | | | | | | | | | | | | - Add migratable property to all formats to indicate whether a format can be migrated. - Add migrate property to all formats to indicate whether a format is being migrated. - Make options a property of all formats and have FS classes return their mount options as their options value. - Add FS.doMigrate. - Rename all methods that do stuff in FS from foo to doFoo to improve clarity. - Replace FS getMinimumSize method with minSize property.
* Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-277-83/+118
| | | | | | | | | | | - Change minsize/maxsize to minSize/maxSize since that's the convention elsewhere throughout the code. - Redirect output from all external utilities to tty5, not /dev/null. - Don't waste calls to basename for debug log statements, especially when the device can be None. - Add lots of missing imports. - Fix lots of remnants of previous code usage.
* Make it easy to specify a format's device at creation/setup time.David Lehman2009-02-245-18/+31
|
* Clean up imports and various typos, add header blocks as needed.David Lehman2009-02-237-30/+30
|
* Replace old storage modules.David Lehman2009-02-237-0/+1826