Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs Remove a dead data structure.
details: https://anonhg.NetBSD.org/src/rev/959daa88ce4c
branches: trunk
changeset: 340816:959daa88ce4c
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Oct 03 08:29:06 2015 +0000
description:
Remove a dead data structure.
diffstat:
sbin/fsck_lfs/extern.h | 3 +--
sbin/fsck_lfs/fsck.h | 35 +----------------------------------
2 files changed, 2 insertions(+), 36 deletions(-)
diffs (73 lines):
diff -r d75465670214 -r 959daa88ce4c sbin/fsck_lfs/extern.h
--- a/sbin/fsck_lfs/extern.h Sat Oct 03 08:28:56 2015 +0000
+++ b/sbin/fsck_lfs/extern.h Sat Oct 03 08:29:06 2015 +0000
@@ -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 @@
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);
diff -r d75465670214 -r 959daa88ce4c sbin/fsck_lfs/fsck.h
--- a/sbin/fsck_lfs/fsck.h Sat Oct 03 08:28:56 2015 +0000
+++ b/sbin/fsck_lfs/fsck.h Sat Oct 03 08:29:06 2015 +0000
@@ -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
};
Home |
Main Index |
Thread Index |
Old Index