[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic question about libparted
From: |
Andrew Clausen |
Subject: |
Re: basic question about libparted |
Date: |
Thu, 8 Jul 2004 23:41:51 +1000 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
On Thu, Jul 08, 2004 at 11:38:19AM +0200, B.Hakvoort wrote:
> How do i find the used and free space on a disk/partition?
> Say i have a partition of 5 GB and want to know how much of this 5 GB is
> used and is free. how do i calculate this?
>
> is it a solution to loop trough all sectors and check them?
statfs? FIBMAP ioctl?
Or, ped_file_system_get_resize_constraint(fs)->min_size. This help?
Cheers,
Andrew