| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/4] xfs_repair: dirty inode in process_sf_dir2 if we change namelen |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Tue, 10 Mar 2015 16:55:59 -0400 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <54FF59DA.60700@xxxxxxxxxxx> |
| References: | <54FF59DA.60700@xxxxxxxxxxx> |
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@xxxxxxxxxx>
---
diff --git a/repair/dir2.c b/repair/dir2.c
index 6b8964d..25793e9 100644
--- a/repair/dir2.c
+++ b/repair/dir2.c
@@ -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"),
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/4] xfs_repair: clean up process_sf_dir2, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH 2/4] xfs_repair: remove impossible tests in process_sf_dir2, Eric Sandeen |
| Previous by Thread: | [PATCH 0/4] xfs_repair: clean up process_sf_dir2, Eric Sandeen |
| Next by Thread: | Re: [PATCH 1/4] xfs_repair: dirty inode in process_sf_dir2 if we change namelen, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |