svn commit: r350187 - head/sbin/fsck_ffs

Kirk McKusick mckusick at FreeBSD.org
Sat Jul 20 21:39:33 UTC 2019


Author: mckusick
Date: Sat Jul 20 21:39:32 2019
New Revision: 350187
URL: https://svnweb.freebsd.org/changeset/base/350187

Log:
  Treat any inode with bad content as unknown (i.e., ask if it should
  be cleared).
  
  Sponsored by: Netflix

Modified:
  head/sbin/fsck_ffs/pass1.c

Modified: head/sbin/fsck_ffs/pass1.c
==============================================================================
--- head/sbin/fsck_ffs/pass1.c	Sat Jul 20 21:20:40 2019	(r350186)
+++ head/sbin/fsck_ffs/pass1.c	Sat Jul 20 21:39:32 2019	(r350187)
@@ -251,7 +251,7 @@ checkinode(ino_t inumber, struct inodesc *idesc, int r
 	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 &&


More information about the svn-src-head mailing list