Re: Partition information as text file?
- Date: Tue, 29 Jan 2019 17:16:12 +0100
- From: "Thomas Schmitt" <scdbackup@xxxxxxx>
- Subject: 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 :)