Treat any inode with bad content as unknown (i.e., ask if it should

be cleared).

Sponsored by: Netflix
This commit is contained in:
Kirk McKusick 2019-07-20 21:39:32 +00:00
parent 3bd88193c6
commit 967d9fa3bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350187

View File

@ -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 &&