diff options
author | 1997-02-11 06:59:25 +0000 | |
---|---|---|
committer | 1997-02-11 06:59:25 +0000 | |
commit | 4c0ff72dcad0159bc0540c5de7b6a9592196f6db (patch) | |
tree | 99c34e95f1acf240827d03e281c675f51ed73154 | |
parent | Handle tickets the same way as login(1) does; remove when session ends (diff) | |
download | wireguard-openbsd-4c0ff72dcad0159bc0540c5de7b6a9592196f6db.tar.xz wireguard-openbsd-4c0ff72dcad0159bc0540c5de7b6a9592196f6db.zip |
We now has fs_id in struct fs.
-rw-r--r-- | sbin/fsirand/fsirand.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 <Todd.Miller@courtesan.com> @@ -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 <sys/types.h> @@ -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)); |