From: millert Date: Tue, 11 Feb 1997 06:59:25 +0000 (+0000) Subject: We now has fs_id in struct fs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4c0ff72dcad0159bc0540c5de7b6a9592196f6db;p=openbsd We now has fs_id in struct fs. --- diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c index d89b871ba20..c300a5066ee 100644 --- a/sbin/fsirand/fsirand.c +++ b/sbin/fsirand/fsirand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsirand.c,v 1.6 1997/02/09 06:41:08 millert Exp $ */ +/* $OpenBSD: fsirand.c,v 1.7 1997/02/11 06:59:25 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: fsirand.c,v 1.6 1997/02/09 06:41:08 millert Exp $"; +static char rcsid[] = "$OpenBSD: fsirand.c,v 1.7 1997/02/11 06:59:25 millert Exp $"; #endif /* not lint */ #include @@ -192,7 +192,6 @@ fsirand(device) oldibufsize = ibufsize; } -#ifdef HAVE_FS_ID if (printonly && (sblock->fs_id[0] || sblock->fs_id[1])) { if (sblock->fs_inodefmt >= FS_44INODEFMT && sblock->fs_id[0]) (void)printf("%s was randomized on %s", devpath, @@ -218,11 +217,9 @@ fsirand(device) return (1); } } -#endif /* For each cylinder group, randomize inodes and update backup sblock */ for (cg = 0, inumber = 0; cg < sblock->fs_ncg; cg++) { -#ifdef HAVE_FS_ID /* Update superblock if appropriate */ if ((sblock->fs_inodefmt >= FS_44INODEFMT) && !printonly) { dblk = fsbtodb(sblock, cgsblock(sblock, cg)); @@ -236,7 +233,6 @@ fsirand(device) return (1); } } -#endif /* Read in inodes, then print or randomize generation nums */ dblk = fsbtodb(sblock, ino_to_fsba(sblock, inumber));