Re: statfs returns wrong values for 250Gb FAT fs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Horms <[email protected]> writes:

>>     printf("f_bsize = %ld blocks\nf_blocks = %ld blocks\nf_bfree = %ld blocks\nused = %ld blocks\n",
>>            stats.f_bsize, stats.f_blocks, stats.f_bfree, used);
>> 
>>     kib = stats.f_bsize / 1024;
>>     printf("total = %ld KiB\nfree = %ld KiB\nused = %ld KiB\n",
>>            kib * stats.f_blocks,
>>            kib * stats.f_bfree,
>>            kib * used);

Filesystem may have the corrupted free-cluster value.

I couldn't reproduce the problem on 2.6.12-rc4.

Could you try a recently dosfsck (dosfstools-2.11 or later)?
Also could you send the output of above program?

Thanks.
-- 
OGAWA Hirofumi <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux