Subject: Re: fsck_ffs -c 2 doesn't seem to work :-(
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 08/12/2003 13:20:39
On Tue, Aug 12, 2003 at 03:59:36PM +1000, George Michaelson wrote:
> 
> I've been single user, and done:
> 
> # fsck_ffs -c 2 /
> 
> but afterward, I find:
> 
> cylgrp  static  inodes  4.2/4.3BSD      fslevel 0       softdep enabled

I suspect that dumpfs is lying!
It also reports:
    location65536   magic   19540119        time    Tue Aug 12 12:46:10 2003
    id      [ 3f38d382 7be9c1bd ]
    cylgrp  static  inodes  4.2/4.3BSD      fslevel 0       softdep disabled
for what is actually a UFS2 filesystem - at least it has the ufs2 magic number.

It looks as though fslevel is always 0, it has:
	printold = (afs.fs_magic == FS_UFS1_MAGIC &&
                    (afs.fs_old_flags & FS_FLAGS_UPDATED) == 0);
	...
	i = 0; /* fslevel*/
	if (printold && afs.fs_old_postblformat != FS_42POSTBLFMT) {
		i++;
		/* other tests that might increase i */
		...
	}

maybe that should read:
	if (!printold && ...

	David

-- 
David Laight: david@l8s.co.uk