Module Name: src
Committed By: dholland
Date: Sat Oct 3 08:29:06 UTC 2015
Modified Files:
src/sbin/fsck_lfs: extern.h fsck.h
Log Message:
Remove a dead data structure.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sbin/fsck_lfs/extern.h
cvs rdiff -u -r1.23 -r1.24 src/sbin/fsck_lfs/fsck.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fsck_lfs/extern.h
diff -u src/sbin/fsck_lfs/extern.h:1.14 src/sbin/fsck_lfs/extern.h:1.15
--- src/sbin/fsck_lfs/extern.h:1.14 Mon Sep 21 01:24:23 2015
+++ src/sbin/fsck_lfs/extern.h Sat Oct 3 08:29:06 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.14 2015/09/21 01:24:23 dholland Exp $ */
+/* $NetBSD: extern.h,v 1.15 2015/10/03 08:29:06 dholland Exp $ */
/*
* Copyright (c) 1994 James A. Jegers
@@ -43,7 +43,6 @@ int dofix(struct inodesc *, const char *
void fileerror(ino_t, ino_t, const char *);
int findino(struct inodesc *);
int findname(struct inodesc *);
-void flush(int, struct ubufarea *);
void freeblk(daddr_t, long);
void freeino(ino_t);
void freeinodebuf(void);
Index: src/sbin/fsck_lfs/fsck.h
diff -u src/sbin/fsck_lfs/fsck.h:1.23 src/sbin/fsck_lfs/fsck.h:1.24
--- src/sbin/fsck_lfs/fsck.h:1.23 Mon Sep 21 01:24:23 2015
+++ src/sbin/fsck_lfs/fsck.h Sat Oct 3 08:29:06 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: fsck.h,v 1.23 2015/09/21 01:24:23 dholland Exp $ */
+/* $NetBSD: fsck.h,v 1.24 2015/10/03 08:29:06 dholland Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -69,8 +69,6 @@
#define MAXDUP 10 /* limit on dup blks (per inode) */
#define MAXBAD 10 /* limit on bad blks (per inode) */
-#define MAXBUFSPACE 40*1024 /* maximum space to allocate to buffers */
-#define INOBUFSIZE 56*1024 /* size of buffer to read inodes in pass1 */
#ifndef BUFSIZ
#define BUFSIZ 1024
@@ -85,37 +83,6 @@
#define EEXIT 8 /* Standard error exit */
-/*
- * buffer cache structure.
- */
-struct ubufarea {
- struct ubufarea *b_next; /* free list queue */
- struct ubufarea *b_prev; /* free list queue */
- daddr_t b_bno;
- int b_size;
- int b_errs;
- int b_flags;
- union {
- char *b_buf; /* buffer space */
- /* XXX ondisk32 */
- int32_t *b_indir; /* indirect block */
- struct lfs *b_fs; /* super block */
- struct cg *b_cg;/* cylinder group */
- struct lfs32_dinode *b_dinode32; /* inode block */
- struct lfs64_dinode *b_dinode64; /* inode block */
- } b_un;
- char b_dirty;
-};
-#define B_INUSE 1
-
-#define MINBUFS 5 /* minimum number of buffers required */
-
-#define dirty(bp) (bp)->b_dirty = 1
-#define initbarea(bp) \
- (bp)->b_dirty = 0; \
- (bp)->b_bno = (daddr_t)-1; \
- (bp)->b_flags = 0;
-
enum fixstate {
DONTKNOW, NOFIX, FIX, IGNORE
};