]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix erroneous missing freetab entry dir2 diagnosis from xfs_repair. Thanks to Masano...
authorNathan Scott <nathans@sgi.com>
Sat, 17 Dec 2005 14:07:23 +0000 (14:07 +0000)
committerNathan Scott <nathans@sgi.com>
Sat, 17 Dec 2005 14:07:23 +0000 (14:07 +0000)
Merge of master-melb:xfs-cmds:24860a by kenmcd.

repair/phase6.c

index a0904053d7ab89594079536bca588f85c37a4f9b..6acc148d21cc677cd3639fa931ac27b639f33869 100644 (file)
@@ -2262,7 +2262,8 @@ longform_dir2_check_node(
                libxfs_da_brelse(NULL, bp);
        }
        for (i = 0; i < freetab->nents; i++) {
-               if (freetab->ents[i].s == 0) {
+               if ((freetab->ents[i].s == 0) &&
+                   (freetab->ents[i].v != NULLDATAOFF)) {
                        do_warn(_("missing freetab entry %u for "
                                  "directory inode %llu\n"),
                                i, ip->i_ino);