aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass1.c
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2019-07-20 21:39:32 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2019-07-20 21:39:32 +0000
commit967d9fa3bbe63ed46bcac837bd2feeff204d30f9 (patch)
tree6c28ff965766d206e5fab7726c6ebefd39718b3c /sbin/fsck_ffs/pass1.c
parent3bd88193c62d9fc35c2999cd04d9a45d2c6e1880 (diff)
downloadsrc-967d9fa3bbe63ed46bcac837bd2feeff204d30f9.tar.gz
src-967d9fa3bbe63ed46bcac837bd2feeff204d30f9.zip
Treat any inode with bad content as unknown (i.e., ask if it should
be cleared). Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=350187
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
-rw-r--r--sbin/fsck_ffs/pass1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c
index 000ae8a797cc..0e9a232c76fb 100644
--- a/sbin/fsck_ffs/pass1.c
+++ b/sbin/fsck_ffs/pass1.c
@@ -251,7 +251,7 @@ checkinode(ino_t inumber, struct inodesc *idesc, int rebuildcg)
int j, ret, offset;
if ((dp = getnextinode(inumber, rebuildcg)) == NULL)
- return (0);
+ goto unknown;
mode = DIP(dp, di_mode) & IFMT;
if (mode == 0) {
if ((sblock.fs_magic == FS_UFS1_MAGIC &&