Subject: Re: ffs compatibility added, fsck may complain
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 01/14/2004 14:08:33
On Wed, Jan 14, 2004 at 12:27:54AM -0500, Francois Briere wrote:
> On Wed, Jan 14, 2004 at 12:53:42PM +0900, Jun-ichiro itojun Hagino wrote:
> 
> > 	i see the following on dmesg (for / and /usr partition),
> > 	however, i do not see "VALUES IN SUPER BLOCK ..." message on
> > 	fsck_ffs -n -f.  fsck_ffs -b 32 -c 4 had no effect.
> > 	how can i suppress the message?  do i have to start over from scratch
> > 	(i.e. newfs)?
> 
> I had the same problem but after having carried out an update of the system
> i started again fsck_ffs to update the super block  and all is well.
> 
> probably, rebuilding fsck and fsck_ffs can solve the problem.

I saw the same as Itojun, then
cd /usr/src/sbin/fsck
make dependall
cd ../fsck_ffs
make dependall
...
#   compile  fsck_ffs/pass5.o
/usr/src/obj.i386/tooldir.NetBSD-1.6ZG-i386/bin/i386--netbsdelf-gcc -O2 -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror   -I/usr/src/sbin/fsck  -nostdinc -isystem /usr/include  -c    /usr/src/sbin/fsck_ffs/pass5.c
/usr/src/sbin/fsck_ffs/pass5.c: In function `pass5':
/usr/src/sbin/fsck_ffs/pass5.c:303: warning: implicit declaration of function `old_cg_blktot'
/usr/src/sbin/fsck_ffs/pass5.c:303: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:353: warning: implicit declaration of function `old_cbtocylno'
/usr/src/sbin/fsck_ffs/pass5.c:354: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:355: warning: implicit declaration of function `old_cg_blks'
/usr/src/sbin/fsck_ffs/pass5.c:355: warning: implicit declaration of function `old_cbtorpos'
/usr/src/sbin/fsck_ffs/pass5.c:355: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:413: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:414: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:417: error: subscripted value is neither array nor pointer
/usr/src/sbin/fsck_ffs/pass5.c:418: error: subscripted value is neither array nor pointer
*** Error code 1

cvs of 13 Jan 18:43 GMT, i386.

Cheers,

Patrick