GNOME Bugzilla – Bug 668281
minimal file-system resize API? (FAT and HFS* only)
Last modified: 2012-04-09 20:12:59 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.
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.
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.
The enhancements for this bug report have been included in GParted 0.12.1 released on April 9, 2012.