Re: vfat32 Free Cluster Count Update

From: OGAWA Hirofumi
Date: Tue Feb 19 2008 - 21:09:45 EST


Valdis.Kletnieks@xxxxxx writes:

> (Or is 'df' simply a known way to force execution of a code path that ends up
> fixing the counts as a side-effect?)

Yes. df calls statfs(2), and FAT counts free clusters for ->f_ffree for
it. Then, the free clusters count is fixed as a side-effect.
--
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/