Web lists-archives.com

Re: Partition information as text file?


Richard Owlett wrote:
> Gparted displays the desired data in the GUI, but I see no way to get that
> information as a text stream.

Well, it seems to inquire the info by filesystem specific means.
The method is obviously named set_used_sectors(). See e.g.


There are several source files from btrfs.cc to xfs.cc. One could harvest
hints about which man pages to read in order to create some program which
knows the inquiry commands for all filesystems which Gparted knows.
(I dimly remember to have seen such inquiry/management program names
in replies to this thread.)

Have a nice day :)