Commit Graph

905 Commits

Author SHA1 Message Date
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
Bart Hakvoort 9d18b3c9ae fix errormessage
* src/GParted_Core.cc: fix errormessage
2006-08-31 20:27:10 +00:00
Bart Hakvoort 34389f38e7 tried to fix a couple of errors with moving to the right with overlap
* include/GParted_Core.h,
  src/GParted_Core.cc: tried to fix a couple of errors with moving to
  the right with overlap (thanks Larry for hunting ;) )
  Although everything seems to work well i'm still not sure if
  everything is 100% ok.
  I guess everything could use some more testing, which is exactly
  what i plan to do this weekend :)
2006-08-31 20:19:38 +00:00
Bart Hakvoort 5b504abedb usability stuff + trivial fix (#353109, #353111)
* src/Win_GParted.cc: usability stuff + trivial fix (#353109, #353111)
2006-08-28 20:11:58 +00:00
Bart Hakvoort 36dc2e4cf2 added legend (#353104) added FIXME
* include/DialogFeatures.h,
  src/DialogFeatures.cc: added legend (#353104)
* src/fat32.cc: added FIXME
2006-08-27 19:29:24 +00:00
Bart Hakvoort 9d956594d6 replaced ntfscluster with ntfsresize (see #350789)
* src/ntfs.cc: replaced ntfscluster with ntfsresize (see #350789)
2006-08-27 12:05:05 +00:00
Bart Hakvoort d23ca9d8ea ^) restructured resize_move() to be more robust. This will hopefully
* happy 24th birthday Johannes! :^)
* include/GParted_Core.h,
  src/GParted_Core.cc: restructured resize_move() to be more robust.
  This will hopefully tackle a couple of issues which came up during
  the public testing.
2006-08-27 08:41:25 +00:00
Bart Hakvoort 5060b1a07c improvements to probe and copy stuff.
* include/GParted_Core.h,
  src/GParted_Core.cc: improvements to probe and copy stuff.
2006-08-26 14:37:06 +00:00
Bart Hakvoort 79c41f7be5 use Glib::timer instead of std::time stuff for the probing, this is more
* src/GParted_Core.cc: use Glib::timer instead of std::time stuff for
  the probing, this is more accurate since the resolution is much
  higher (microseconds instead of seconds)
2006-08-24 20:50:27 +00:00
Bart Hakvoort 5631232ee1 catch markup exceptions cleanups
2006-08-24 Bart Hakvoort <hakvoort@cvs.gnome.org>

* src/OperationDetail.cc: catch markup exceptions
* src/Utils.cc: cleanups
2006-08-24 19:29:28 +00:00
Bart Hakvoort 8abc8bf2e5 added format_time() keep track of elapsed time between STATUS_EXECUTE and
* include/Utils.h,
  src/Utils.cc: added format_time()
* include/OperationDetail.h,
  src/OperationDetail.cc: keep track of elapsed time between
  STATUS_EXECUTE and STATUS_[ERROR|SUCCES]
* include/Dialog_Progress.h,
  src/Dialog_Progress.cc: show elapsed time in the details per (sub)
  process
* src/GParted_Core.cc: use Utils::format_time()
2006-08-22 19:29:59 +00:00
Bart Hakvoort 82e6f6b132 added nice -n 19, so that all extensive filesystemoperations will be
* src/FileSystem.cc: added nice -n 19, so that all extensive
  filesystemoperations will be 'nice' :)
* src/OperationDetail.cc,
  src/Utils.cc: cleanups
2006-08-21 19:59:48 +00:00
Bart Hakvoort faddc9d1fc enabled set_do_overwrite_confirmation() for the detailsfile. raised gtkmm
* src/Dialog_Progress.cc: enabled set_do_overwrite_confirmation() for
  the detailsfile.
* configure.in: raised gtkmm dependency from 2.6 to 2.8
2006-08-20 18:13:40 +00:00
Bart Hakvoort ab8e1b586d replaced hardcoded menu and toolbar indices with variables. This is far
* include/Win_GParted.h,
  src/Win_GParted.cc: replaced hardcoded menu and toolbar indices with
  variables. This is far more flexible and reliable.
2006-08-20 16:51:18 +00:00
Bart Hakvoort 649f26be9f fixed some issues with combi move+shrink on fat* and hfs* filesystems.
* include/GParted_Core.h,
  src/GParted_Core.cc: fixed some issues with combi move+shrink on
  fat* and hfs* filesystems.
  Also call wait_for_node() from commit() if 'node' was provided.
2006-08-20 11:47:17 +00:00
Bart Hakvoort 1234b248d5 due to some restrictions it was no longer possible to shrink swap
* src/Dialog_Partition_Resize_Move.cc: due to some restrictions it was
  no longer possible to shrink swap filesystems. fixed.
2006-08-20 10:07:25 +00:00
Bart Hakvoort 8e0880e5ea small fix with moving of linux-swap (which seems pretty useless to me :^)
* src/linux_swap.cc: small fix with moving of linux-swap (which seems
  pretty useless to me :^) )
2006-08-20 09:49:45 +00:00
Bart Hakvoort 889ab1232f changed progressfeedbackhandling a bit. Because this affected
* changed progressfeedbackhandling a bit. Because this affected
  OperationDetail i had to make changes in almost every file.
2006-08-20 09:33:54 +00:00
Bart Hakvoort a6b853ad8f added 'time remaining' to progressfeedback.
* src/GParted_Core.cc: added 'time remaining' to progressfeedback.
2006-08-16 20:30:26 +00:00
Bart Hakvoort 8393f5ef6a created set_progress_info() (i actually planned on adding some time
* include/GParted_Core.h,
  src/GParted_Core.cc: created set_progress_info() (i actually planned
  on adding some time remaining stuff, but xfiles is waiting ;) )
2006-08-15 18:33:56 +00:00
Bart Hakvoort 5c66a79669 fixed small issue with lp_partition ->geom stuff sometimes losing values
* src/GParted_Core.cc: fixed small issue with lp_partition ->geom
  stuff sometimes losing values when going out of scope.
2006-08-13 14:13:33 +00:00
Bart Hakvoort 9576eb981e couple of cleanups in operationhandling and initalizing of p_filesystem.
* include/GParted_Core.h,
  src/GParted_Core.cc: couple of cleanups in operationhandling and
  initalizing of p_filesystem.
2006-08-13 13:31:57 +00:00
Bart Hakvoort ac53a7875f did some work on disabling of automounting of removable drives. The
* include/GParted_Core.h,
  src/GParted_Core.cc: did some work on disabling of automounting of
  removable drives. The current method is not entirely to my liking
  but it seems to work.
2006-08-09 19:20:20 +00:00
Bart Hakvoort 4c2e8b469c fixed small issue with shrinking of a new (virtual) partition
* src/Dialog_Partition_Resize_Move.cc: fixed small issue with
  shrinking of a new (virtual) partition
2006-08-08 19:08:36 +00:00
Bart Hakvoort b539a10ddc implemented some stuff to find a good blocksize to use for copy/move.
* implemented some stuff to find a good blocksize to use for
  copy/move. Actually i'm not really happy with it, because probing
  seems suboptimal, but it's better than nothing. As soon as i have
  some time i should do some research on the subject to find a better
  solution.
2006-08-08 19:04:29 +00:00
Bart Hakvoort b42982b884 construct operations in the activate*() functions instead of in
* include/Win_GParted.h,
  src/Win_GParted.cc: construct operations in the activate*()
  functions instead of in Add_Operation(). This approach allows for
  more customization of operations.
2006-08-01 20:19:17 +00:00
Bart Hakvoort b0d6109ed0 made set_partition_type() a bit more verbose and did some cleanups.
* src/GParted_Core.cc: made set_partition_type() a bit more verbose
  and did some cleanups.
2006-08-01 13:18:22 +00:00
Bart Hakvoort 89a42f3f07 added get_sector() use new Partition::get_sector()
* include/Partition.h,
  src/Partition.cc: added get_sector()
* src/GParted_Core.cc: use new Partition::get_sector()
2006-08-01 12:47:03 +00:00
Bart Hakvoort 07418ae4c8 fixed some issues when manipulating a just copied partition. (see also
* src/Dialog_Partition_Copy.cc,
  src/GParted_Core.cc,
  src/Win_GParted.cc: fixed some issues when manipulating a just
  copied partition. (see also #349513)
2006-08-01 12:16:22 +00:00
Bart Hakvoort 677a21f50a improved errorhandling a bit. At the initialscan we store errors/warnings
* improved errorhandling a bit. At the initialscan we store
  errors/warnings now in a list per partition and show the in the
  partitioninfo dialog.
  While executing an operation we collect all libparted exceptions in
  a list and attach this list to the operationdetails when everything
  is done.
2006-07-30 15:13:41 +00:00
Bart Hakvoort e033136a6f renamed some enums
* renamed some enums
2006-07-29 15:20:32 +00:00
Bart Hakvoort faad1b6be4 fixed a couple of small errors in the copy algorithm (which is closely
* src/GParted_Core.cc: fixed a couple of small errors in the
  copy algorithm (which is closely related to moving)
2006-07-29 14:42:01 +00:00
Bart Hakvoort 157a1b9fee fixed a couple of small errors in the move algorithm
* src/GParted_Core.cc: fixed a couple of small errors in the
  move algorithm
2006-07-29 12:03:25 +00:00
Bart Hakvoort d52b0286c9 fixed Pango markup problems in operationdetails restructured
* fixed Pango markup problems in operationdetails
* restructured OperationDetail
* renamed some enums for improved readability of the source
2006-07-29 08:27:28 +00:00
Bart Hakvoort d663c3c277 removed cylindersize buffering during resize from the filesystems. It is
* include/FileSystem.h,
  include/GParted_Core.h,
  src/FileSystem.cc,
  src/GParted_Core.cc,
  src/ext2.cc,
  src/ext3.cc,
  src/ntfs.cc,
  src/reiserfs.cc: removed cylindersize buffering during resize from
  the filesystems. It is not needed anymore now we calculate the new
  position before calling this.
  Also added some extra progressfeedback in the core
2006-07-23 18:43:15 +00:00
Bart Hakvoort 8059d5f6d9 more work on moving/resizing sequence
* include/GParted_Core.h,
  src/GParted_Core.cc: more work on moving/resizing sequence
2006-07-23 16:51:38 +00:00
Bart Hakvoort 069662588e fixed issue with resize/move of extended partitions
* src/GParted_Core.cc: fixed issue with resize/move of extended
  partitions
2006-07-23 10:33:41 +00:00
Bart Hakvoort f0d4890a92 added FIXME: decoupled libparted partition and filesystemresizing. This
* src/Win_GParted.cc: added FIXME:
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/fat32.cc: decoupled libparted partition and filesystemresizing.
  This resulted in a much more consistent core. This also affected
  several other aspects of resizing/moving in a positive way.
2006-07-23 09:58:45 +00:00
Bart Hakvoort 59dad3ec04 FIXME business only snap to cylinder if operation is != DELETE or FORMAT
* src/GParted_Core.cc: FIXME business
* src/Win_GParted.cc: only snap to cylinder if operation is != DELETE
  or FORMAT
2006-07-20 20:03:54 +00:00
Bart Hakvoort dc883ee652 perform some checks before adding a new operation to the list. made
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/Win_GParted.cc: perform some checks before adding a new
  operation to the list.
* src/Partition.cc: made get_length() a bit safer
2006-07-20 19:14:44 +00:00
Bart Hakvoort 7f265770eb added FIXME removed FIXME
* src/Dialog_Progress.cc: added FIXME
* src/GParted_Core.cc: removed FIXME
2006-07-19 21:04:49 +00:00
Bart Hakvoort f7722d2bbf show warning in progressfeedback if a certain action is n/a. Of course we
* include/Dialog_Progress.h,
  include/Operation.h,
  src/Dialog_Progress.cc,
  src/GParted_Core.cc: show warning in progressfeedback if a certain
  action is n/a. Of course we only allow these actions if the results
  are non-lethal.
2006-07-19 20:54:08 +00:00
Bart Hakvoort 9e32399727 enabled move support for all the filesystems. Also made some small changes
* enabled move support for all the filesystems. Also made some small
  changes to the logic which determines if copy is allowed.
2006-07-19 20:12:46 +00:00
Bart Hakvoort a11ddd7496 added some progressfeedback
* src/GParted_Core.cc: added some progressfeedback
2006-07-19 19:02:18 +00:00
Bart Hakvoort cf49d07996 fixed potential crasher in read algorithm (#347914)
* src/xfs.cc: fixed potential crasher in read algorithm (#347914)
2006-07-19 17:26:42 +00:00
Bart Hakvoort cf59b71bf4 worked a bit on progressfeedback.. added FIXME
* include/GParted_Core.h,
  src/GParted_Core.cc: worked a bit on progressfeedback..
* include/Partition.h: added FIXME
2006-07-18 21:10:10 +00:00
Bart Hakvoort 8c5326e8b6 implemented snap to cylinder algorithm. Although the algorithm is very
* src/Win_GParted.cc,
  include/GParted_Core.h,
  src/GParted_Core.cc: implemented snap to cylinder algorithm.
  Although the algorithm is very simple, it seems to work perfectly.
  However, some additional testing is required.
2006-07-17 20:54:41 +00:00
Bart Hakvoort 357e2d84bc lots of fixes and improvements (mostly move-related)
* lots of fixes and improvements (mostly move-related)
2006-07-11 18:13:27 +00:00
Bart Hakvoort 935ceb756e some more work on the order of operations when performing a move (made use
* src/GParted_Core.cc: some more work on the order of operations when
  performing a move (made use of maximize_filesystem() ).
2006-06-21 19:46:29 +00:00
Bart Hakvoort 90e1af5bfe finalized the order of operations when performing a move.
* src/GParted_Core.cc: finalized the order of operations when
  performing a move.
2006-06-20 20:17:32 +00:00
Bart Hakvoort a150c58852 use new copy_block() in copy_filesystem()
* src/GParted_Core.cc: use new copy_block() in copy_filesystem()
2006-06-18 19:56:48 +00:00
Bart Hakvoort b223e829ab renamed resize_partition to resize_move_partition to better reflect its
* include/GParted_Core.h,
  src/GParted_Core.cc: renamed resize_partition to
  resize_move_partition to better reflect its functionality.
2006-06-18 19:38:29 +00:00
Bart Hakvoort 8fecbac1d0 did more work on moving
* include/GParted_Core.h,
  src/GParted_Core.cc: did more work on moving
2006-06-18 19:27:52 +00:00
Bart Hakvoort afa792bf0c some more cleanups, should be finished now :)
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/Win_GParted.cc: some more cleanups, should be finished now :)
2006-06-18 08:50:17 +00:00
Bart Hakvoort 32dc8481c8 restructured the core a bit, over time it had become very messy.
* restructured the core a bit, over time it had become very messy.
2006-06-17 20:52:25 +00:00
Bart Hakvoort 2d7fb5700b more cleanups in the core and the fs'es (these changelogs are getting
* more cleanups in the core and the fs'es (these changelogs are
  getting boring ;^) )
2006-06-17 16:38:15 +00:00
Bart Hakvoort 08245cd08c cleanups in the core and the fs'es (resize)
* cleanups in the core and the fs'es (resize)
2006-06-17 14:44:17 +00:00
Bart Hakvoort 20d5650188 cleanups in the core and the fs'es (check/repair)
* cleanups in the core and the fs'es (check/repair)
2006-06-17 09:55:32 +00:00
Bart Hakvoort 3094aeaabe use new create_filesystem() in format()
* src/GParted_Core.cc: use new create_filesystem() in format()
2006-06-17 09:03:11 +00:00
Bart Hakvoort 682283ce89 cleanups in the core and the fs'es (create)
* cleanups in the core and the fs'es (create)
2006-06-17 08:56:24 +00:00
Bart Hakvoort 65f0a16eb2 removed 'EXPERIMENTAL' from move-message to prevent incorrect
* src/GParted_Core.cc: removed 'EXPERIMENTAL' from move-message to
  prevent incorrect translations.
2006-06-04 13:41:06 +00:00
Bart Hakvoort b92ac20232 added movesupport, atm in experimental state and needs lots of cleaning.
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/ext2.cc: added movesupport, atm in experimental state and needs
  lots of cleaning. only enabled for ext2, but should work for all
  filesystems.
* src/DialogFeatures.cc: added alternating rowcolours (see #342682)
2006-05-31 20:03:49 +00:00
Bart Hakvoort 7ff0609962 made blocksize settable by the user.
* include/Dialog_Partition_Copy.h,
  include/GParted_Core.h,
  include/OperationCopy.h,
  include/Win_GParted.h,
  src/Dialog_Partition_Copy.cc,
  src/GParted_Core.cc,
  src/OperationCopy.cc,
  src/Win_GParted.cc: made blocksize settable by the user.
2006-05-27 19:51:55 +00:00
Bart Hakvoort a45ade9563 fixed typo (#343015)
* src/GParted_Core.cc: fixed typo (#343015)
2006-05-26 16:09:11 +00:00
Bart Hakvoort 7bb7e8a84f Use ped_device_read and ped_device_write instead of 'dd' to copy
* Use ped_device_read and ped_device_write instead of 'dd' to copy
  filesystems.
  Modified progressdetails to provide more detailed feedback about a
  process.
  Basicly these were all changes to the infrastructure to make the
  incorporation of the 'move-code' a bit easier.

  ( sorry, not in the mood to list all affected files ;)
2006-05-23 21:17:34 +00:00
Bart Hakvoort 939a94c0ba updated copyrightinfo
* src/Win_GParted.cc: updated copyrightinfo
2006-05-13 18:18:52 +00:00
Bart Hakvoort 9756799d47 hide dialogs after setting new disklabel
* src/Win_GParted.cc: hide dialogs after setting new disklabel
2006-04-15 12:42:57 +00:00
Bart Hakvoort 2c3ce61275 creating a new partition on a BSD partitiontable failed, causing a
* src/GParted_Core.cc: creating a new partition on a BSD partitiontable
  failed, causing a segfault when setting the partitiontype. fixed.
2006-04-15 12:28:42 +00:00
Bart Hakvoort 3ff28fcc35 only allow growing of copy if there is grow support for the filesystem.
* src/Dialog_Partition_Copy.cc: only allow growing of copy if there is
  grow support for the filesystem.
* src/reiser4.cc: added support for copying reiser4 filesystems
2006-04-05 15:34:06 +00:00
Bart Hakvoort 655a83d4c1 modified warning added support for shrinking and copying hfs+ filesystems
* src/GParted_Core.cc: modified warning
* src/hfsplus.cc: added support for shrinking and copying hfs+
  filesystems
2006-04-05 14:26:30 +00:00
Bart Hakvoort d61583599b added support for shrinking hfs filesystems
* src/Dialog_Partition_Resize_Move.cc,
  src/GParted_Core.cc,
  src/Win_GParted.cc,
  src/hfs.cc: added support for shrinking hfs filesystems
2006-04-05 13:47:53 +00:00
Bart Hakvoort 17e088553d disabled resizing of this dialog renamed 'Filesystems' to 'Features' in
* src/DialogManageFlags.cc: disabled resizing of this dialog
* include/DialogFeatures.h,
  include/Makefile.am,
  include/Win_GParted.h,
  src/DialogFeatures.cc,
  src/Makefile.am,
  src/Win_GParted.cc: renamed 'Filesystems' to 'Features' in the
  featuredialog to better reflect the actual functionality
* include/Dialog_Filesystems.h,
  src/Dialog_Filesystems.cc: removed
2006-04-05 09:33:04 +00:00
Bart Hakvoort f6c7a77859 remove non-existent devices from disabled_automount_devices at every
* src/GParted_Core.cc: remove non-existent devices from
  disabled_automount_devices at every rescan.
2006-04-04 10:00:55 +00:00
Bart Hakvoort 28343faa78 store libparted error in Partition::error if reading the used/unused space
* src/GParted_Core.cc: store libparted error in Partition::error if
  reading the used/unused space failed.
2006-04-04 08:59:14 +00:00
Bart Hakvoort 7f187d644c added column 'check' use halproperty 'storage.automount_enabled_hint'
* include/Dialog_Filesystems.h,
  src/Dialog_Filesystems.cc: added column 'check'
* include/GParted_Core.h,
  src/GParted_Core.cc: use halproperty
  'storage.automount_enabled_hint' instead of pmount to disable
  automounting.
2006-04-03 18:48:53 +00:00
Bart Hakvoort 3a918a337b improved disabling of automounting. It's still somewhat crude, but right
* include/GParted_Core.h,
  src/GParted_Core.cc: improved disabling of automounting. It's still
  somewhat crude, but right now it's ok for some semi-public testing.
  I'll do some cleanups tomorrow morning.
* src/Dialog_Progress.cc: added FIXME
2006-04-02 21:26:27 +00:00
Bart Hakvoort 26da768ee0 an initial solution for the automount problem. I still need to add
* include/GParted_Core.h,
  src/GParted_Core.cc: an initial solution for the automount problem.
  I still need to add something to prevent just created partitions from
  getting mounted. (see #324220 for more info)
2006-04-02 18:03:37 +00:00
Bart Hakvoort e933473cfa added ufs filesystemclass
* include/Dialog_Filesystems.h,
  include/GParted_Core.h,
  include/Makefile.am,
  include/ufs.h,
  src/GParted_Core.cc,
  src/Makefile.am,
  src/ufs.cc: added ufs filesystemclass
2006-04-02 14:35:21 +00:00
Bart Hakvoort 321f0a3dd1 override Gtk::Window::on_show instead of connecting to signal_show() added
* include/Win_GParted.h,
  src/Win_GParted.cc: override Gtk::Window::on_show instead of
  connecting to signal_show()
* include/Dialog_Filesystems.h,
  src/Dialog_Filesystems.cc: added columns 'detect' and 'read'
2006-04-02 14:04:44 +00:00
Bart Hakvoort dcf31ca083 added convenience function cleanups
* include/Utils.h,
  src/Utils.cc: added convenience function
* src/DialogManageFlags.cc,
  src/Win_GParted.cc: cleanups
2006-04-02 13:04:24 +00:00
Bart Hakvoort 540152345e improved behaviour of flagmanagementdialog.
* include/DialogManageFlags.h,
  src/DialogManageFlags.cc,
  src/Win_GParted.cc: improved behaviour of flagmanagementdialog.
2006-04-02 11:18:34 +00:00
Bart Hakvoort e5d12906db fixed another issue in apply_to_visual(), this time with resizing/moveing
* src/OperationResizeMove.cc: fixed another issue in
  apply_to_visual(), this time with resizing/moveing the extended
  partition.
2006-04-01 14:36:16 +00:00
Bart Hakvoort 57a84b119a trivial cleanups fixed a glitch in apply_to_visual() accept returnvalues
* src/GParted_Core.cc: trivial cleanups
* src/OperationResizeMove.cc: fixed a glitch in apply_to_visual()
* src/ext2.cc,
  src/ext3.cc: accept returnvalues 0, 1 and 2 instead of 0 and 1
2006-03-31 18:58:58 +00:00
Bart Hakvoort a044f0f88b let create_empty_partition() return a boolean instead of an integer.
* include/GParted_Core.h,
  src/GParted_Core.cc: let create_empty_partition() return a boolean
  instead of an integer.
2006-03-31 13:10:32 +00:00
Bart Hakvoort f5ea37e310 add 'flag management' (#330453)
* include/DialogManageFlags.h,
  include/GParted_Core.h,
  include/Makefile.am,
  include/Utils.h,
  include/Win_GParted.h,
  src/DialogManageFlags.cc,
  src/GParted_Core.cc,
  src/Makefile.am,
  src/Win_GParted.cc: add 'flag management' (#330453)
2006-03-31 10:49:27 +00:00
Bart Hakvoort 70bfe578d4 added set_used() and operator!= it's now possible to copy from partition
* include/Partition.h,
  src/Partition.cc: added set_used() and operator!=
* src/Dialog_Partition_Copy.cc,
  src/GParted_Core.cc,
  src/OperationCopy.cc,
  src/Win_GParted.cc: it's now possible to copy from partition to
  partition. (before this it was only possible to copy to unallocated
  space)
2006-03-29 19:21:42 +00:00
Bart Hakvoort 91c4ca2b45 fixed another minor memleak (yeah i'm playing with valgrind ;) )
* include/GParted_Core.h,
  src/GParted_Core.cc: fixed another minor memleak (yeah i'm playing
  with valgrind ;) )
2006-03-28 19:01:20 +00:00
Bart Hakvoort 2e1880ee66 it appeared i had to free the result of ped_partition_get_path in order to
* src/GParted_Core.cc: it appeared i had to free the result of
  ped_partition_get_path in order to prevent a memleak.
2006-03-28 18:46:08 +00:00
Bart Hakvoort 40cbb6d4c4 name a copied partition 'copy of <source>'.
* src/OperationCopy.cc: name a copied partition 'copy of <source>'.
2006-03-28 17:38:06 +00:00
Bart Hakvoort 6187ae7584 removed testdata
* src/GParted_Core.cc: removed testdata
2006-03-28 12:54:31 +00:00
Bart Hakvoort f96c8dea05 trivial cleanups
* trivial cleanups
2006-03-28 12:40:29 +00:00
Bart Hakvoort 9ccc70cb59 made icon behaviour more intelligent small improvement in
* include/TreeView_Detail.h,
  src/TreeView_Detail.cc: made icon behaviour more intelligent
* src/GParted_Core.cc: small improvement in open_device_and_disk()
2006-03-27 19:21:37 +00:00
Bart Hakvoort 511a628939 made some small adjustments to devicechecks.
* src/GParted_Core.cc: made some small adjustments to devicechecks.
2006-03-26 19:45:23 +00:00
Bart Hakvoort e98f0934c4 sort devices alphabetically by default.
* src/GParted_Core.cc: sort devices alphabetically by default.
2006-03-26 09:16:13 +00:00
Bart Hakvoort b52bfbc308 prevented a possible segfault at startup. Thanks to LarryT for finding
* src/DrawingAreaVisualDisk.cc: prevented a possible segfault at
  startup. Thanks to LarryT for finding this.
2006-03-25 18:14:33 +00:00
Bart Hakvoort 99cebc81d3 lots of cleanups in operationhandling. This resulted in cleaner/less code
* lots of cleanups in operationhandling. This resulted in cleaner/less
  code and the fixing of some longstanding issues.
2006-03-24 19:08:41 +00:00
Bart Hakvoort c3c5f189ed fixed a few issues with selecting/activating partitions. improved support
* include/DrawingAreaVisualDisk.h,
  src/DrawingAreaVisualDisk.cc: fixed a few issues with
  selecting/activating partitions.
* include/Utils.h,
  src/Utils.cc,
  src/Dialog_Disklabel.cc,
  src/Dialog_Partition_Info.cc (mk_label): improved support for
  aligment.
* src/Win_GParted.cc: fixed a small alignmentissue in the devices
  submenu.
2006-03-20 10:12:55 +00:00
Bart Hakvoort ad9f2126e7 fixed issues with copying (see also #335004) cleanups + added FIXME added
* include/GParted_Core.h,
  src/GParted_Core.cc,
  src/Win_GParted.cc,
  src/ext2.cc,
  src/ext3.cc,
  src/fat16.cc,
  src/fat32.cc,
  src/jfs.cc,
  src/ntfs.cc,
  src/reiserfs.cc: fixed issues with copying (see also #335004)
* include/Operation.h,
  src/Operation.cc: cleanups + added FIXME
* include/Partition.h,
  src/Partition.cc: added clear_mountpoints()
* src/DrawingAreaVisualDisk.cc: added FIXME
2006-03-19 15:30:20 +00:00
Bart Hakvoort 4e57356c34 another change to highlighting of selected partition. deal properly with
* include/DrawingAreaVisualDisk.h,
  src/DrawingAreaVisualDisk.cc: another change to highlighting of
  selected partition.
* include/Partition.h,
  src/Win_GParted.cc: deal properly with just formatted partitions
* src/Operation.cc: added FIXME
2006-03-18 21:38:19 +00:00
Bart Hakvoort 85e9ddbf48 moved comment to correct position fixed issues with mountpoints containing
* src/GParted_Core.cc: moved comment to correct position
* src/Win_GParted.cc: fixed issues with mountpoints containing
  underscores and/or spaces.
2006-03-17 10:07:49 +00:00
Bart Hakvoort 166078d297 fixed visual feedback while mounting a partition
* src/Win_GParted.cc: fixed visual feedback while mounting a partition
2006-03-16 17:18:03 +00:00