[parisc-linux] mke2fs odd number:
Patrick Caulfield
patrick@tykepenguin.com
Mon, 17 Jun 2002 14:02:11 +0100
On Mon, Jun 17, 2002 at 02:27:11PM +0200, joel.soete@freebel.net wrote:
> Quoting Patrick Caulfield <patrick@tykepenguin.com>:
>
> > Does anyone else get with from mke2fs:
> >
> > This filesystem will be automatically checked every 22 mounts or
> > 1.23076e-312 days, whichever comes first. Use tune2fs -c or -i to
> > override.
>
> Also notice this last Friday (but no time to report.
>
> >
> > I really hope it doesn't want to check the filesystem that often :)
> >
> Dono, if tune2fs more relevant:
> Check interval: 15552000 (6 months)
That's right (and it's what I have). Looking at the source I can't quite figure
out why the display is wrong:
void print_check_message(ext2_filsys fs)
{
printf(_("This filesystem will be automatically "
"checked every %d mounts or\n"
"%g days, whichever comes first. "
"Use tune2fs -c or -i to override.\n"),
fs->super->s_max_mnt_count,
(double)fs->super->s_checkinterval / (3600 * 24));
}
I have verified that fs->super->s_checkinterval is still 15552000, but if I
write a program that prints out 15552000/(3600 * 24) then I get 180 as expected!
I'm not at all worried about it (though I have raised a Debian bug report) I
just wondered if it's just my machine.
--
patrick