Re: statfs returns wrong values for 250Gb FAT fs

From: OGAWA Hirofumi
Date: Tue May 10 2005 - 07:02:33 EST


Hi,

Horms <horms@xxxxxxxxxx> 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 <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/