| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 05/13] xfs_repair: dirty inode in process_sf_dir2 if we change namelen |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Tue, 17 Mar 2015 15:33:07 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1426624395-8258-1-git-send-email-sandeen@xxxxxxxxxx> |
| References: | <1426624395-8258-1-git-send-email-sandeen@xxxxxxxxxx> |
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.
Reviewed-by: Brian Foster <bfoster@xxxxxxxxxx>
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
repair/dir2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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"),
--
1.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Ãlu Produit de l'annÃe, Satisfait ou remboursÃ., UNE EXCLUSIVITÃ |
|---|---|
| Next by Date: | [PATCH 07/13] xfs_repair: collapse 2 cases in process_sf_dir2, Eric Sandeen |
| Previous by Thread: | [PATCH 00/13] xfsprogs: roll-up of previously sent patches, Eric Sandeen |
| Next by Thread: | [PATCH 07/13] xfs_repair: collapse 2 cases in process_sf_dir2, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |