]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: dirty inode in process_sf_dir2 if we change namelen
authorEric Sandeen <sandeen@redhat.com>
Mon, 6 Apr 2015 23:19:51 +0000 (09:19 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2015 23:19:51 +0000 (09:19 +1000)
There are two "fix sfep->namelen" cases, but we only mark
*dino_dirty = 1 in one of them.  Add the other to ensure that
the change gets written out.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dir2.c

index 6b8964d4cf78a9aa869f181400ebae5432142715..25793e90a903dc6ff142a1c8d91ac9a59f3e6fa1 100644 (file)
@@ -881,6 +881,7 @@ _("entry \"%*.*s\" in shortform directory %" PRIu64 " references %s inode %" PRI
 _("zero length entry in shortform dir %" PRIu64 ", resetting to %d\n"),
                                                ino, namelen);
                                        sfep->namelen = namelen;
+                                       *dino_dirty = 1;
                                } else  {
                                        do_warn(
 _("zero length entry in shortform dir %" PRIu64 ", would set to %d\n"),