| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
This seems pretty harmless to me, and raising an error causes problems when
dealing with bind mounts.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Pass 'ro' in the mount options. Also add a hyphen in the temporary
mount point name so it looks like 'getsize-XXXXXX'.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Mount the filesystem in a temporary location, call os.statvfs(),
compute filesystem size in megabytes.
|
|
|
|
|
|
| |
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 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.
|
| |
|
|
|
|
|
| |
This is what we default to in the device tree, so this just
lines the two up.
|
| |
|
| |
|
|
|
|
| |
The last patch was importing from a wrong directory
|
| |
|
|
|
|
|
| |
_getCheckArgs() needs to return argv. In doCheck(), replace argv
with a call to self._getCheckArgs().
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
| |
Add _fsck, _maxSize, _defaultCheckOptions. Make minSize a property.
Uncomment _defaultMountOptions and make it a list. Uncomment
_packages.
|
| |
|
|
|
|
| |
Parent properties are not called like methods, remove '.(self)'.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Also, set the mapName immediately after formatting since that's the
earliest we can possibly have the UUID.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix a typo.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|