Commit Graph

2008 Commits

Author SHA1 Message Date
Daniel Mustieles d1a3efc5bc Updated Spanish translation 2012-03-30 11:56:06 +02:00
Curtis Gedak c56d0df8ae Ensure Align to MiB does not overlap following partition (#661744)
Normally the GUI should restrict partitions from overlapping other
partitions.  However we have received a report where an overlap has
occurred.

Unfortunately we did not have enough details to recreate the problem.
Based on the report my thoughts are that somehow the problem arose
due to partitions aligned to boundaries other than MiB in combination
with the size of a partition being rounded up in the GUI resizer.

In an effort to prevent this problem in the future I have added a
check for primary or extended partitions overlapping other primary or
extended partitions.

Closes Bug #661744 - libparted "Can't have overlapping partitions."
                     after successful move+resize?!
2012-03-27 14:28:33 -06:00
Curtis Gedak 1c47c17a47 Rework align to MiB adjustments to end sector of partition
Ensure at least 2 sectors for Extended Boot Record (EBR) between end
of logical partition and start of next logical partition.

Ensure at least 34 sectors reserved for backup GUID Partition Table
(GPT) after the end of the last partition.
2012-03-27 14:28:33 -06:00
Marek Černocký 98884abe9c Updated Czech translation 2012-03-25 19:13:29 +02:00
Curtis Gedak 1f1ea3f12e Use cached method first to read UUID to shorten scan time 2012-03-25 10:10:47 -06:00
Mike Fleetwood ea4b77eb01 Fix uninitialised read when pasting into an existing partition
GParted_Core::set_device_partitions() creates and initialises the
partition objects based on the partitions on the disk using
partition.Reset() and partition.Set().  These methods never set the
alignment attribute.

Copy and pasting into an existing partition calls GParted_Core::
snap_to_alignment() to adjust the start and end of the newly created
in memory partition object.  When pasting into unallocated space the
user has selected the required alignment and this is exactly what is
needed.  However when pasting into an existing partition the in memory
partition object should always match the actual partition boundaries on
disk.  Unfortunately the partition boundaries are adjusted based on
reading the uninitialised alignment attribute.

Initialise the alignment attribute of newly created partition objects to
ALIGN_STRICT.  Also, when pasting into an existing partition set the
alignment of that partition object to ALIGN_STRICT so that no boundary
adjustment is performed.

valgrind:
==6845== Conditional jump or move depends on uninitialised value(s)
==6845==    at 0x80C779A: GParted::GParted_Core::snap_to_alignment(...) (GParted_Core.cc:566)
==6845==    by 0x810C115: GParted::Win_GParted::Add_Operation(...) (Win_GParted.cc:692)
==6845==    by 0x8110499: GParted::Win_GParted::activate_paste() (Win_GParted.cc:1649)
...
==6845== Conditional jump or move depends on uninitialised value(s)
==6845==    at 0x80C77A8: GParted::GParted_Core::snap_to_alignment(...) (GParted_Core.cc:568)
==6845==    by 0x810C115: GParted::Win_GParted::Add_Operation(...) (Win_GParted.cc:692)
==6845==    by 0x8110499: GParted::Win_GParted::activate_paste() (Win_GParted.cc:1649)

GParted_Core.cc:
   562  bool GParted_Core::snap_to_alignment( const Device & device, Partition & partition, Glib::ustring & error )
   563  {
   564          bool rc = true ;
   565
>> 566          if ( partition .alignment == ALIGN_CYLINDER )
   567                  rc = snap_to_cylinder( device, partition, error ) ;
>> 568          else if ( partition .alignment == ALIGN_MEBIBYTE )
   569                  rc = snap_to_mebibyte( device, partition, error ) ;
   570

Closes Bug #672654 - Pasting into an existing partition may shrink
                     GParted's representation of it
2012-03-24 10:53:00 -06:00
Fran Diéguez fc91e784b9 Updated Galician translations 2012-03-24 00:10:56 +01:00
Curtis Gedak 7385358398 Fix typographical error in en_CA translation
"partition tot he right" --> "partition to the right"
2012-03-22 20:02:38 -04:00
Curtis Gedak 552d4aa180 Fix two typos in en_CA translation
"Mounte" --> "Mount"
"secotor" --> "sector"
2012-03-22 20:02:38 -04:00
Mario Blättermann 8f7054ba34 [l10n] Updated German translation 2012-03-20 03:23:29 +01:00
Daniel Mustieles b5c4468963 Updated Spanish translation 2012-03-19 19:54:51 +01:00
Matej Urbančič 418b123e44 Updated Slovenian translation 2012-03-19 18:26:53 +01:00
Curtis Gedak 57762cb610 Make all move warning strings translatable 2012-03-19 10:58:39 -06:00
Curtis Gedak bee2a643e2 Ensure space for EBR when resizing Extended partition (#664050)
When resizing an extended boot record we must ensure that at least 2
sectors is reserved in front of the nearest logical partition for the
Extended Boot Record.

Please note that unless specifically told otherwise, the Linux kernel
considers Extended Boot Records to be two sectors long, in order to
"leave room for LILO".

Closes Bug #664050 - Unable to resize extended partition
2012-03-17 19:20:45 -06:00
Curtis Gedak 57ee0a1638 Add requested partition details to log when resize/move fails 2012-03-17 19:20:45 -06:00
Rudolfs Mazurs 391da027a0 Updated Latvian translation. 2012-03-17 00:12:37 +02:00
Mike Fleetwood 2919057abd Improve reiser4 file system uuid reading method
Previously used "fsck.reiser4" to perform a file system check with a by
product of outputting the uuid.  However this performs a lot of disk I/O
and takes a while to complete.  Instead use the much faster and less
resource intensive "debugfs.reiser4" tool to retrieve the uuid.
2012-03-15 10:38:04 -06:00
Praveen Arimbrathodiyil 3a41a30fcd Malayalam translation updated by Anish 2012-03-15 13:50:45 +05:30
Algimantas Margevičius 425ddb017d Updated Lithuanian translation 2012-03-05 00:18:25 +02:00
Curtis Gedak 0fda1d011d Enable new fs resize library available with parted-3.1 (#668281)
The parted-3.1 release brings back FAT16/FAT32 and HFS/HFS+ file
system resize capabilities in a new libparted fs resize library.

The following operations are again available when GParted is linked
with parted-3.1:

   FAT16 - grow and shrink
   FAT32 - grow and shrink
   HFS   - shrink
   HFS+  - shrink

Note that there is a difference in how move actions are handled for
FAT16/FAT32 file systems based on parted version.

When GParted is linked with parted >= 3.0:

   FAT16 - move performed internally by GParted
   FAT32 - move performed internally by GParted

When GParted is linked with parted < 3.0:

   FAT16 - move performed by libparted
   FAT32 - move performed by libparted

Thanks goes to Jim Meyering for restoring these file system resizing
capabilities in Parted 3.1 with a new libparted fs resize library.

Closes Bug #668281 - minimal file-system resize API? (FAT and HFS*
                     only)
2012-03-03 11:55:20 -07:00
Matej Urbančič 284956a6da Updated Slovenian translation 2012-02-28 21:44:54 +01:00
Daniel Nylander 3fe348649b Updated Swedish translation 2012-02-28 21:32:03 +01:00
Curtis Gedak efb00f1ed0 GParted - Add screen shot to ru translation
Add GParted window screen shot to help manual.

Note that the image has been resized to a maximum width of 510 pixels
as recommended in the GNOME-STYLE use of screenshots:

Image Width
http://developer.gnome.org/gdp-style-guide/stable/screenshot-4.html.en
2012-02-24 13:24:03 +04:00
Matej Urbančič 4d6960d001 Updated Slovenian translation 2012-02-23 20:35:36 +01:00
Daniel Șerbănescu 3048fa8ad1 Updated Romanian Translation 2012-02-22 19:12:34 +01:00
Daniel Mustieles ab2f1de5f9 Updated Spanish translation 2012-02-22 16:55:07 +01:00
Gabriel Speckhahn 970d2c27bb Updated Brazilian Portuguese translation 2012-02-16 12:36:54 -02:00
Kjartan Maraas 25507a9a13 Updated Norwegian bokmål translation 2012-02-21 20:38:19 +01:00
Curtis Gedak 81d5bb5ead Append -git to version for continuing development 2012-02-21 10:37:27 -07:00
Curtis Gedak 08fc3832c5 ========== gparted-0.12.0 ========== 2012-02-21 10:05:58 -07:00
Praveen Arimbrathodiyil 819e06aa64 gparted Malayalam translations by Anish A 2012-02-21 12:32:31 +05:30
Joe Hansen 55d4961ce9 Updated Danish translation 2012-02-20 23:49:00 +01:00
Мирослав Николић 7c815dac49 Updated Serbian translation 2012-02-20 10:23:05 +01:00
Curtis Gedak 1c0ea2783d Restore write label capability for linux-swap
The setting of the write label capability for linux-swap was lost
when it was overwritten in the following commit:

Add support for setting UUID (#667278)
9e96159bb2
2012-02-18 13:54:58 -07:00
Rogier Goossens 1197a52174 New partition dialog: first filesystem in list is always included
Even if invalid, the first filesystem in list is always included.

This is an off-by-one error, which was triggered when the first member
of FILESYSTEMS was no longer a regular filesystem, as a result of
commit ce9feeda0e9a04da04cec0a1b01512ed68c2495c:
'Make FileSystem objects in GParted_Core accessible and usable by others'
2012-02-18 10:32:30 -07:00
Rogier Goossens 387feb143a Fix for implicit assumption that 'FS_UNKNOWN' is last in FILESYSTEMS list
This assumption was invalidated by commit
ce9feeda0e9a04da04cec0a1b01512ed68c2495c:
'Make FileSystem objects in GParted_Core accessible and usable by others'

This patch removes the dependency on this implicit assumption.
2012-02-18 10:32:13 -07:00
António Lima 9e2bef970a Updated Portuguese translation 2012-02-18 12:28:26 +00:00
Мирослав Николић 09f01e9d13 Updated Serbian translation 2012-02-18 10:45:23 +01:00
Yuri Myasoedov 3ae326961d Updated Russian translation 2012-02-16 16:51:15 +04:00
Marek Černocký 0e5fa85e7e Updated Czech translation 2012-02-16 09:15:39 +01:00
Christian Kirbach 04debcff55 Updated German translation 2012-02-15 22:31:07 +01:00
Mario Blättermann c5a34551ca [l10n] Updated German doc translation 2012-02-15 21:24:17 +01:00
Daniel Mustieles 6fef59f9fd Updated Spanish translation 2012-02-15 18:25:21 +01:00
Marek Černocký 095a9d0b73 Updated Czech translation 2012-02-14 21:27:31 +01:00
Curtis Gedak 93241cccbf Fix regression when shrinking, moving and copying swap (#670017)
Since linux-swap does not contain data and does not have a resize
command, linux-swap is recreated instead of moved, copied, or resized.

GParted 0.11.0 contained the following enhancement:
Bug #663980 - Avoid redundant file system maximize actions

An unfortunate side effect of this change was that the required
maximize action to recreate linux-swap would not occur when the new
size for the partition was less than or equal to the original size.

The changes associated with this commit address this regression.

Closes Bug #670017 - Corrupting swap partitions
2012-02-14 11:31:15 -07:00
Baurzhan Muftakhidinov 7338ddf78a Updated Kazakh translation 2012-02-14 09:18:35 +06:00
Bruno Brouard 493ad030cb Updated French doc translation 2012-02-13 11:45:47 +01:00
Bruno Brouard 6989050ced Updated French translation 2012-02-13 11:44:02 +01:00
Fran Diéguez 2f7fe571fd Updated Galician translations 2012-02-13 02:16:57 +01:00
Gabor Kelemen a3c96e3519 Updated Hungarian translation 2012-02-13 01:09:19 +01:00