summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/fsck.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2013-07-30 22:57:12 +0000
committerscottl <scottl@FreeBSD.org>2013-07-30 22:57:12 +0000
commitd13c0062851638685f23ad2a414ca3b0e71ba340 (patch)
treed9647feaaaa44c41d2ce4450a5c48b8d34e7edba /sbin/fsck_ffs/fsck.h
parentaac8087bead638965fd8df72ec05b082185fa599 (diff)
downloadFreeBSD-src-d13c0062851638685f23ad2a414ca3b0e71ba340.zip
FreeBSD-src-d13c0062851638685f23ad2a414ca3b0e71ba340.tar.gz
Add a 'surrender' mode to fsck_ffs. With the -S flag, once hard read errors
are encountered, the fsck will stop instead of wasting time chewing through possibly other errors. Obtained from: Netflix MFC after: 3 days
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r--sbin/fsck_ffs/fsck.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h
index 45b242c..632d454 100644
--- a/sbin/fsck_ffs/fsck.h
+++ b/sbin/fsck_ffs/fsck.h
@@ -324,6 +324,7 @@ char skipclean; /* skip clean file systems if preening */
int fsmodified; /* 1 => write done to file system */
int fsreadfd; /* file descriptor for reading file system */
int fswritefd; /* file descriptor for writing file system */
+int surrender; /* Give up if reads fail */
ufs2_daddr_t maxfsblock; /* number of blocks in the file system */
char *blockmap; /* ptr to primary blk allocation map */
OpenPOWER on IntegriCloud