xfs_repair: release corrupt directory node buffer
PATCH 1/1 xfs_repair: release corrupt directory node buffer
If repair encounters a dir node block that fails checksum or verification, free the buffer before the directory gets rebuilt.
--- repair/dir2.c | 1 + 1 file changed, 1 insertion(+)
repair/dir2.c +1 -0
@@ -200,6 +200,7 @@ _("bad dir magic number 0x%x in inode %" PRIu64 " bno = %u\n"), }/* corrupt node; rebuild the dir. */ if (bp->b_error == -EFSBADCRC || bp->b_error == -EFSCORRUPTED ) { +libxfs_putbuf (bp);do_warn (_ ("corrupt tree block %u for directory inode %" PRIu64"\n" ), bno, da_cursor->ino);
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Darrick J. Wong
If repair encounters a dir node block that fails checksum or verification, free the buffer before the directory gets rebuilt.
Reported-by Eric Sandeen <[email protected]>Signed-off-by Darrick J. Wong <[email protected]>
Quoted 17 lines
--- repair/dir2.c | 1 + 1 file changed, 1 insertion(+)repair/dir2.c +1
-0@@ -200,6 +200,7 @@ _("bad dir magic number 0x%x in inode %" PRIu64 " bno = %u\n"), }/* corrupt node; rebuild the dir. */ if (bp->b_error == -EFSBADCRC || bp->b_error == -EFSCORRUPTED ) { +libxfs_putbuf (bp);do_warn (_ ("corrupt tree block %u for directory inode %" PRIu64"\n" ), bno, da_cursor->ino);
Quoted 5 lines
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 9 lines · Darrick J. Wong
If repair encounters a dir node block that fails checksum or verification, free the buffer before the directory gets rebuilt.
Reported-by Eric Sandeen <[email protected]>Signed-off-by Darrick J. Wong <[email protected]>--- repair/dir2.c | 1 + 1 file changed, 1 insertion(+)
Makes sense.
Quoted 17 lines
repair/dir2.c +1
-0@@ -200,6 +200,7 @@ _("bad dir magic number 0x%x in inode %" PRIu64 " bno = %u\n"), }/* corrupt node; rebuild the dir. */ if (bp->b_error == -EFSBADCRC || bp->b_error == -EFSCORRUPTED ) { +libxfs_putbuf (bp);do_warn (_ ("corrupt tree block %u for directory inode %" PRIu64"\n" ), bno, da_cursor->ino);_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Signature · 6 lines
Carlos _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs