From: M0E L. <m0...@gm...> - 2007-08-14 20:28:44
|
I would say mount the go the messy way... * Mount the partitions * Get your values * un-mount the partitions * move on... On 8/14/07, Eug=E9ne Suter <ea...@gm...> wrote: > Well, a little update on whats happening with the drive partitioning: > I'm trying to get the installer to check for available space before > installing anything (since this was one of the flaws that the text instal= ler > has: it will crash and burn if space runs out). > > This is easy enough to accomplish for the full-auto partitioning mode, si= nce > the installer creates the partitions, it knows how much space there is > available. > But for the "free-space mode" its a different story: the unused space val= ues > have to be obtained some other way, and from reading parted's documentati= on > and asking on the #parted channel, libparted does not provide any way to > know the amount of unused space on an *unmounted* partition. > > One possible way would be to mount ALL the partitions found and parse df, > but thats a somewhat messy approach. > The best would be to get the amount of unused space when the partitions a= re > still unmounted (so these values can be displayed to the user before > selecting a partition). > > I've opened a thread on the GParted forum about this > (http://gparted-forum.surf4.info/viewtopic.php?id=3D862), > since they have obviously found a way to do this. > Any ideas on solving this problem some other way? > > Cheers, > > Eug=E9ne > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Vectorlinux-devel mailing list > Vec...@li... > https://lists.sourceforge.net/lists/listinfo/vectorlinux-devel > > |