Commit Graph

905 Commits

Author SHA1 Message Date
Curtis Gedak ceab9bde57 Ensure 1 MiB reserved when moving partition to start of disk
The 1 MiB is required for the partition table stored at the
beginning of the disk device.
2010-10-25 10:59:11 -06:00
Curtis Gedak 7c0e3fa778 Fix crash moving more than one logical partition right (#628863)
This problem would occur when using align to MiB for the
destination partitions.

Closes bug #628863 - gparted crashes applying move to right of
                     more than one logical partition
2010-10-24 12:37:57 -06:00
Curtis Gedak 1ad4864618 Change URL for "Saving Details" to a shorter path
This new URL is actually an html redirect to the actual page
location.  This permits us the flexibility to move the actual
page wherever is needed on the web site without the need to
change the URL location in the code.
2010-10-20 17:34:43 -06:00
Curtis Gedak 232800d6cd Skip move action because linux-swap contains no data (#589555)
Closes bug #589555 - Moving a swap partition needlessly copies
                     all "data" on it
2010-10-19 13:43:42 -06:00
Curtis Gedak ca30f986f7 Add virtual move method to FileSystem class
This is preparation work for the following bug report:
Bug #589555 - Moving a swap partition needlessly copies
              all "data" on it
2010-10-19 13:35:53 -06:00
Curtis Gedak 42dafa2e6a Skip copy action because linux-swap does not contain data
This change is related to the following bug report:
Bug #589555 - Moving a swap partition needlessly copies
              all "data" on it
2010-10-19 10:02:18 -06:00
Curtis Gedak d330f9a518 Fix partitions moved or copied using MiB alignment are 1 MiB larger
Correct problem introduced in version 0.6.3 whereby move or copy
operations using MiB alignment resulted in the destination
partition being 1 MiB larger.

Closes bug #632478
2010-10-18 17:08:23 -06:00
Curtis Gedak b0e36132b0 Make btrfs support a normal part of gparted
Remove need to configure with the --enable-btrfs option in order
to include btrfs support in gparted.
2010-10-18 15:28:40 -06:00
Curtis Gedak 7dd6381c43 Add more translator comments requested in bug #631684 2010-10-15 14:50:58 -06:00
Curtis Gedak 1cdb40e70d Rearrange text for warning when moving a partition 2010-10-13 09:07:53 -06:00
Curtis Gedak d7e1f295a9 Update to support plural forms for string for translators
Closes bug #631684 - Needed Translator Comments
2010-10-13 09:07:53 -06:00
Curtis Gedak 08c78ba19d Add translator comments requested in bug #631684 2010-10-12 18:14:30 -06:00
Curtis Gedak c165544506 Update URLs to new official web site gparted.org 2010-10-12 11:35:26 -06:00
Markus Elfring 1e2562adda Bug #539092: Deletion of unnecessary null pointer checks
A few null pointer checks were deleted because they were not needed any more.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2010-10-06 12:24:51 -06:00
Seth Heeren ddf225728f erase_filesystem_signatures writes uninitialized data
tagged FIXME
2010-10-05 12:54:55 -06:00
Seth Heeren 71a811cfae leaked FS structures for unsupported partition types
FILESYSTEMS vector copies anyway
2010-10-05 12:54:55 -06:00
Seth Heeren e61b5ff240 leaked regular expression (regfree not called) 2010-10-05 12:54:55 -06:00
Seth Heeren 29e4329182 Unitialized value in OperationDetail::OperationDetail 2010-10-05 12:54:55 -06:00
Seth Heeren 37dad68f45 ped_partition_get_path result not freed 2010-10-05 12:54:55 -06:00
Seth Heeren 18fed5030f leaked FS structures for new partition dialog
FILESYSTEMS vector copies anyway
2010-10-05 12:46:26 -06:00
Seth Heeren 83ff77285a leaked Gtk::HBox 2010-10-05 12:46:26 -06:00
Seth Heeren 58b0e23dd7 remove misuse of ustring in get_filesystem 2010-10-05 10:29:05 -06:00
Luca Bruno 9c41afae91 Use ext2 as default when creating new filesystems
Default to ext2 for filesystem creation, instead of the
alphabetically preceding btrfs. Do not use get_label(),
as it is not available in older gtkmm.
2010-10-05 08:51:53 -06:00
Luca Bruno 5c05233072 Provide set_used_sectors() for Btrfs
Add set_used_sectors() method to Btrfs handler, to show usage statistics
on unmounted volumes.
2010-10-03 17:00:53 +02:00
Luca Bruno 0125278eb7 List Btrfs capabilities in filesystems table
When enabled, show Btrfs capabilities in features table, without skipping
it like other multi-volume systems.
2010-10-03 17:00:53 +02:00
Luca Bruno 5765eb870c Use Btrfs handlers, if enabled at configure time
GParted already has basic support only to recognize Btrfs volumes; if
configured, use our newer methods to handle them.
Also, put in place interface controls for all supported generic actions.
2010-10-03 17:00:53 +02:00
Luca Bruno 66a3a71842 Initial Btrfs-handling modules
This adds initial handlers for Btrfs; only .create, .check and
.read_label are done for now, via external btrfs-tools.
Other methods are still only stubs.
2010-10-03 17:00:53 +02:00
Curtis Gedak adc55bec50 Fix partitions created using MiB alignment are 1 MiB larger (#631026)
Closes bug #631026 - Partitions created using MiB alignment are
                     1 MiB larger than specified
2010-09-30 11:31:25 -06:00
Curtis Gedak d040e4e584 Use direct assignment for string in class initialization
Change string initialization to use direct assignment instead of
a class method in the GParted_Core class initialization.

Thanks go to Jan Claeys for pointing out this potential problem
and providing the following link:
https://bugzilla.gnome.org/show_bug.cgi?id=627724#c7

This link contains a comment by Matthias Clasen that says:

    "In a class init function, don't do anything that causes
    other threads to initialize classed types."
2010-09-21 11:19:42 -06:00
Curtis Gedak a30f991ca5 Fix size reduced by 1 MiB when created after cylinder aligned partition
Prior to this enhancement creating a new partition aligned to MiB
after a partition aligned to cylinder would result in the creation of
a partition that was 1 MiB smaller in size than requested.  In the
case of a 1 MiB new partition, a warning message would be displayed
indicating that "A partition cannot have a length of 0 sectors".

This problem is avoided by applying similar logic as was used to
address the following bug:
Bug #626946 - Destination partition smaller than source partition
2010-09-09 13:18:02 -06:00
Curtis Gedak b77a5e229d Fix paste destination partition smaller than source (#626946)
Prior to this enhancement when copying and pasting a partition
after a cylinder aligned partition, the destination partition
would become smaller than the source partition if align to MiB
was selected.

Closes bug #626946 - Destination partition smaller than source
                     partition.
2010-09-09 13:18:01 -06:00
Curtis Gedak c17df56af0 Ensure default partition alignment is mebibyte 2010-09-09 13:18:01 -06:00
Curtis Gedak 9d4ae28759 Fix numerical mismatch when graphically moving logical partition (#628554) 2010-09-07 17:01:08 -06:00
Curtis Gedak aa14b25f1b Warn partition move queued that might break boot process (#627199) 2010-09-01 13:56:29 -06:00
Curtis Gedak cf68fc0704 Enable to work with new dmraid and parted without dmraid support
Newer versions (dmraid-1.0.0-rc16?) of dmraid default to always
creating partition names by inserting the letter 'p' between the
device name and the partition number.  Since this is not
consistent with older versions of dmraid, add extra logic to
ensure that newer versions of dmraid do not insert this extra
letter 'p'.

Rename method get_udev_name to get_udev_dm_name and enhance to
retrieve the property DM_NAME.

Handle situation where parted, and hence libparted, has been
configured with --disable-device-mapper.  In this situation on
some distros the device name could be /dev/dm-0.  This results in
invalid partition names such as /dev/dm-0p1.  Add logic to decode
the actual /dev/mapper name.
2010-08-25 10:33:02 -06:00
Curtis Gedak 545a8583aa Minor cosmetic formatting change 2010-08-25 09:36:13 -06:00
Curtis Gedak c55a8de305 Remove dependency on kpartx for fake RAID support
With this patch the commands required to support motherboard BIOS
RAID, also known as fake RAID, are dmraid and dmsetup.

If the kpartx command is available, it will be used to maintain
device entries that follow the naming convention used by kpartx.

Closes Ubuntu launchpad bug 554582 - GParted does not list dmraid
devices
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/554582
2010-08-17 10:36:00 -06:00
Curtis Gedak 81986c0990 Ensure partition path name is compatible with dmraid (#622217)
This patch along with a few preceding patches address the
following bug reports:

Closes bug #622217 - gparted live 0.6.0-1 incompatibility with
AMD RAID (SB750 southbridge)

Closes Ubuntu launchpad bug 600729 - Gparted not usable on
fakeraid arrays
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/600729
2010-08-17 10:36:00 -06:00
Curtis Gedak 73e7f85a2f Create new method make_path_dmraid_compatible
This method will be used to ensure that the partition path
matches the name that would be created by the dmraid command.
2010-08-17 10:36:00 -06:00
Curtis Gedak cf264a05bb Replace function ped_partition_get_path with method get_partition_path 2010-08-17 10:36:00 -06:00
Curtis Gedak 9bd8b14871 Create new method get_partition_path
This method will be used as an entry point to the libparted
function ped_partition_get_path
2010-08-17 10:36:00 -06:00
Curtis Gedak 53c49349f7 Simplify logic in set_device_partitions method
Also clean up some white space
2010-08-17 10:36:00 -06:00
Curtis Gedak 2d4c4017ca Prevent partition table creation if partitions are active
Prevent creating new partition tables on devices that have
mounted file systems, or enabled swap space.

Closes Ubuntu launchpad bug #503125 - gparted allows user to
overwrite active mounted partition
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/503125
2010-08-10 13:01:40 -06:00
Curtis Gedak f7cb37831a Add new method active_partitions_on_device_count 2010-08-10 13:01:40 -06:00
Curtis Gedak d5064dfe03 Move method to match header file
Also update copyright year
2010-08-10 13:01:40 -06:00
Curtis Gedak a4e01bc1d6 Prevent swapon and mount if partition in operation queue (#611431) 2010-08-09 13:37:08 -06:00
Curtis Gedak 44698448aa Add new method partition_in_operation_queue_count 2010-08-09 13:33:28 -06:00
Mike Fleetwood 3194121496 Add labelling of linux-swap
When found, use external swaplabel command to label linux-swap
partitions.  (Available from util-linux-ng 2.18 released 30 Jun 2010).
2010-08-08 10:36:34 -06:00
Curtis Gedak a3d70a1fbf Ensure original partition boundaries kept on rollback of failed move 2010-07-22 17:18:48 -06:00
Curtis Gedak c3a06ffd6c Fix problem with logical partition move overwriting EBR (#623630)
Prevent overwriting meta data (Extended Boot Rectors) for logical
partitions by temporarily increasing the size of the logical
partition to encompass all of the space involved in the move
operation.  The libparted library will move the EBR as needed to
permit this to happen.  After the move the logical partition is
set to the proper size.

This fixes bug #623630 - Move logical partition to right yields
invalid partition table on /dev/sda - wrong signature 0
2010-07-22 17:18:48 -06:00
Curtis Gedak a92f2dad39 Re-enable MiB partition alignment option 2010-07-22 17:18:48 -06:00
Curtis Gedak 1e1ea1f09c Disable MiB alignment temporarily until bug #623630 can be fixed 2010-07-08 09:22:43 -06:00
Curtis Gedak e810b7f7f0 Fix crash moving partitions when size is a multiple of 16 MiB (#623697) 2010-07-06 13:12:19 -06:00
Curtis Gedak f173a51f0b Enable support for devices with sector sizes > 512 bytes (#607165)
GParted requires libparted version 2.2 or higher to support devices
with sector sizes > 512 bytes.

This commit marks the end of a series of enhancements required to
provide support for sector sizes > 512 bytes.
2010-05-27 11:08:40 -06:00
Curtis Gedak be53cf584b Fix off by 1 sector math when looking for unallocated space 2010-05-27 10:59:12 -06:00
Curtis Gedak 87e48efe88 Only show exactly 1 MiB unallocated space if not MBR or EBR
Do not show unallocated space of exactly 1 MiB in size if:

  a) The space is at the front of the drive.

     This space is reserved for the partition table and the
     Master Boot Record.

or

  b) The space immediately precedes a logical partition.

     This space is reserved for the Extended Boot Record.
2010-05-27 09:27:00 -06:00
Curtis Gedak b74dba4f67 Change behavior to better align with GNOME HIG on drop-down lists
Quote from GNOME Human Interface Guidelines 2.2.1 on Drop-down lists:

     "Selecting an item from a drop-down list should not affect the
     values of any other controls. It may sensitize, insensitize, hide
     or show other controls, however."
2010-05-26 17:33:38 -06:00
Curtis Gedak f861501390 Improve cylinder alignment for partitions less than a disk cylinder 2010-05-26 16:57:59 -06:00
Curtis Gedak 95c9577d8f Limit graphic movement according to required boot record space
Also respect minimum size for extended partition in graphical
representation.

This change is part of adding the option to align to MiB (#617409).
2010-05-25 16:26:08 -06:00
Curtis Gedak 24d96114ca Fix short by 1 MiB on spinbutton before with resize/move 2010-05-25 16:26:08 -06:00
Curtis Gedak 40bb656de5 Disable resizing when the total area is less than two mebibytes 2010-05-25 16:26:07 -06:00
Curtis Gedak ebdb9466e0 Ensure space available for GPT backup partition table on paste 2010-05-25 16:26:07 -06:00
Curtis Gedak e62a23b5b5 Add partition alignment option to align to MiB (#617409)
Make align to MiB the default setting instead of align to cylinder.

Migrate logic for alignment to cylinder into its own method
snap_to_cylinder, and place common logic in snap_to_alignment.

Add alignment checks for situations where space is needed for Master
Boot Record or Extended Boot Record.

Adjust ranges on spin buttons according to required boot record space.

Copy fix for off by one sector (#596552) from
Dialog_Partition_New::Get_New_Partition to
Dialog_Base_Partition::Get_New_Partition

Enhance resize / move logic for checking locations of nearby logical
partitions to not depend on the partition ordering.

Note: This commit does not include limiting graphic movement according
to required boot record space.
2010-05-20 10:00:14 -06:00
Curtis Gedak 2cdfb4c55a Change partition alignment check box to a drop down menu
Also add signal handler to alignment menu to update file system
minimum size.
This enhancement is to prepare for adding a third alignment
option to align to MiB.
2010-05-09 14:45:26 -06:00
Curtis Gedak 3db6b074c9 Remove incorrect comment 2010-05-04 15:47:34 -06:00
Curtis Gedak b45b30c2ed Ensure sector size is set when getting a new partition
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-05-04 15:19:49 -06:00
Curtis Gedak 8155d4786d Fix used and unused sector math when pasting a copied partition
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-05-04 15:18:43 -06:00
Curtis Gedak bec2a6f176 Fix minimum size calculation when pasting a copied partition
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-05-04 15:00:39 -06:00
Curtis Gedak 6369e58bff Enhance detection for ext3, fat16, fat32, linux-swap, and hfsplus
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-28 14:11:24 -06:00
Curtis Gedak 66355153fb Enhance file system space unused math to use actual sector size 2010-04-28 13:25:57 -06:00
Curtis Gedak 9e5e9f5627 Enhance file system detection to use FS_Info method - blkid
This enhancement was added because the current libparted library,
version 2.2, does not appear to detect file systems for sector
sizes other than 512 bytes.
2010-04-28 12:58:28 -06:00
Curtis Gedak 7e2ca14756 Rename get_length method to get_sector_length
This rename is to try to reduce future confusion between
partition length in sectors versus partition length in bytes.
2010-04-28 09:11:44 -06:00
Curtis Gedak 70448f4fb0 Replace sector math with get_byte_length method where appropriate
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-27 12:54:14 -06:00
Curtis Gedak c3cae3b6eb Enhance set_valid_operations method to handle different sector sizes 2010-04-27 11:41:43 -06:00
Curtis Gedak fe9ee68385 Create get_byte_length method 2010-04-27 11:28:36 -06:00
Curtis Gedak cb08e8c7dd Remove 512 byte based units and rename _FACTOR to BYTE
With the removal of the 512 byte constants, such as MEBIBYTE, it
was possible to rename the _FACTOR constants back to BYTE
constants.  The _FACTOR constants, such as MEBI_FACTOR, were a
temporary measure to help in the transition to support devices
with sector sizes > 512 bytes.
2010-04-26 13:40:38 -06:00
Curtis Gedak 81a903cda2 Replace constant MEBIBYTE with appropriate MEBI_FACTOR math
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-26 13:21:18 -06:00
Curtis Gedak 5d2bf2ec5d Replace default sector size with appropriate sector size
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-26 11:52:33 -06:00
Curtis Gedak 896dab7192 Enhance copy_filesystem method to work with sector sizes
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-26 11:43:59 -06:00
Curtis Gedak c3352fb24a Clean up progress bar current status after copy/move action
Also ensure that final progress bar current status is set to
completed value when the copy blocks method completes.
2010-04-25 11:09:18 -06:00
Curtis Gedak 0d5c06f85d Add logic for copy and paste between devices with different sector sizes
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-23 13:28:41 -06:00
Curtis Gedak 74ecd2ed3f Set sector size and add to operation and dialog methods
This change is in preparation for supporting sectors sizes > 512 bytes.
2010-04-19 19:22:31 -06:00
Curtis Gedak 4bcd0a3704 Add device sector size to partition object
The device sector size is needed in all calculations that convert
between sectors and bytes.  The device sector_size is included in
the partition object because this object is used to contain
operation information in addition to actual partitions and
unallocated space.  A second option was considered to pass the
device object to many methods, but this was considered a much
larger task that might not provide significant gains in
maintainability.
2010-04-19 19:06:08 -06:00
Curtis Gedak 8fb40d843d Enhance copy methods for sector sizes > 512 bytes 2010-04-07 11:39:42 -06:00
Curtis Gedak 1a498b62bf Enable copy to work on computers with only 128 MiB RAM (#613430) 2010-03-24 14:47:46 -06:00
Curtis Gedak 44e5176ee5 Enhance format_size() for sector sizes > 512 bytes 2010-03-24 14:37:08 -06:00
Curtis Gedak eb7e09aac8 Remove GParted:: prefix from in front of UNIT constants 2010-03-24 14:37:08 -06:00
Curtis Gedak 1aa81bba94 Enhance sector_to_unit() for sector sizes > 512 bytes 2010-03-24 14:37:08 -06:00
Curtis Gedak f9f603256e Convert file system maximum from sector to byte value 2010-03-24 14:37:08 -06:00
Curtis Gedak 40d7dbac4b Convert file system minimum from sector to byte value 2010-03-24 14:37:08 -06:00
Curtis Gedak f23746959f Fix mkswap error "UUID parsing failed" when resizing with no UUID
See following debian bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573836
2010-03-14 13:46:59 -06:00
Curtis Gedak e786bfa598 Enhance erase_filesytem_signatures() for sector sizes > 512 bytes 2010-03-14 13:46:59 -06:00
Curtis Gedak 892e56f9b6 Enhance file system detection for sector sizes > 512 bytes 2010-03-14 13:46:59 -06:00
Curtis Gedak 4c0b514e22 Set device length to value from libparted
Previously this value was calculated to end on a cylinder
boundary.  On today's larger hard drives, which simply emulate
Cylinders/Heads/Sectors, some disk space might remain after the
last cylinder.  This space would always be less than a full
cylinder in size.  Now this space will be visible to the user.
2010-03-14 13:46:59 -06:00
Petr Uzel c722047c36 Avoid compiler warning
Report of this problem can be found in the mailing list archive:
http://sourceforge.net/mailarchive/forum.php?thread_name=4B967C26.2090608%40gmail.com&forum_name=gparted-devel
2010-03-10 09:11:40 -07:00
Curtis Gedak 260e0ea190 Fix bug when copying huge NTFS partition never finishes (#575324)
Improved logic in cleanup_cursor method to minimize the number of
string erase operations performed.

Previously when the NTFS copy finished, GParted would take an
exceptionally long time to clean up the output.  This was due to
the huge number of small string erase operations performed on a
extremely large string.
2010-03-01 13:56:05 -07:00
Curtis Gedak 39208ba2af Add check if partition table re-read work around code is needed
A patch to alleviate the "failure to inform kernel of partition
changes problem" (bug #604298) has been included in parted-2.2.
Hence when parted-2.2 or higher is used, the work around code in
GParted is not required.
2010-03-01 11:05:03 -07:00
Curtis Gedak 4e2be4047c Remove comment about wrong identifier for HFS/HFS+ (#568867)
With parted-2.2 the partition identifier for HFS and HFS+ is set to 0xAF.
With previous versions of parted this was incorrectly set to 0x83.
2010-02-26 10:36:54 -07:00
Curtis Gedak 70584176de Disable extended option for non-MSDOS and non-DVH disk types (#583906)
According to parted documentation, only "msdos" and "dvh" disk
types (or partition table types) support extended partitions.
All other disk types support primary partitions only.
2010-02-24 11:39:42 -07:00
Curtis Gedak ed6d8f0cee Make partition "New" label available for translation (#610540) 2010-02-22 10:33:18 -07:00
Curtis Gedak 19d8f0dfc8 Add sector size to device display pane
Also add sector_size to Device class.  This is the start of an
enhancement to add support for devices with sector sizes other
than 512 bytes (#607165).
2010-02-20 15:12:26 -07:00
Curtis Gedak eba0c88da5 Indicate required software packages if unable to read file system (#576908) 2010-02-20 11:27:58 -07:00
Curtis Gedak 3dd34af909 Avoid crashes by ignoring devices with sector size > 512 bytes (#595309)
This is not an ideal solution because devices with sector sizes
greater than 512 bytes are silently ignored from a graphical interface
perspective.  Only if the user starts gparted from the command line
will the "ignoring device" message be seen.

In my opinion this short term solution of ignoring these devices is
still better than a gparted crash which might also result in data
loss.

A bug report requesting support for devices with sector sizes > 512
bytes has been created.
https://bugzilla.gnome.org/show_bug.cgi?id=607165

Thanks go to Jan Claeys for the initial small patch.
2010-01-16 11:45:29 -07:00
Curtis Gedak bf86fd3f9c Work around: retry ped_disk_commit_to_os() after sleep(1) (#604298)
Bug #604298 involves a problem that can occur when GParted uses
libparted to manipulate a partition table, but the
ped_disk_commit_to_os() function fails to inform the Linux kernel of
these changes to the partition table.  This problem is intermittent in
nature and is difficult to reliably reproduce.

This change is an attempt at a work around.  If the first call to
ped_disk_commit_to_os() fails, then we sleep for 1 second to allow the
system to settle before invoking the function call again.  My testing
has shown that this greatly improves the chances of successfully
informing the kernel of partition changes.

Thanks go to François Dupoux and Steven Shiau for their suggestions
and help to resolve this problem.
2010-01-15 15:39:06 -07:00
Curtis Gedak cf22c99424 Update copyright years in fat16.cc and fat32.cc 2010-01-14 10:59:30 -07:00
Curtis Gedak 1155fa6dab Fix problem reading some FAT32 partitions (#605175)
This problem was introduced with GParted 0.4.7 when the "-a"
option was removed from the dosfsck command.  The dosfsck command
is used to read the number of used sectors.  Instead we will now
use the "-n" option which does not write any changes to the file
system, and allows non-interactive operation.
2010-01-14 10:50:49 -07:00
Curtis Gedak 51d1c4c552 Ensure commit_to_os() return code is passed up through commit() method
This problem was discovered while investigating bug #604298
2010-01-08 11:02:16 -07:00
Curtis Gedak 2f9bf91883 Update copyright year 2010-01-02 15:07:03 -07:00
Curtis Gedak 20f5c6f83b Clean up code for old bug #157871
Remove commented code and boolean use-C-lang parameter for
Utils::num_to_str() method because this bug was fixed in
gcc-4.0.3.  The GNU gcc compiler versions 4 and up are now
commonly in use.  Also due to previous partial commenting and
removal of the code, the code was non-functional

Thanks goes to Jan Claeys for pointing out this clean up
opportunity.
2010-01-02 15:04:30 -07:00
Curtis Gedak 1ef489fcd8 Clear libparted kernel re-read messages when scanning devices
When calling commit_to_os() with newer Linux kernels,
parted-1.9.0, and at least one partition mounted on the device,
the following error message is displayed:

    The kernel was unable to re-read the partition table on
    /dev/sda (Device or resource busy).  This means Linux won't
    know anything about the modifications you made until you
    reboot.  You should reboot your computer before doing
    anything with /dev/sda.

If this message is not cleared then it will remain in the
libparted_message array and could potentially be displayed along
with an error message for a subsequent scanned disk device.
2009-12-09 13:16:18 -07:00
Curtis Gedak 098cb0cddf Change field labels to sentence capitalization
Change is to align with GNOME Human Interface Guidelines 2.2.
http://library.gnome.org/devel/hig-book/stable/design-text-labels.html.en
2009-12-06 14:36:39 -07:00
Curtis Gedak 906b969ecd Change wording from disk label type to more common partition table 2009-12-06 14:32:12 -07:00
Curtis Gedak 0fba953cd9 Capture libparted messages when invalid partition table found #337244
When libparted reports a problem with the partition table, capture
this message and attach it to the "unallocated" partition that spans
the entire disk.

Examples of these types of problems encountered are:
     /dev/sda: unrecognised disk label
     Can't have overlapping partitions.
2009-12-03 15:59:49 -07:00
Curtis Gedak ef2fc4919c Re-enable ability to paste into an existing partition (#582101)
The ability to paste into an existing partition was disabled in
v0.4.0.  This ability has been re-enabled along with a warning
dialog that indicates the data in the existing partition will be
lost if the copy and paste operation is applied.
2009-11-25 12:39:02 -07:00
Curtis Gedak 8cfb27b718 Cleanup file copyright entries
Restore copyright entries by original author to those of his last
known repository commit titled "released gparted-0.3.4 on
LarryT's request." on Feb 25, 2007.

Add my own copyright entries for files in which I changed source
code.  Files in which I only made spelling changes do not have my
copyright entry added.
2009-11-05 11:08:49 -07:00
Curtis Gedak 1607d13a06 Added auto detection of Linux software RAID devices
Auto detection of Linux software RAID devices was lost in GParted
0.3.8.  This was because device scanning by the libparted device
call ped_device_probe_all() was replaced with custom code within
GParted to scan /proc/partitions for devices.

The reason the libparted call was replaced was due to a long
scanning problem with ped_device_probe_all(), a non-existent
physical floppy device, and a BIOS setting indicating a floppy
drive existed.  See bug #351753:
https://bugzilla.gnome.org/show_bug.cgi?id=351753
2009-11-03 13:30:44 -07:00
Curtis Gedak e2ef2ca671 Rename NO_DOC to HAVE_DISABLE_DOC for consistency sake 2009-11-03 10:57:15 -07:00
Curtis Gedak c2d19a8ab4 Replace gnome-open with gtk_show_uri (#600046)
This change was performed to align with a GNOME goal:
http://live.gnome.org/GnomeGoals/RemoveGnomeOpenGnomeHelp

For backwards compatibility, the gnome-open command is used
when gtkmm < 2.14.0.
2009-11-03 10:27:35 -07:00
Curtis Gedak 33d7e31d3c Change em dashes to period with new sentence
With the em dashes in the translatable strings, a 'make distcheck'
would fail.  Hence these have been change to be a period followed by a
new sentence.
2009-10-26 15:19:04 -06:00
Curtis Gedak c85de03ee3 Remove unable to re-read partition table warning (#599078)
When used with parted-2.0, GParted would display a warning
message indicating "kernel unable to re-read partition table" on
every device scan for each device with at least one partition
mounted.  Device scans occur when GParted starts up, immediately
after a series of actions are applied, and upon manually invoked
device refreshes.  This, I believe, is excessive notification to
the user and would be annoying.
2009-10-26 14:48:22 -06:00
Curtis Gedak 83381f85f1 Ensure no pending operations before creating partition table (#583896)
This fixes a situation where GParted would crash if a user queued
up some operations, created a new partition table, and then
applied the operations.
2009-10-25 14:35:12 -06:00
Curtis Gedak 73471032c9 Improve feedback when creating or pasting partition (#579266)
Improve the feedback to the user when creating or pasting a
partition on a device with no partition table found.

Prior to this enhancement if a user tried to create or paste a
partition onto a device with no partition table found, GParted
would present the user with a Create Partition Table dialog.

When creating a new partition this could cause confusion for
users who were trying to format the disk.  The user could
mistakenly believe the choice of an MS-DOS file system was being
presented.

Similarly on a paste operation it could be confusing to be
presented with a dialog to create a partition table without any
explanation of why a partition table was suddenly required in the
midst of the paste operation.

Neither the new partition creation, nor the partition paste
actions were performed after the Create Partition Table dialog
was displayed.
2009-10-24 14:16:40 -06:00
Curtis Gedak 0af42af3d0 Add padding to progress dialog window 2009-10-22 10:19:47 -06:00
Curtis Gedak a960d280d8 Change field labels to sentence capitalization (#583885)
This change done to align with the GNOME Human Interface Guidelines.
http://library.gnome.org/devel/hig-book/stable/design-text-labels.html.en
2009-10-21 15:25:44 -06:00
Curtis Gedak 4a8ecdc613 Remove repeated titles in progress dialog (#589558) 2009-10-18 13:06:40 -06:00
Curtis Gedak acdddc0770 Add help dialog when configured with --disable-doc 2009-10-17 15:43:20 -06:00
Curtis Gedak cf4a962c73 Further improve dmraid device and name recognition 2009-10-14 11:09:23 -06:00
Curtis Gedak 5f6301d1b0 Rework logic to resolve real path for symbolic link devices (#582687) 2009-10-13 17:45:04 -06:00
Bruce Cowan b44516a9d4 Minor string fixes (#597686) 2009-10-13 12:24:02 -06:00
Curtis Gedak 0810792f02 Ensure dmraid devices created for devices passed on command line 2009-09-30 16:32:32 -06:00
Curtis Gedak fa0b88c701 Improve logic for retrieval of device udev name 2009-09-30 16:25:19 -06:00
Curtis Gedak 78c3174694 Improve logic to recognize dmraid devices 2009-09-30 16:16:27 -06:00
Curtis Gedak d63c97ef42 Simplify logic to ensure dmraid_devices cleared before populating 2009-09-30 16:08:03 -06:00
Seth Hunter df541b8986 Fix problem with create new partition size off by one sector (#596552)
With "Round to cylinders" deactivated, creating a new partition would
create a partition that was one sector too large.

Closes GParted bug #596552
2009-09-28 16:32:04 -06:00
Curtis Gedak 6fa8ad4818 Made set_used_sectors method less meddlesome for FAT16/32
Removed the "-a" flag from the dosfsck command that is used to
determine the number of used sectors in FAT16 and FAT32 file systems.

Related to GParted bug #569921
2009-08-11 15:33:59 -06:00
Curtis Gedak 6d90d0fbcd Resolve real path for symbolic link devices in mount files (#582687)
In order to find a match between the device paths in mount files and
partitions as found by libparted, the mount device must be a real path
and not a symbolic link.

Closes GParted bug #582687
2009-08-09 14:26:07 -06:00
Curtis Gedak 5e07fb434d Place translator comment in proper location (#590415) 2009-07-31 18:56:31 -06:00
Curtis Gedak 8aa941204c Enhance to use new linux-swap "filesystem" types added in parted-1.9.0
Excerpt from parted-1.9.0 release notes follows:
  In libparted, the linux-swap "filesystem" types are now called
  "linux-swap(v0)" and "linux-swap(v1)" rather than "linux-swap(old)"
  and "linux-swap(new)" as in parted 1.8, or "linux-swap" as in older
  versions; "old" and "new" generally make poor names, and v1 is the
  only format supported by current Linux kernels. Aliases for all
  previous names are available.
2009-07-28 15:38:30 -06:00
Curtis Gedak 5f3c806561 Enhance file parsing to handle tabs properly (#582687)
Previously the read_mountpoints_from_file() method only expected
a space between arguments in files such as /etc/fstab.  Valid
delimiters are now space and tab.

Related to GParted bug #582687
2009-07-23 16:09:22 -06:00
Curtis Gedak ae912379cc Cleanup white space in read_mountpoints_from_file method 2009-07-23 16:09:22 -06:00
Curtis Gedak 0899b72dd3 Remove extra blank line accidentally added in last commit 2009-07-06 16:23:02 -06:00
Curtis Gedak 8e8bf7e544 Change button create to apply for partition table creation (#576374)
To further minimize the chance of accidentally creating a new partition
table, the following steps have been taken:

1)  Rename non-standard Create button to stock Apply button.
2)  Remove extra warning about erasing entire disk device.
3)  Update GParted Manual accordingly.

Closes GParted bug #576374
2009-07-06 15:58:08 -06:00
Curtis Gedak 746a2f2f09 Improve error messages and translator comments
Provide translator sample text, and add more detail to error messages
when updating the ntfs boot sector.
2009-05-16 12:45:43 -06:00
Curtis Gedak dd8a57a8fe Remove requirement for xxd and dd for NTFS move or paste action
Perform direct update of Number of Hidden Sectors in NTFS boot record.
This change removes the need for /usr/bin/xxd and /bin/dd.
Related to GParted bug #574389
2009-05-16 12:15:14 -06:00
Curtis Gedak f164e78153 Require xxd and dd for NTFS move or paste action
Related to GParted bug #574389
2009-05-14 14:59:49 -06:00
Curtis Gedak 9238e47bc2 Remove absolute paths from /usr/bin/xxd and /bin/dd 2009-05-14 14:45:11 -06:00
Curtis Gedak e7352a5000 Ensure /dev file system device entries created before adding device 2009-05-02 10:59:49 -06:00
Curtis Gedak 301bd77312 Refactor some logic into separate settle_device method 2009-05-02 10:59:49 -06:00
Curtis Gedak 22b6b27703 Improve file system detection with fall back to vol_id 2009-05-02 10:59:49 -06:00
Curtis Gedak 2a89d936d6 Remove get_dmraid_prefix method used to specify a single device
It appears that different dmraid versions handle specifying a
single dmraid device differently.

dmraid-1.0.0.rc14 uses a partial name only,
  such as "isw" or "isw_cjbdddajhi".
dmriad-1.0.0.rc15 uses a full name only,
  such as "isw_cjbdddajhi_Vol0".

To maintain compatibility with the broadest range of dmraid versions,
the ability to specify a single dmraid device is being removed.
2009-04-29 16:34:30 -06:00
Curtis Gedak 3f773c3ae8 Ensure kpartx is executed even if dmraid fails 2009-04-29 16:23:28 -06:00
Curtis Gedak 301f58c977 Remove temporary debugging information accidentally committed 2009-04-28 14:23:09 -06:00
Curtis Gedak 58c9336e9d Enhance get_dmraid_name to also check udev information if needed 2009-04-28 14:21:56 -06:00
Curtis Gedak 9816f5c18a Refactor some logic into separate get_udev_name method 2009-04-28 13:42:47 -06:00
Curtis Gedak 63980c0def Minor style change to place braces on a separate line 2009-04-27 15:17:45 -06:00
Curtis Gedak ce4de8b51e Improve dmraid device detection with checking udev if needed
Some distros appear to display /dev/dm-# device names with
libparted.  Since this fails a pattern match with the dmraid
device name, check with udev to see if a pattern match is
possible with the name returned from udevinfo or udevadm info.

For example:
     /dev/mapper/isw_cjbdddajhi_Vol0 is the device name
     /dev/dm-0 is a symbolic link pointing to the above device name
2009-04-26 16:45:53 -06:00
Curtis Gedak 5112e41815 Update copyright year for FS_Info class 2009-04-26 15:49:30 -06:00
Curtis Gedak 47f0d6bd5d Enhance UUID detection to fallback to vol_id if available
Normally, the blkid command will detect the UUID for a file system.
In cases where blkid fails to detect the UUID and the vol_id command
is available, then try using the vol_id command.
2009-04-24 17:46:05 -06:00
Curtis Gedak 8d024d86df Improve initialization logic for FS_Info class
Ensure that fs_info_cache is populated in any first instantiation in
a program, even for an instantiation such as:
    FS_Info A(false);
2009-04-24 17:18:36 -06:00
Curtis Gedak a05751ea95 Enhance to try udevadm if udevsettle is not found
Newer systems might not have udevsettle.  It has been replaced by
"udevadm settle".
Thanks to Lorenzo Cogotti aka Micia for this knowledge, and for a
proposed solution.
2009-04-24 11:12:29 -06:00
Curtis Gedak 7c2c771266 Minor cosmetic fix to reorder Reiser4 detection code
Now the Reiser4 detection code better matches the detection code for
other file systems.
2009-04-22 16:55:47 -06:00
Curtis Gedak 7695593d21 Improve crypt-luks detection (#578300)
Move crypt-luks detection prior to libparted file system detection.
If libparted file system detection is performed first, then encrypted
file systems such as ext3 will be incorrectly detected by libparted as
plain 'ext3' when in fact these file systems are encrypted.
2009-04-22 16:47:13 -06:00
Curtis Gedak 6e287d1911 Updated translation and code comments
svn path=/trunk/; revision=1110
2009-03-27 16:58:31 +00:00
Curtis Gedak bbff867267 Maintained label and uuid when resizing swap
svn path=/trunk/; revision=1105
2009-03-23 20:01:03 +00:00
Curtis Gedak 5b9183ca26 Fixed error when resizing an extended partition
svn path=/trunk/; revision=1104
2009-03-23 18:51:33 +00:00
Curtis Gedak 946b462757 Enhanced dmraid partition deletion
svn path=/trunk/; revision=1098
2009-03-16 22:59:50 +00:00
Curtis Gedak eda5bf16aa Improved swap and dmraid mountpoint detection
svn path=/trunk/; revision=1097
2009-03-16 22:55:24 +00:00
Curtis Gedak eb4ad0615d Added initial support for dmraid devices
svn path=/trunk/; revision=1093
2009-03-14 20:09:28 +00:00
Curtis Gedak 5865c92dc0 Added new class for dmraid support
svn path=/trunk/; revision=1092
2009-03-14 20:02:41 +00:00
Curtis Gedak dbf81bc417 Removed file_exists() method. Glib::file_test() already exists and is available for use.
svn path=/trunk/; revision=1091
2009-03-13 14:17:22 +00:00
Curtis Gedak 2390671112 Added tokenize() and file_exists() methods
svn path=/trunk/; revision=1090
2009-03-12 19:37:12 +00:00
Curtis Gedak f259327c82 Enabled type checking (const instead of #define)
svn path=/trunk/; revision=1080
2009-02-27 17:33:20 +00:00
Curtis Gedak 14363d96f4 Added recognition of /dev/mmcblk* SD/MMC devices
svn path=/trunk/; revision=1079
2009-02-25 20:42:44 +00:00
Curtis Gedak dc1ab54d8f Added detection of btrfs file system
svn path=/trunk/; revision=1075
2009-02-23 20:22:30 +00:00
Curtis Gedak 147562afff Fixed compiler warning regarding parentheses
svn path=/trunk/; revision=1072
2009-02-20 20:32:49 +00:00
Curtis Gedak 3ef0293876 Added detection of LUKS encrypted partitions
svn path=/trunk/; revision=1071
2009-02-18 16:19:49 +00:00
Curtis Gedak 42b63cc274 Enhanced move/resize functionality - Only move start sector if dialog space before value is changed.
svn path=/trunk/; revision=1070
2009-02-16 19:53:43 +00:00
Curtis Gedak ad078627d5 Added strict_start indicator
svn path=/trunk/; revision=1069
2009-02-16 19:37:27 +00:00
Curtis Gedak a1f9a0c191 Fixed crash on startup with Russian language
svn path=/trunk/; revision=1061
2009-02-09 17:58:42 +00:00
Curtis Gedak 0375182e3c Fixed partition type for linux-swap(new).
svn path=/trunk/; revision=1045
2009-01-28 17:48:40 +00:00
Curtis Gedak e77e1e3dbc Enhanced copy/paste checks when MBR/EBR involved.
svn path=/trunk/; revision=1040
2009-01-24 17:16:57 +00:00
Curtis Gedak 1723bfd723 Reworded caution message when applying operations
svn path=/trunk/; revision=1033
2009-01-19 20:38:22 +00:00
Curtis Gedak b971ec23ef Removed space between menu entry and periods
svn path=/trunk/; revision=1031
2009-01-13 18:14:20 +00:00
Curtis Gedak 6b44ab2a50 Removed redundant command flag options.
svn path=/trunk/; revision=1027
2009-01-07 21:42:05 +00:00
Curtis Gedak a52b989903 Actually commit changes from src/GParted_Core.cc, and remove src/Partition.o that was accidentally committed in it's place.
svn path=/trunk/; revision=1026
2009-01-07 04:40:16 +00:00
Curtis Gedak b16825dbb8 Redo update copyright year range, again
svn path=/trunk/; revision=1025
2009-01-06 23:28:43 +00:00
Curtis Gedak 060c8d87e3 Added two FS types to recognition as linux-swap.
The GIT version of libparted returns types of linux-swap(new) and linux-swap(old), previously only linux-swap was returned.

svn path=/trunk/; revision=1024
2009-01-06 22:37:08 +00:00
Curtis Gedak b54fdfc673 Redo update copyright year range. Previous change removed trailing whitespace, and hence made for way to many differences that make diff comparisons difficult.
svn path=/trunk/; revision=1023
2009-01-06 22:22:09 +00:00
Curtis Gedak f61713d56a Update copyright year range
svn path=/trunk/; revision=1022
2009-01-03 22:36:24 +00:00
Curtis Gedak 8a1fb683d0 Added e2fsprogs version required for ext4 support
svn path=/trunk/; revision=1019
2009-01-01 00:09:04 +00:00
Curtis Gedak 8a1760928f Fixed application crash when saving details and locale not set
svn path=/trunk/; revision=1012
2008-12-21 18:55:10 +00:00
Curtis Gedak 51b1720be3 Add flags to create journal and use extent option
svn path=/trunk/; revision=1008
2008-12-20 19:56:27 +00:00
Curtis Gedak 533eb1bc03 Added support for ext4 file systems
svn path=/trunk/; revision=1005
2008-12-18 22:13:43 +00:00
Curtis Gedak c020834508 Created 2 files to support ext4 operations.
Support for ext4 is planned for version 2.6.28 of the Linux kernel.

svn path=/trunk/; revision=1004
2008-12-18 22:07:06 +00:00
Curtis Gedak 5493f7ecc6 Added get_fs_type() method to retrieve the file system type
svn path=/trunk/; revision=1003
2008-12-18 21:36:57 +00:00
Curtis Gedak 7a3fa5a7dd Reduced FS_Info cache disk reads
svn path=/trunk/; revision=1001
2008-12-08 18:23:30 +00:00
Curtis Gedak 4ef71e5004 Added lvm2 physical volume detection
svn path=/trunk/; revision=1000
2008-12-07 18:43:35 +00:00
Curtis Gedak 165da328fb Made text by field labels selectable.
Useful for copy/paste of UUID or volume label.

svn path=/trunk/; revision=997
2008-12-03 18:52:20 +00:00
Curtis Gedak 4370af8779 Added text selectable parameter to mk_label()
svn path=/trunk/; revision=996
2008-12-03 18:18:04 +00:00
Curtis Gedak 504eb04ddc Roll back (remove) code to recognize /dev/mapper/* devices, because too many entries such as LVM partitions are wrongly added to the device list.
svn path=/trunk/; revision=989
2008-11-29 17:08:52 +00:00
Curtis Gedak ab50d0254f Moved common code into new get_device_entry() method
svn path=/trunk/; revision=988
2008-11-29 16:22:48 +00:00
Curtis Gedak 3836232cfb Prevent a copied partition from being pasted into an existing partition
svn path=/trunk/; revision=972
2008-11-19 23:44:30 +00:00
Curtis Gedak 1582dc3c64 Added language length conditional Undo display.
If translated language is relatively long, then split the "Resize/Move" toolbar button text into two lines, and do not display the "Undo" button.

svn path=/trunk/; revision=971
2008-11-19 20:17:32 +00:00
Curtis Gedak c4bc4430c7 Fixed incorrect spelling of filesystem and mountpoint
svn path=/trunk/; revision=970
2008-11-18 23:58:17 +00:00
Curtis Gedak 54611e93e4 Renamed button to improve clarity of meaning
svn path=/trunk/; revision=969
2008-11-18 23:28:53 +00:00
Curtis Gedak b6413cf9dd Updated translator comment
svn path=/trunk/; revision=968
2008-11-18 15:35:25 +00:00
Curtis Gedak e4c2ca33aa Improved File System Support dialog readability.
- Changed title Features to File System Support.
 - Renamed button Refresh to Rescan Support.
 - Created expander for legend and added narrative.
 - Removed columns detect and read.

svn path=/trunk/; revision=966
2008-11-14 20:18:46 +00:00
Curtis Gedak 506c062274 Created method get_filesystem_software()
svn path=/trunk/; revision=965
2008-11-14 19:45:14 +00:00
Curtis Gedak 75a03f157f Moved menu entry "Gparted->Show Features" to "View->File System Support"
svn path=/trunk/; revision=964
2008-11-14 19:41:14 +00:00
Curtis Gedak 5b8c16ba60 Improved read label performance with blkid cached results
svn path=/trunk/; revision=963
2008-11-13 20:06:18 +00:00
Curtis Gedak ed9b5afe36 Added read UUID read display
svn path=/trunk/; revision=961
2008-11-11 17:21:22 +00:00
Curtis Gedak 135e60141f Created class to read file system UUIDs
svn path=/trunk/; revision=960
2008-11-11 17:19:46 +00:00
Curtis Gedak 352641208a Added fat_compliant_label() method to limit volume labels to 11 characters.
Enforced fat compliant label for FAT16 and FAT32 file systems.

svn path=/trunk/; revision=959
2008-11-11 00:14:57 +00:00
Curtis Gedak 55952fe621 Renamed set_label and get_label methods to write_label and read_label respectively.
svn path=/trunk/; revision=957
2008-11-08 23:55:17 +00:00
Curtis Gedak 409f46b1d0 Added exclusion to the partition copy primary paste unallocated extended problem because primary partitions at the start of the disk do not experience this problem.
svn path=/trunk/; revision=954
2008-11-05 20:18:52 +00:00
Curtis Gedak 17292ad83b Fixed copy and paste partition too small problem
svn path=/trunk/; revision=953
2008-11-05 17:55:38 +00:00
Curtis Gedak a5839e5746 Fixed some spelling mistakes
svn path=/trunk/; revision=951
2008-11-04 22:16:06 +00:00
Curtis Gedak ecddf94ed1 Added label update for paste to existing partition
svn path=/trunk/; revision=950
2008-11-04 21:47:23 +00:00
Curtis Gedak bd0a37e3c5 Changed get_label() to use vol_id instead of debugfs.reiser4
svn path=/trunk/; revision=948
2008-10-31 21:50:07 +00:00
Curtis Gedak 5cb29070bf Changed thread status messages to be unique
svn path=/trunk/; revision=947
2008-10-31 17:15:01 +00:00
Curtis Gedak a8a035cbae Removed ellipses from status messages in set_devices()
svn path=/trunk/; revision=946
2008-10-30 19:41:51 +00:00
Curtis Gedak da9d41d459 Added translator comments
svn path=/trunk/; revision=945
2008-10-30 19:10:17 +00:00
Curtis Gedak f543db1541 Added thread status message update to pulsebar.
svn path=/trunk/; revision=944
2008-10-30 18:51:14 +00:00
Curtis Gedak 2331bd0763 Added set and get thread status message methods.
Added thread status message updates in set_devices().

svn path=/trunk/; revision=943
2008-10-30 18:50:38 +00:00
Curtis Gedak a622e6fefd Remove std:: prefix from llabs()
svn path=/trunk/; revision=942
2008-10-29 00:41:52 +00:00
Curtis Gedak 59f69f67a4 Removed warning when reading volume label from mounted reiser4 file system
svn path=/trunk/; revision=941
2008-10-28 19:34:25 +00:00
Curtis Gedak e9c44ad13e Increased robustness of get_lang() function
svn path=/trunk/; revision=940
2008-10-24 15:48:25 +00:00
Curtis Gedak fc66b6e284 Converted more words in detail log for translation
svn path=/trunk/; revision=937
2008-10-17 19:33:26 +00:00
Curtis Gedak 0f88eeaec5 Added call to get_lang() for (X)HTML lang tags
svn path=/trunk/; revision=936
2008-10-16 19:59:30 +00:00
Curtis Gedak 6a28b6810a Created function get_lang() to retrieve language locale
svn path=/trunk/; revision=935
2008-10-16 19:58:14 +00:00
Curtis Gedak 7c077aad2c Update years in copyright notice because changes were made to the file this year.
svn path=/trunk/; revision=934
2008-10-16 17:29:33 +00:00
Curtis Gedak 57bda0a93c Enhanced to recognize /dev/mapper/* devices.
The move away from libparted device recognition broke recognition of /dev/mapper/* devices.  Problem now fixed.
Thanks to Colin Watson for the patch.

svn path=/trunk/; revision=933
2008-10-15 15:51:24 +00:00
Curtis Gedak c3cdcb4dc5 Enhanced detail log to pass as XHTML.
Thanks to Markus Elfring for the small patch.

svn path=/trunk/; revision=931
2008-10-14 21:57:56 +00:00
Curtis Gedak 3418589a45 Add translator comments and fix spelling mistake
svn path=/trunk/; revision=914
2008-09-25 15:23:52 +00:00
Curtis Gedak 465e30c0b7 Enhanced detail log gparted_details.htm to pass HTML validator
svn path=/trunk/; revision=912
2008-09-24 23:42:04 +00:00
Curtis Gedak f5a80bc904 Enabled GParted to use themed app icon (Tango theme).
Thanks to Sebastion Kraft for designing the icons.
Thanks to Michael Monreal for the small patch to make use of themed app icon from hicolor.

svn path=/trunk/; revision=909
2008-09-22 22:41:49 +00:00
Curtis Gedak 29c343848a Added pattern recognition for HP RAID drives
svn path=/trunk/; revision=898
2008-09-12 20:57:12 +00:00
Curtis Gedak dbccd477cf Fixed display problem with percent complete messages
svn path=/trunk/; revision=895
2008-09-04 16:36:14 +00:00
Curtis Gedak a2b96b0094 Enhanced optimal block size copy algorithm to reduce time required to move or copy partitions
svn path=/trunk/; revision=880
2008-08-07 02:06:00 +00:00
Curtis Gedak 46ca7c74dc Added code hooks to prepare for GParted Manual
svn path=/trunk/; revision=876
2008-08-05 15:34:10 +00:00
Curtis Gedak 0a95638dc8 Rewrote get_label to use vol_id command for hfs file system
svn path=/trunk/; revision=872
2008-07-25 23:05:20 +00:00
Curtis Gedak b12fbfb1b2 Enhanced support for hfsplus file system
svn path=/trunk/; revision=871
2008-07-25 22:19:50 +00:00
Curtis Gedak 468980306a Fixed incorrectly recognized partition move/resize operations
svn path=/trunk/; revision=858
2008-06-18 18:30:19 +00:00
Curtis Gedak af8a021e89 Improved math for rounding starting sector to cylinder boundaries for logical partitions, and the first primary partition for MBR and GPT partition tables. This fixes a problem where a resize operation could turn into a move due to problems with the snap_to_cylinder function.
svn path=/trunk/; revision=857
2008-06-15 17:57:48 +00:00
Curtis Gedak b10f2325d7 Migrated Round to cylinders checkbutton from dialog partition new to dialog base partition so that it can be used by all dialogs that inherit from dialog base partion (e.g., New, Copy, and Resize/Move)
svn path=/trunk/; revision=856
2008-06-15 17:18:26 +00:00
Curtis Gedak 467e910e1d Fixed 3 grammatical errors by replacing periods with dashes
svn path=/trunk/; revision=854
2008-06-12 22:22:29 +00:00
Curtis Gedak 8f0d85a4a7 Changed wording of root privilege required warning
svn path=/trunk/; revision=853
2008-06-10 20:19:53 +00:00
Curtis Gedak e2c70a8bf0 Added proper plural handling for PO files
svn path=/trunk/; revision=852
2008-06-10 19:16:26 +00:00
Curtis Gedak 7bf6c422ff Added parse devices from /proc/partitions for "Scanning all devices..." code
svn path=/trunk/; revision=847
2008-05-08 16:25:43 +00:00
Curtis Gedak 16afc3bb75 Corrected math in partition creation/resize dialogs that prevented operations on partition sizes >= 1 TB
svn path=/trunk/; revision=828
2008-04-21 17:08:43 +00:00
Curtis Gedak 605e1f4cdc Fixed bug #324220 with the following changes:
- Removed gparted-disable-automount.fdi handling.
- Renamed gparted binary to gpartedbin to permit a calling script to be named gparted.
- Added new calling script gparted.in to permit using hal-lock to acuiqre device locks to prevent automounting while executing gpartedbin.
- Renamed gparted.desktop.in to gparted.desktop.in.in to permit parsing installdir.

svn path=/trunk/; revision=826
2008-04-21 15:22:00 +00:00
Curtis Gedak 1eb4e1aea5 Improved abilility to translate text
svn path=/trunk/; revision=825
2008-04-20 16:11:23 +00:00
Curtis Gedak 698b34258f Changed device menu Set Disklabel to Create Partition Table. Enhanced warning regarding all data will be erased from disk. Removed double confirmation of create partition table action.
svn path=/trunk/; revision=822
2008-04-18 15:28:30 +00:00
Curtis Gedak 2a91e472ae Updated to align with desktop specifications and Human Interface Guidelines
svn path=/trunk/; revision=817
2008-04-09 18:40:19 +00:00
Curtis Gedak 94917ed883 Increase label dialog box size, and enhance to read linux-swap label using different versions of vol_id
svn path=/trunk/; revision=813
2008-04-08 17:36:35 +00:00
Curtis Gedak ff2a6c00dd Changes post gparted-0.3.6 - code recreation from Source Forge
svn path=/trunk/; revision=811
2008-04-07 20:10:28 +00:00
Curtis Gedak 8d808c0b62 gparted-0.3.6 - code recreation from Source Forge
svn path=/trunk/; revision=810
2008-04-07 19:41:18 +00:00
Curtis Gedak 6c149ea1d9 gparted-0.3.5 - code recreation from Source Forge
svn path=/trunk/; revision=809
2008-04-07 15:26:19 +00:00
Bart Hakvoort 4e9d368102 added a check to see wether a device is 'real' or not. Thanks to
Francois Dupoux for the patch.

svn path=/trunk/; revision=764
2007-01-07 20:29:03 +00:00
Bart Hakvoort 8d2e7dd26d replaced 'long' with 'Sector' to prefent overflows with really large
* include/Device.h,
  include/Dialog_Base_Partition.h,
  src/Dialog_Base_Partition.cc: replaced 'long' with 'Sector' to
  prefent overflows with really large devices.
2006-12-08 13:14:05 +00:00
Bart Hakvoort 8336fcffea fixed 'Could not detect file system.' error with fat and hfs filesystem
* src/GParted_Core.cc: fixed 'Could not detect file system.' error
  with fat and hfs filesystem when performing a move to the left.
  (thanks to 'the Bogerds' for borrowing me an usbstick ;) )
2006-12-05 21:47:34 +00:00
Bart Hakvoort 070242562b fixed issue with overloaded ==
* src/Partition.cc: fixed issue with overloaded ==
2006-12-01 13:16:37 +00:00
Bart Hakvoort 7a413f6401 added libparted version string to details export.
* include/Dialog_Progress.h,
  include/GParted_Core.h,
  src/Dialog_Progress.cc,
  src/GParted_Core.cc,
  src/Win_GParted.cc: added libparted version string to details
  export.
2006-12-01 13:01:46 +00:00
Bart Hakvoort 5e848287e7 fixed bug with copying partition to a disk without disklabel. Also added
* src/Win_GParted.cc: fixed bug with copying partition to a disk
   without disklabel. Also added some FIXME's.
2006-11-26 23:24:39 +00:00
Bart Hakvoort ef09ce0b97 added 'check' operation. The functionality was already there, but it was
* include/Makefile.am,
  include/Operation.h,
  include/Win_GParted.h,
  src/GParted_Core.cc,
  src/Makefile.am,
  src/Win_GParted.cc,
  include/OperationCheck.h (new),
  src/OperationCheck.cc (new): added 'check' operation. The
  functionality was already there, but it was not possible yet to
  activate it from the gui.
2006-11-26 14:27:16 +00:00
Bart Hakvoort af19b0c993 fixed rare bug with modifying logical partitions. (#368199)
* src/GParted_Core.cc: fixed rare bug with modifying logical
  partitions. (#368199)
2006-11-24 21:35:58 +00:00
Bart Hakvoort a1d21e0f42 fixed issue with libparted detection (#330776) add FIXME
* configure.in: fixed issue with libparted detection (#330776)
* src/GParted_Core.cc: add FIXME
2006-11-23 19:20:07 +00:00
Bart Hakvoort c4dab9e55d gtk+-2.10 seems to return the last valid iterator if get_iter is executed
* src/Dialog_Progress.cc: gtk+-2.10 seems to return the last valid
  iterator if get_iter is executed with an invalid treepath. This is
  different from gtk+-2.8 and gave some problems in the
  operationdetails. I added a check to make it work in both
  situations.
2006-10-22 18:19:23 +00:00
Bart Hakvoort 2bd5fff210 only add mountpoints and paths if they exist don't show '<none>' if
* src/GParted_Core.cc: only add mountpoints and paths if they exist
* src/reiser4.cc: don't show '<none>' if volumelabel is empty
2006-10-01 13:45:55 +00:00
Bart Hakvoort ac82ee0453 Replaced std::abs with llabs (see #357691) added support for reading of
* src/GParted_Core: Replaced std::abs with llabs (see #357691)
* src/hfs.cc,
  src/xfs.cc: added support for reading of volumelabel
* src/reiserfs.cc: added Fixme
2006-10-01 13:08:57 +00:00
Bart Hakvoort 2a84381f7d added support for reading of volumelabel
* src/jfs.cc: added support for reading of volumelabel
2006-09-25 11:17:41 +00:00
Bart Hakvoort 452b90b095 added 'Read Label' info
* include/DialogFeatures.h,
  src/DialogFeatures.cc: added 'Read Label' info
2006-09-23 11:02:46 +00:00
Bart Hakvoort 7a8aabe3fd added support for reading of volumelabel
* src/reiser4.cc
  src/reiserfs.cc: added support for reading of volumelabel
2006-09-23 10:52:16 +00:00
Bart Hakvoort d106a71822 added support for reading of volumelabel
* src/ntfs.cc: added support for reading of volumelabel
2006-09-23 09:41:42 +00:00
Bart Hakvoort 0693e7996f added popupmenu to operationslist and did some (higrelated) cleanups
* added popupmenu to operationslist and did some (higrelated) cleanups
2006-09-17 13:23:47 +00:00
Bart Hakvoort 600e990a6e trivial cleanups
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc: trivial cleanups
2006-09-16 15:00:25 +00:00
Bart Hakvoort b84a88b557 higgiefied the dialog a bit (#353104)
* src/DialogFeatures.cc: higgiefied the dialog a bit (#353104)
2006-09-16 12:44:36 +00:00
Bart Hakvoort fc8014115e some small changes to make the GUI more consistent (#353140)
* include/Win_GParted.h,
  src/Win_GParted.cc: some small changes to make the GUI more
  consistent (#353140)
2006-09-16 11:27:05 +00:00
Bart Hakvoort 8963a49c42 fixed a couple of issues with reading of volumelabels (#338528)
* src/ext2.cc,
  src/ext3.cc: fixed a couple of issues with reading of volumelabels
  (#338528)
2006-09-14 16:42:02 +00:00
Bart Hakvoort 5e2b8f9837 finally fixed problem with 'disappearing' devicenodes by using udevsettle
* include/GParted_Core.h,
  src/GParted_Core.cc: finally fixed problem with 'disappearing'
  devicenodes by using udevsettle (#352744)
2006-09-13 19:35:17 +00:00
Bart Hakvoort e3b4a7316b added support for reading volumelabels. Atm we only read ext2/3, but the
* added support for reading volumelabels. Atm we only read ext2/3, but
  the infrastructure for adding the other filesystems is in place.
  It's simply a matter of finding the right commands and parsing the
  output. (see #338528 for more info)
2006-09-12 20:34:33 +00:00
Bart Hakvoort 403143fc9b show correct statusmessage when performing the readonly test.
* src/GParted_Core.cc: show correct statusmessage when performing the
  readonly test.
2006-09-11 09:17:31 +00:00
Bart Hakvoort 55851c6c46 reverted back to parted probing after i heard patches to fix some issues
* src/GParted_Core.cc: reverted back to parted probing after i heard
  patches to fix some issues with it are underway. (skipping of floppy
  and cdrom)
* src/reiser4.cc,
  src/reiserfs.cc: added --quiet to the fschecks to prevent the
  detailswindow from dying under the load. I should find a solution
  for that anyway.
2006-09-11 09:09:19 +00:00
Bart Hakvoort 50a32c3e14 display total sector info in copy_filesystem()
* src/GParted_Core.cc: display total sector info in copy_filesystem()
2006-09-10 20:48:07 +00:00
Bart Hakvoort 79672a5298 make sure progressfraction stays between 0.0 and 1.0 implemented rollback
* src/Dialog_Progress.cc: make sure progressfraction stays between 0.0
  and 1.0
* include/GParted_Core.h,
  src/GParted_Core.cc: implemented rollback in case of failed move of
  overlapping filesystems. Together with the readonly test moving
  should be quite save now :)
2006-09-10 12:17:33 +00:00
Bart Hakvoort 9010255c1c return true if filesystem was succesfully modified by dosfsck.
* src/fat16.cc,
  src/fat32.cc: return true if filesystem was succesfully modified by
  dosfsck.
2006-09-09 11:11:32 +00:00
Bart Hakvoort 7044410a08 Show number of warnings after all operations are completed. Also urge
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc: Show number of warnings after all operations
  are completed. Also urge people to save their details in case of
  error.
2006-09-09 10:58:48 +00:00
Bart Hakvoort 52eb5545ec trivial 'breakfast cleanups' :)
* include/Frame_Resizer_Base.h,
  src/Frame_Resizer_Base.cc,
  src/Frame_Resizer_Extended.cc,
  src/GParted_Core.cc: trivial 'breakfast cleanups' :)
2006-09-09 07:09:13 +00:00
Bart Hakvoort 4d895659d3 be a bit more verbose on errior in set_used_sectors()
* src/ext2.cc
  src/ext3.cc
  src/fat16.cc
  src/fat32.cc
  src/jfs.cc
  src/ntfs.cc
  src/reiser4.cc
  src/reiserfs.cc
  src/xfs.cc: be a bit more verbose on errior in set_used_sectors()
2006-09-08 20:51:31 +00:00
Bart Hakvoort 59fe25882a declared char * buf global, so it can be initialized in copy_blocks().
* include/GParted_Core.h,
  src/GParted_Core.cc: declared char * buf global, so it can be
  initialized in copy_blocks(). This is a lot more efficient than
  initializing it on every copy_block()
2006-09-08 09:33:02 +00:00
Bart Hakvoort c5853ab734 skip resize/move of partition/filesystem if there are no changes.
* src/GParted_Core.cc: skip resize/move of partition/filesystem if
  there are no changes.
2006-09-08 07:57:23 +00:00
Bart Hakvoort f7ec213481 added test_overlap() perform a readonly testrun before the actual move if
* include/Partition.h,
  src/Partition.cc: added test_overlap()
* include/GParted_Core.h,
  src/GParted_Core.cc: perform a readonly testrun before the actual
  move if destination overlaps source.
2006-09-07 20:31:05 +00:00
Bart Hakvoort bd4d110fdb parse /proc/partitions to find devices instead of using
* include/GParted_Core.h,
  src/GParted_Core.cc: parse /proc/partitions to find devices instead
  of using ped_device_probe_all()
2006-09-07 18:40:15 +00:00
Bart Hakvoort 7eb2a9cbb1 update ntfsbootsector after first sector has changed. This is necessary to
* include/GParted_Core.h,
  src/GParted_Core.cc: update ntfsbootsector after first sector has
  changed. This is necessary to let windows boot correctly afterwards.
* src/ntfs.cc: added FIXME
2006-09-04 19:18:44 +00:00
Bart Hakvoort 1cd71ef2f2 simplified algorithm to get remaining time
* src/GParted_Core.cc: simplified algorithm to get remaining time
2006-09-03 20:52:43 +00:00
Bart Hakvoort 9cbfca1c6e check if dest >= src before starting a copy
* include/GParted_Core.h,
  src/GParted_Core.cc: check if dest >= src before starting a copy
2006-09-03 18:24:09 +00:00
Bart Hakvoort e0c354880a fixed an issue with copying to unallocated space. It works fine now, but
* src/GParted_Core.cc: fixed an issue with copying to unallocated
  space. It works fine now, but this entire copy operation breaks
  consistency a bit. I should take a look at that when i have some
  more time.
2006-09-03 18:01:55 +00:00
Bart Hakvoort 0aa49f3e98 added progressfeedback to Delete()
* src/GParted_Core.cc: added progressfeedback to Delete()
2006-09-03 14:32:11 +00:00
Bart Hakvoort 95f563d13c more fixes related to moving..
* include/GParted_Core.h,
  src/GParted_Core.cc: more fixes related to moving..
2006-09-03 14:24:05 +00:00
Bart Hakvoort 587a03758d small menu changes
* src/Win_GParted.cc: small menu changes
2006-09-01 18:01:16 +00:00