diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-19 16:22:19 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-19 16:22:19 +0000 |
commit | e6b97ebf903a720407574154e9d255be05af6a78 (patch) | |
tree | f73bf1383c88151e3e7918ff10a5893bf89ee82d /sbin/fsck_ffs/setup.c | |
parent | 41d17e79c339aa7b59c1b00e6d2603868d348f2e (diff) |
Cleanup dirpref and synhronize superblock with freebsd.
From FreeBSD with little changes.
art@ ok.
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r-- | sbin/fsck_ffs/setup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c index 1852b6fdbf5..1918820f7f3 100644 --- a/sbin/fsck_ffs/setup.c +++ b/sbin/fsck_ffs/setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setup.c,v 1.10 2001/04/13 02:39:05 gluk Exp $ */ +/* $OpenBSD: setup.c,v 1.11 2001/04/19 16:22:17 gluk Exp $ */ /* $NetBSD: setup.c,v 1.27 1996/09/27 22:45:19 christos Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.5 (Berkeley) 11/23/94"; #else -static char rcsid[] = "$OpenBSD: setup.c,v 1.10 2001/04/13 02:39:05 gluk Exp $"; +static char rcsid[] = "$OpenBSD: setup.c,v 1.11 2001/04/19 16:22:17 gluk Exp $"; #endif #endif /* not lint */ @@ -457,13 +457,15 @@ readsb(listerr) altsblock.fs_rotdelay = sblock.fs_rotdelay; altsblock.fs_maxbpg = sblock.fs_maxbpg; memcpy(altsblock.fs_ocsp, sblock.fs_ocsp, sizeof sblock.fs_ocsp); + altsblock.fs_contigdirs = sblock.fs_contigdirs; altsblock.fs_csp = sblock.fs_csp; altsblock.fs_maxcluster = sblock.fs_maxcluster; - altsblock.fs_contigdirs = sblock.fs_contigdirs; altsblock.fs_avgfilesize = sblock.fs_avgfilesize; altsblock.fs_avgfpdir = sblock.fs_avgfpdir; memcpy(altsblock.fs_fsmnt, sblock.fs_fsmnt, sizeof sblock.fs_fsmnt); + memcpy(altsblock.fs_snapinum, sblock.fs_snapinum, + sizeof sblock.fs_snapinum); memcpy(altsblock.fs_sparecon, sblock.fs_sparecon, sizeof sblock.fs_sparecon); /* |