by adestefan · 15y ago · 0 comments
Changes in behavior
Remove all FS-related (file system-related) sub-commands; these commands
are no longer recognized because they were all dependent on parted "knowing"
too much about file system: mkpartfs, mkfs, cp, move, check, resize.
This change removes not just the user interface bits, but also the
library functions and nearly all of the underlying FS-munging code.
The code embedded in Parted by which it knew about those file systems
was so old, unmaintainable and buggy that while seemingly drastic,
this change is like removing a gangrenous toe.(disclaimer: I wrote the HFS/HFS+ code.)
Removing code because it's "old" or unmaintainable but which relied on features require seems like a questionable decision to me.
Gparted isn't a game. It's a critical filesystem utility. Code that isn't maintainable is by definition vulnerable in terms of both security and functionality.
Functionality.. eh. Having used gparted extensively and not having a single problem among hundreds of filesystem resizes, I've got to thank the maintainers for finally forcing me to get off my ass and purchase a commercial solution that can be trusted to not have critical functionality yanked.
So thanks for that.
> "Having used gparted extensively and not having a single problem among hundreds of filesystem resizes..."
Cool, just make sure you stick with your legacy hardware. Tell you what, go look at the gparted code, and tell me how it'll handle an HFS on my new 4k sector disks. If you can either reassure me or suggest a patch, I might change my mind.
Edit: I certainly don't mean this to insult any of the work of gparted's devs. I just picked HFS as an example. The fact that gparted works so well is a tribute to those developers (looking at you xilun0).
It's a concern because you may use parted/gparted on an untrusted virtual machine or a USB key. You don't want a malformed filesystem controlled by someone you don't mutually trust to subvert a tool running as root on your host.
libvirt[1] and libguestfs[2] specifically take steps to reduce the exposure. Parted did not, but it's now somewhat more secure for getting rid of features that are better done by another means.
Not anymore it isn't.
Edit: sorry, not vfs. I was thing vfat, but that's not really relevant either.