| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/4] xfs_repair: clear need_root_dotdot if we rebuild the root dir |
| From: | Carlos Maiolino <cmaiolino@xxxxxxxxxx> |
| Date: | Mon, 9 Mar 2015 15:43:26 -0300 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <54F77216.5030106@xxxxxxxxxxx> |
| Mail-followup-to: | Eric Sandeen <sandeen@xxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
| References: | <54F77199.8030708@xxxxxxxxxx> <54F77216.5030106@xxxxxxxxxxx> |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
Looks good
Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
On Wed, Mar 04, 2015 at 02:59:02PM -0600, Eric Sandeen wrote:
> It's possible to enter longform_dir2_rebuild with need_root_dotdot
> set; rebuilding it will add "..", and if need_root_dotdot stays set,
> we'll add another ".." entry, causing a second repair to find and
> fix that newly-introduced problem.
>
> Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
> ---
>
> diff --git a/repair/phase6.c b/repair/phase6.c
> index 0ec4f07..1728609 100644
> --- a/repair/phase6.c
> +++ b/repair/phase6.c
> @@ -1354,6 +1354,9 @@ longform_dir2_rebuild(
>
> libxfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES|XFS_TRANS_SYNC);
>
> + if (ino == mp->m_sb.sb_rootino)
> + need_root_dotdot = 0;
> +
> /* go through the hash list and re-add the inodes */
>
> for (p = hashtab->first; p; p = p->nextbyorder) {
>
>
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs
--
Carlos
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/4] xfs_repair: validate & fix inode CRCs, Carlos Maiolino |
|---|---|
| Next by Date: | Re: [PATCH 3/4] xfs_db: show nlink fields for di_version == 3, too, Carlos Maiolino |
| Previous by Thread: | [PATCH 2/4] xfs_repair: clear need_root_dotdot if we rebuild the root dir, Eric Sandeen |
| Next by Thread: | [PATCH 3/4] xfs_db: show nlink fields for di_version == 3, too, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |