Treat any inode with bad content as unknown (i.e., ask if it should
be cleared). Sponsored by: Netflix
This commit is contained in:
parent
3bd88193c6
commit
967d9fa3bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350187
@ -251,7 +251,7 @@ checkinode(ino_t inumber, struct inodesc *idesc, int rebuildcg)
|
|||||||
int j, ret, offset;
|
int j, ret, offset;
|
||||||
|
|
||||||
if ((dp = getnextinode(inumber, rebuildcg)) == NULL)
|
if ((dp = getnextinode(inumber, rebuildcg)) == NULL)
|
||||||
return (0);
|
goto unknown;
|
||||||
mode = DIP(dp, di_mode) & IFMT;
|
mode = DIP(dp, di_mode) & IFMT;
|
||||||
if (mode == 0) {
|
if (mode == 0) {
|
||||||
if ((sblock.fs_magic == FS_UFS1_MAGIC &&
|
if ((sblock.fs_magic == FS_UFS1_MAGIC &&
|
||||||
|
Loading…
Reference in New Issue
Block a user