Commit Graph

2051 Commits

Author SHA1 Message Date
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
Vincent Untz e52384b258 build: Correctly link to gthread
https://bugzilla.gnome.org/show_bug.cgi?id=667412
2012-01-06 12:42:31 -07:00
Curtis Gedak 18f863151c Fix long scan problem when BIOS floppy setting incorrect
The call to "blkid -c /dev/null" on Precise Pangolin Alpha 1 takes
exceedingly long.  This occurs when the BIOS is incorrectly set to
indicate a floppy drive is present when none is physically installed. 
Use cached blkid results instead.

Ubuntu launchpad 910379 - Gparted does not start and continues to
                          scan devices
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/910379
2012-01-06 10:31:14 -07:00
Mike Fleetwood 377d26f0cc Fix uninitialised read in OperationDetail::set_status()
Setting the status and controlling the timing of operation details
initialised with OperationDetail(desc, status, font) uses a conditional
branch depending on the uninitialised variable this->status.

valgrind:
==28957== Conditional jump or move depends on uninitialised value(s)
==28957==    at 0x80E4287:
GParted::OperationDetail::set_status(GParted::OperationDetailStatus)
(OperationDetail.cc:77)

OperationalDetail.cc:
   75  void OperationDetail::set_status( OperationDetailStatus status )
   76  {
>> 77          if ( this ->status != STATUS_ERROR )
   78          {
   79                  switch ( status )
   80                  {
2012-01-04 14:07:08 -07:00
Joe Hansen 7477ba3c1d Updated Danish translation 2012-01-02 12:42:34 +01:00
Curtis Gedak 6c8246932e Update AUTHORS file
Add recognition for the work done by Mike Fleetwood to add support for
the nilfs2 file system.
2011-12-16 12:00:36 -07:00
Mike Fleetwood df20b54d00 Add nilfs2 support (#642842)
Requires libparted 2.4 or higher, or blkid from utils-linux 2.20 or
higher for nilfs2 file system detection.

Requires nilfs-utils for nilfs2 file system support.

Closes Bug #642842 - nilfs is not detected
2011-12-16 11:40:46 -07:00
Curtis Gedak 46973f8721 Append -git to version for continuing development 2011-12-13 10:31:19 -07:00
Curtis Gedak 3f9a11df0a ========== gparted-0.11.0 ========== 2011-12-13 09:27:29 -07:00
Joe Hansen 59961bdd9f Updated Danish translation 2011-12-13 09:24:48 +01:00
Chao-Hsiung Liao af808476e3 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2011-12-12 11:59:53 +08:00
Мирослав Николић 58c101c5c0 Updated Serbian translation 2011-12-11 10:36:31 +01:00
Daniel Korostil a238f7198c Uploaded Ukranian 2011-12-07 10:51:27 +02:00
Daniel Korostil 4905770e42 Uploaded Ukranian 2011-12-07 10:49:26 +02:00
Andrey Germanov 2575e8771e Added Russian translation for help 2011-11-19 11:53:03 +04:00
Curtis Gedak e8bdb5d704 Avoid redundant file system maximize actions (#663980)
When GParted performed operations or combinations of operations,
such as:
  a)  copy to same or smaller size destination partition
  b)  move to same or smaller size due to alignment change
  c)  resize to smaller size
a redundant maximize file system operation would occur.

Normally these redundant maximize operations to grow the file
system to take up all the space in the partition were not harmful.

However in situations where libparted failed to inform the kernel
of partition changes, then the extra maximize operation would
grow the file system to be the original partition size.  In cases
where the original partition was larger than the new partition
size, this caused problems because the file system would be
larger than the partition on reboot.

This enhancement avoids redundant file system maximize actions on
copy, move, and resize, and should help reduce problems described
in the following links:

WARNING! Problem Resizing File Systems with GParted
http://gparted-forum.surf4.info/viewtopic.php?id=13777

Bug #601574 - ERROR: Current NTFS volume size is bigger than the
              device size!

Bug #604298 - Problems resizing file systems with
              gparted-live-0.5.0-3

Closes Bug #663980 - Avoid redundant file system maximize actions
                     on copy, move, and resize
2011-11-13 11:24:07 -07:00
Curtis Gedak 9309127876 Update AUTHORS file
Add missed recognition of linux-swap labelling for Mike Fleetwood,
and fix indentation.
2011-11-13 10:02:42 -07:00
Curtis Gedak eebc8cd431 Update AUTHORS file
Add recognition for the work done by Stephen Kirkby to reverse umount
order in xfs::copy.
2011-11-13 09:54:46 -07:00
Curtis Gedak 2ecbd3bbb9 Update AUTHORS file
Add recognition for the work done by Mike Fleetwood to improve btrfs
labelling and new btrfs multi-tool command use.
2011-11-13 09:42:01 -07:00
Mike Fleetwood a580abbc30 Use newer btrfs multi-tool control command first
Btrfsctl and btrfs-show were depreciated in October 2011 and have been
superseeded by the newer btrfs multi-tool control command.  Use btrfs as
first choice, falling back to btrfsctl and btrfs-show when not found.
2011-11-13 09:29:45 -07:00
Mike Fleetwood 7ba1d417c5 Add labelling of btrfs file systems
Use "btrfs filesystem label" command to set the label of unmounted
btrfs file systems.
2011-11-13 09:29:45 -07:00
Stephen Kirkby e247357b51 Reverse umounting order in xfs::copy
See bug #663806 - Cannot copy XFS filesystem to new smaller
                  partition anymore
2011-11-13 09:24:01 -07:00
Curtis Gedak 1dce98cd3e Add to README packages required for fedora 16 build
Also add configure flag to disable scrollkeeper for desktops that do
not support scrollkeeper.
2011-11-12 17:03:23 -07:00
Curtis Gedak 38aab666b4 Enable copy to smaller XFS partition (#663806)
Closes Bug #663806 - Cannot copy XFS filesystem to new smaller
                     partition anymore
2011-11-11 11:52:49 -07:00
Curtis Gedak 32659e5e02 Add xfsdump package requirement to copy xfs file systems 2011-11-10 13:12:21 -07:00
Mike Fleetwood cbd3170e57 Fix btrfs volume label reading
There are still 2 issues with reading btrfs labels when falling back
on using btrfs-show command, rather than primary method of using the
blkid command:

1)  Label is set no "none" when btrfs-show is reporting there is no
    label, although it is impossible to distinguish from the case of the
    label actually being set to "none".

2)  The label has 2 trailing spaces appended as the regular expression
    matches "Label: (btrfslabel  )uuid:" rather than
    "Label: (btrfslabel)  uuid:" in the btrfs-show output.

Assume a label "none" means there is no label and fix the regular
expression.
2011-11-08 08:54:25 -07:00
Marek Černocký 07bc770c31 Updated Czech translation 2011-11-02 19:34:54 +01:00
Curtis Gedak 370c084947 Improve code comments for reading volume labels 2011-11-01 13:13:28 -06:00
Curtis Gedak b6f1c56fb1 Enhance regexp_label method to handle unicode characters
Prompted by Bug #662537 - Ext4 unicode labels not shown correctly
2011-11-01 13:08:36 -06:00
Curtis Gedak 2ae36153ee Display ntfs unicode volume labels properly
Prompted by Bug #662537 - Ext4 unicode labels not shown correctly
2011-11-01 13:05:42 -06:00
Curtis Gedak cf8293cf78 Display ext2/3/4 unicode volume labels properly (#662537)
Note that this enhancement changes GParted to first try the native
tools to determine the volume label for all file systems.  If the
volume label is not found then the fall back method is to use blkid.

There is a small degradation in device refresh times as a result of
this change.

Closes Bug #662537 - Ext4 unicode labels not shown correctly
2011-11-01 13:01:02 -06:00
Curtis Gedak 71c1606cac Repair broken volume label regular expression pattern
Also adjust indentation.
2011-11-01 12:45:14 -06:00
Curtis Gedak 2a9c13e6e1 Append -git to version for continuing development 2011-11-01 10:32:12 -06:00
Curtis Gedak 52dbd9b42f Fix release date - s/b Nov. 1, 2011 2011-11-01 10:21:51 -06:00
Curtis Gedak 3251cc1618 ========== gparted-0.10.0 ========== 2011-11-01 10:11:12 -06:00
Bruce Cowan f05f6a1b79 Updated British English translation 2011-10-31 22:46:41 +00:00
Yuri Myasoedov b0a220adf8 Updated Russian translation 2011-10-31 23:01:51 +04:00
Djavan Fagundes fe53254423 Updated Brazilian Portuguese translation 2011-10-31 09:08:56 -02:00
Alexander Shopov 365d6dd88b Updated Bulgarian translation 2011-10-30 21:49:57 +02:00
Milo Casagrande 7ef478edb5 [l10n] Updated Italian translation 2011-10-28 21:31:10 +02:00