Commit Graph

1840 Commits

Author SHA1 Message Date
Mario Blättermann d1b34dac03 [l10n] Updated German translation 2012-02-09 22:14:44 +01:00
Rogier Goossens 50befd62a3 Check LVM cache only for LVM physical volumes
Determine the FS type before checking whether a FS is busy,
and check LVM only for LVM PVs.

Remove the LVM busy check for extended partitions, as they
don't contain LVM PVs - or any other FS for that matter.
(and even if they did, the rest of the code silently assumes
they don't...)
2012-02-08 15:46:36 -07:00
Rogier Goossens ed51f4b28f README file: dmsetup is not required for lvm 2012-02-08 15:46:29 -07:00
Daniel Mustieles 51650ed0d2 Updated Spanish translation 2012-02-05 19:28:19 +01:00
Curtis Gedak d2d830108b Place file system types in alphabetical order 2012-02-03 16:16:04 -07:00
Marek Černocký a5b89524d4 Updated Czech translation 2012-02-03 22:31:56 +01:00
Curtis Gedak 7a0dd4ab7a Update AUTHORS file
Add recognition for the work done by Mike Fleetwood to add initial
support for Logical Volume Management Physical Volumes (LVM PVs).
2012-02-03 11:58:04 -07:00
Curtis Gedak cb3aab77fc Add comment to Utils::tokenize method 2012-02-03 11:38:51 -07:00
Mike Fleetwood 820242635a Switch to using lvs to identify active LVM LVs (#160787)
Previously used "dmsetup info" to directly list device-mapper mapping
names in the kernel to identify active Logical Volumes.  However GParted
failed to recognise active LVs if the VGNAME contains any hyphens (-).
This is because LVM encodes hyphens as double hyphens in the mapping
name.

To avoid having to duplicate the LVM hyphen encoding in GParted, switch
to using "lvm lvs" to list LVs.

    # dmsetup info --columns --noheadings --separator , -o name
    GParted_VG1-lvol_00
    GParted--VG2-lvol--00

    # lvm lvs --noheadings --separator , -o lv_name,vg_name,lv_attr
      lvol_00,GParted_VG1,-wi-a-
      lvol-00,GParted-VG2,-wi-a-
      lvol-01,GParted-VG3,-wi---
                             .^.
(-) not active, (a) or any other character considered active.  Reference
lvs(8).

Bug #160787 - lvm support
2012-02-02 10:24:31 -07:00
Mike Fleetwood 72ac712024 Show LVM2 PVs as supported, read-only (#160787)
Add LVM2 PV into the File System Support dialog list and remove the
warning message reporting LVM as not being supported.

Bug #160787 - lvm support
2012-02-02 10:24:31 -07:00
Mike Fleetwood aa085a3caa Display busy status of LVM2 PVs (#160787)
A Volume Group is active when any of its Logical Volume mappings are
loaded (and enabled) in the Kernel's device-mapper driver.  Therefore
all the Physical Volumes in the VG (must be considered) active too.
This is exactly equivalent to a mounted file system, as the kernel is
actively using the partition.  Mark active LVM2 PVs as busy in GParted.

Don't use statvfs() for determining sector usage of busy LVM2 PVs as it
will fail with "statvfs(VGNAME): No such file or directory".  Instead
always use the LVM2 PV specific method.

Display the status of the LVM2 PV in the Information dialog using one of
the following relevant messages:
    Not active (Not part of any volume group)
    VGNAME not active
    VGNAME active
(The code uses the VGNAME stored in the partition's first mount point,
as displayed in the "Mount Point" column, rather than going back to the
primary source of the information in the LVM2_PV_Info class).

Temporarily prevent GParted from offering to unmount LVM2 PVs until
activating and deactivating Volume Groups is implemented later.

Bug #160787 - lvm support
2012-02-02 10:24:31 -07:00
Mike Fleetwood 8083f11d84 Display LVM2 VGNAME as the PV's mount point (#160787)
As the Mount Point column is being borrowed to display the PV's VGNAME,
also suppress generation of the "Mount on" submenu for LVM2 PVs.

Bug #160787 - lvm support
2012-02-02 10:24:31 -07:00
Mike Fleetwood ff8ad04120 Lazy initialize the cache from querying LVM2 PVs (#160787)
Previously when GParted was started LVM2_PV_Info cache was loaded twice,
executing LVM2 PV querying commands twice.  Firstly when
lvm2_pv::get_filesystem_support() was checking if LVM2 PV support was
available, and secondly when forced by a refresh in
GParted_Core::set_devices().

Implement lazy initialization.  Only load the cache when forced by the
above mentioned refresh or having to return a value when the cache is
not yet loaded.  Do not initialize the cache when just checking if LVM2
PV support is available.

Bug #160787 - lvm support
2012-02-02 10:24:31 -07:00
Mike Fleetwood 608d992e82 Cache results from querying all LVM2 PVs (#160787)
Cache results from querying all LVM2 PVs in one go to minimise the
number of times lvm commands are executed.  Take inspiration from
caching performed by FS_Info and Proc_Partitions_Info.

Bug #160787 - lvm support
2012-02-02 10:24:28 -07:00
Mike Fleetwood 0acb623725 Allow unused space in a partition to equal its size
Newly created LVM2 PVs, before being added to a Volume Group, report
free space equal to the partition size.  Allow free space to equal
partition size.

    # parted /dev/sda10 unit B print
    Error: /dev/sda10: unrecognised disk label
    Model: Unknown (unknown)
    Disk /dev/sda10: 2147483648B
    Sector size (logical/physical): 512B/512B
    Partition Table: unknown
    # lvm pvcreate /dev/sda10
      Writing physical volume data to disk "/dev/sda10"
      Physical volume "/dev/sda10" successfully created
    # lvm pvs --units b -o pv_free /dev/sda10
      PFree
      2147483648B
2012-02-02 10:17:41 -07:00
Mike Fleetwood abd0dd0426 Report space usage of LVM2 PVs (#160787)
Add minimal support for just reporting the space usage of LVM2 PVs.
Accept libparted / blkid detection of LVM2 PVs first, falling back on
GParted's specific detection code otherwise.  Maintain LVM not supported
warning message.

Bug #160787 - lvm support
2012-02-02 10:17:29 -07:00
Mike Fleetwood 391e5e12f9 Rename FS_LVM2 -> FS_LVM2_PV (#160787)
This is the first step of adding support for just LVM2 Phyiscal Volumes,
a subset of full LVM2 support.

Make it clear that it is only LVM2 PVs being treated like a file system.

Bug #160787 - lvm support
2012-01-31 10:26:51 -07:00
Matej Urbančič d852a394e9 Updated Slovenian translation 2012-01-29 21:51:56 +01:00
Matej Urbančič 4f641df061 Updated Slovenian translation 2012-01-28 19:49:35 +01:00
Daniel Mustieles 889fcf88a2 Updated Spanish translation 2012-01-27 14:37:20 +01:00
Marek Černocký d25836a05e Updated Czech translation 2012-01-26 09:16:52 +01:00
Curtis Gedak 9c2b57cb50 Update copyright year 2012-01-25 16:55:51 -07:00
Curtis Gedak fcdd853cb9 Increase FAT32 minimum size to 33 MiB (#668491)
Closes Bug #668491 - Formatting small FAT32 partitions (32MB)
                     violates FAT32 specifications
2012-01-25 16:52:51 -07:00
Daniel Mustieles bff59261d2 Updated Spanish translation 2012-01-25 12:03:12 +01:00
Curtis Gedak c814b25a3a Avoid warning display when moving start of extended partition
Moving the start sector of an extended partition should not adversely
affect booting an operating system because an extended partition is
only a container for logical partitions.
2012-01-24 11:23:05 -07:00
Kjartan Maraas 98771d8bfa Updated Norwegian bokmål translation 2012-01-24 10:44:16 +01:00
Rogier Goossens 2522e480f7 Fix detection of multiple SW RAID (md) devices (#668486)
Closes Bug #668486 - GParted fails to detect multiple md (SWRaid)
                     devices
2012-01-23 13:12:48 -07:00
Curtis Gedak c304afe994 Enhance documentation for UUIDs and copying partitions (#608308)
Closes Bug #608308 - fix documentation - Copying and Pasting a
                                         Partition
2012-01-23 12:33:51 -07:00
Curtis Gedak 88f64688a6 Update AUTHORS file
Add recognition for the work done by Rogier Goossens to add support
for changing file system UUIDs.
2012-01-23 12:32:27 -07:00
Rogier Goossens 9e96159bb2 Add support for setting UUID (#667278)
Add the ability to set a new random UUID on file systems that provide
the appropriate tools to perform this action.

Update the help manual to include this new functionality.  Also add
reference links to "setting a partition label" and "changing a
partition UUID" in the "copying and pasting a partition" section.

This patch does not include setting the UUID on an NTFS file system.

Bug #667278 - Add support for setting UUID

Bug #608308 - fix documentation - Copying and Pasting a Partition
2012-01-23 12:32:27 -07:00
Matej Urbančič c9c045ed3f Updated Slovenian translation 2012-01-20 21:23:43 +01:00
Praveen Illa b13f28ded2 Added Telugu Translation 2012-01-19 22:18:37 +05:30
Praveen Illa c665b86630 Updated Telugu Translation 2012-01-19 22:18:37 +05:30
Marek Černocký d47ddfefa7 Updated Czech translation 2012-01-16 10:38:09 +01:00
Daniel Mustieles 57521fe254 Updated Spanish translation 2012-01-13 10:17:29 +01:00
Curtis Gedak ee9f6f3432 Fix mismatched field precision type compiler warning
Inserted cast to int so that third parameter matches expected
parameter precision type.

Original warning:

FileSystem.cc: In member function ‘Glib::ustring
GParted::FileSystem::mk_temp_dir(const Glib::ustring&,
GParted::OperationDetail&)’:
FileSystem.cc:81:69: warning: field precision should have type ‘int’,
but argument 3 has type ‘long unsigned int’
2012-01-12 13:07:37 -07:00
Curtis Gedak 3b76e57084 Fix en_CA parameter translation error
The missing percent sign would cause the parameter substitution to be
incorrect.
2012-01-11 20:35:37 -05:00
Curtis Gedak 7c5b5edaef Reduce graphic processing requirement for pulse bar
Increase sleep time to decrease pulse bar update frequency.

Debian Bug 499193 - gparted: 100% cpu usage

Debian Bug 519764 - gparted: Lots of animation makes use over SSH
                    X-tunnel slow
2012-01-11 13:13:43 -07:00
Curtis Gedak 08357b6e81 Add files for translation to POTFILES.in
The file src/FileSystem.cc now contains translatable text.  Also
added src/nilfs2.cc to handle any future translatable text.
2012-01-11 13:01:10 -07:00
Mike Fleetwood e414b71b73 Update xfs resize and copy to use new helper functions
Also update xfs file system support detection to allow growing even when
the xfs kernel module is not already loaded.
2012-01-11 12:49:13 -07:00
Mike Fleetwood a13e1a3863 Update btrfs resize to use new helper functions
Also update btrfs file system support detection to require kernel
support before allowing resizing.
2012-01-11 12:49:13 -07:00
Mike Fleetwood b0d818b8f9 Update jfs resize to use new helper functions
Also update jfs file system support detection to allow growing even when
the jfs kernel module is not already loaded.
2012-01-11 12:49:13 -07:00
Mike Fleetwood 15bca17a46 Add resize support to nilfs2 (#642842)
Resizing requires nilfs-utils 2.1 or higher and Linux 3.0 or higher.

Closes Bug #642842 - nilfs is not detected
2012-01-11 12:49:13 -07:00
Mike Fleetwood 4ab3fe0ee7 Add helper functions for mounted file system resizing operations
There is a lot of commonality and code repetition for resizing of file
systems which can only be resized while mounted.  Resizing of btrfs, jfs
and xfs all follow the pattern: mkdir, mount, resize, umount and rmdir.
Copying an xfs file system also uses a similar pattern, but for the
source and destination xfs file systems simultaneously.

Add three helper functions to the FileSystem class which implement
common tasks, allowing mounted file system resizing to be implemented
more simply.

Also add a function to the Utils class which checks whether the kernel
supports a file system.  It handles the case of non-loaded modules,
which currently leads to reporting the growing of jfs and xfs as
unsupported.
2012-01-11 12:49:13 -07:00
Mario Blättermann 293e4c7142 [l10n] Updated German translation 2012-01-11 19:15:09 +01:00
Jiro Matsuzawa 49e582d75d Updated Japanese translation 2012-01-11 21:57:52 +09:00
Marek Černocký 984581c924 Updated Czech translation 2012-01-11 10:22:57 +01:00
Daniel Mustieles 95eb987446 Updated Spanish translation 2012-01-09 14:43:50 +01:00
Curtis Gedak def101236e Update AUTHORS file
Add recognition for work done by Phillip Susi to display pop-up
dialog on libparted exceptions
2012-01-08 14:14:13 -07:00
Phillip Susi a1f843e74a Display pop up dialog on libparted exceptions
We used to just log libparted exceptions without handling them.  This patch
changes the exception handler to display a modal dialog box and return the
chosen action to libparted.
2012-01-08 13:03:20 -07:00