After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668281 - minimal file-system resize API? (FAT and HFS* only)
minimal file-system resize API? (FAT and HFS* only)
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2012-01-19 16:15 UTC by Jim Meyering
Modified: 2012-04-09 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jim Meyering 2012-01-19 16:15:14 UTC
Hello,

What is the minimal set of file-system resizing functions you would
like me to provide via the parted package?

I am making it so the parted package provides a new library,
libparted-fs-resize.a (restoring code I deleted not long ago),
which so far provides only these functions:

  ped_file_system_close
  ped_file_system_get_resize_constraint
  ped_file_system_open
  ped_file_system_resize

If there are other functions that you require,
please let me know soon.
Comment 1 Curtis Gedak 2012-01-19 21:24:33 UTC
Thank you for asking this question Jim.

The four functions listed are definitely the main ones that are needed by GParted to perform resizing for FAT16, FAT32, HFS, and HFS+ file systems.

GParted relies on libparted to determine the minimum size for file systems such as HFS and HFS+.

Would the ped_file_system_get_resize_constraint() function still return the min_size constraint as shown in the method GParted_Core::LP_set_used_sectors()?

See http://git.gnome.org/browse/gparted/tree/src/GParted_Core.cc#n1452


When you have something ready for testing then just let me know and I will see if everything still works.
Comment 2 Curtis Gedak 2012-03-03 19:07:02 UTC
On March 2nd, 2012, FAT16/FAT32 and HFS/HFS+ file system resizing capabilities were restored with a new library in the parted-3.1 release.

See:
parted-3.1 released [stable]
http://lists.gnu.org/archive/html/bug-parted/2012-03/msg00001.html

GParted has been enhanced to take advantage of this new library and file system resizing capabilities.  This enhancement will be included in the next GParted release.

The relevant git commit can be viewed at the following link:

Enable new fs resize library available with parted-3.1 (#668281)
http://git.gnome.org/browse/gparted/commit/?id=0fda1d011d79c2e0e4d884e03947f2e4e8cec986

A big thank you goes to Jim Meyering for restoring these file system resizing capabilities in the parted-3.1 release.
Comment 3 Curtis Gedak 2012-04-09 20:12:59 UTC
The enhancements for this bug report have been included in GParted 0.12.1 released on April 9, 2012.