Skip to contentSkip to conversation

mke2fs odd number:

parisc-linux Patrick Caulfield 5 participants 6 messages Jun 17, 2002

lore
Share & tools
lore
#0 lore raw

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.

I really hope it doesn't want to check the filesystem that often :)

patrick

#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Mon, Jun 17, 2002 at 02:27:11PM +0200, [email protected] wrote:

Quoting Patrick Caulfield <[email protected]>:

Quoted 5 lines

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.

Quoted 7 lines

Also notice this last Friday (but no time to report.

Quoted 3 lines

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.

Signature · 1 line
patrick
#3 lore raw
Quoted 9 lines · Patrick Caulfield

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));
}

hehe.. passing a double to a varargs ... known bug ;-( I think it's fixed with gcc-3.1.

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
In reply to Patrick Caulfield

Quoting Patrick Caulfield <[email protected]>:

Quoted 5 lines

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.

Quoted 3 lines

I really hope it doesn't want to check the filesystem that often :)

Dono, if tune2fs more relevant:

palinux:~# tune2fs -l /dev/sde1
tune2fs 1.27 (8-Mar-2002)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          9ef6bb62-df16-47c1-84ad-7a9ec6dc71a3
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal filetype sparse_super
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              262144
Block count:              523915
Reserved block count:     26195
Free blocks:              93589
Free inodes:              258235
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         16384
Inode blocks per group:   512
Last mount time:          Mon Jun 17 14:33:21 2002
Last write time:          Mon Jun 17 14:33:32 2002
Mount count:              4
Maximum mount count:      37
Last checked:             Fri Jun 14 19:09:41 2002
Check interval:           15552000 (6 months)
Next check after:         Wed Dec 11 18:09:41 2002
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:		  128
Journal UUID:             <none>
Journal inode:            8
Journal device:	          0x0000
First orphan inode:       0

Joel

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

#4 lore raw
In reply to Patrick Caulfield
Quoted 8 lines · Patrick Caulfield
Quoted 7 lines · On Mon, Jun 17, 2002 at 02:27:11PM +0200, [email protected] wrote:

Quoting Patrick Caulfield <[email protected]>:

Quoted 5 lines

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.

Hi,
I got to a similar weird number of days, just a few hours ago, when I did a "sudo tune2fs -j /dev/sda3". Its so ridiculous I just didn't care, ext3 works fine :). I rebooted my gecko (712/60) 2 times since then, no fsck occured so far.

some info on my machine/setup :

uname -a :
Linux hitomi 2.4.18-32 #1 Sat Mar 30 18:26:22 MST 2002 parisc unknown

dumpe2fs /dev/sda3 :
...

Filesystem features:      has_journal filetype needs_recovery sparse_super
Filesystem state:         clean
...
Last mount time:          Mon Jun 17 01:36:18 2002
Last write time:          Mon Jun 17 01:46:57 2002
Mount count:              10
Maximum mount count:      29
Last checked:             Sat Apr  6 08:32:16 2002
Check interval:           15552000 (6 months)
Next check after:         Thu Oct  3 08:32:16 2002

...

versions of tune2fs and mke2fs : 1.27 (8-Mar-2002)

Ciao,
martin der hettich

Signature · 3 lines
Interpunktion und Orthographie dieser Email ist frei erfunden.
Eine Uebereinstimmung mit aktuellen oder ehemaligen Regeln
waere rein zufaellig und ist nicht beabsichtigt.
#5 lore raw
In reply to Patrick Caulfield

In reference to a message from Patrick Caulfield, dated Jun 17:

Quoted 6 lines

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.

I really hope it doesn't want to check the filesystem that often :)

yes, i've seen that many times in the past. my guess it's one of the not-yet-fixed floating-point/varargs problems, but i haven't really looked.

randolph

Signature · 3 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/