From: "Darrick J. Wong" <djwong@kernel.org>
To: Anuj Gupta <anuj1072538@gmail.com>
Cc: cem@kernel.org, hch@lst.de, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 5/6] xfs: handle reconnecting metadir subdirectories
Date: Thu, 27 Aug 2026 07:46:31 -0700 [thread overview]
Message-ID: <20260827144631.GB6072@frogsfrogsfrogs> (raw)
In-Reply-To: <ux7q7mg7mp32uekxtei4vrunv53opqwthv2er7gk5l2z3ztnok@mp76pxytxzmt>
On Thu, Aug 27, 2026 at 02:53:30PM +0530, Anuj Gupta wrote:
> > + error = xfs_dir_createname(tp, dp, name, I_INO(ip), resblks);
> > + if (error)
> > + return error;
> > +
> > + xfs_trans_log_inode(tp, dp, XFS_ILOG_CORE);
>
> should we update dp's mtime/ctime after creating the dirent using
> xfs_trans_ichgtime()?
Metadata directory trees aren't exposed to userspace, why would we care
about timestamps?
> > + /*
> > + * subdir didn't give us a dotdot entry, so we just give up
> > + * and let the repair get marked as failed.
> > + */
> > + if (old_dotdot == NULLFSINO)
> > + return 0;
> > + }
>
> The comment says "let the repair get marked as failed" but return 0 here
> looks like it reports success.
The repair reports success, and the subsequent revalidation sees that
the metapath is still broken and reports that corruption to userspace.
I suppose -EFSCORRUPTED here would be clearer.
--D
next prev parent reply other threads:[~2026-08-27 14:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 5:30 [PATCHSET v2 1/2] xfs: LLM-inspired bug fixes, part 7 Darrick J. Wong
2026-08-27 5:31 ` [PATCH 1/6] xfs: don't spin forever on zero-length dirents when salvaging them Darrick J. Wong
2026-08-27 5:31 ` [PATCH 2/6] xfs: don't stash removename operations with unknown ftype Darrick J. Wong
2026-08-27 5:31 ` [PATCH 3/6] xfs: log the tempip after we convert it to extents format Darrick J. Wong
2026-08-27 5:31 ` [PATCH 4/6] xfs: fix parent rec lookup initialization in xrep_metapath_unlink Darrick J. Wong
2026-08-27 5:32 ` [PATCH 5/6] xfs: handle reconnecting metadir subdirectories Darrick J. Wong
2026-08-27 9:23 ` Anuj Gupta
2026-08-27 14:46 ` Darrick J. Wong [this message]
2026-08-27 16:41 ` Anuj gupta
2026-08-31 6:54 ` Christoph Hellwig
2026-08-27 5:32 ` [PATCH 6/6] xfs: lock the healthmon when inserting unmount event Darrick J. Wong
2026-09-03 6:06 ` [PATCHSET v2 1/2] xfs: LLM-inspired bug fixes, part 7 Carlos Maiolino
-- strict thread matches above, loose matches on Subject: below --
2026-09-02 5:41 [PATCHSET v3 3/5] " Darrick J. Wong
2026-09-02 5:46 ` [PATCH 5/6] xfs: handle reconnecting metadir subdirectories Darrick J. Wong
2026-08-25 5:34 [PATCHSET 1/2] xfs: LLM-inspired bug fixes, part 7 Darrick J. Wong
2026-08-25 5:35 ` [PATCH 5/6] xfs: handle reconnecting metadir subdirectories Darrick J. Wong
2026-08-25 6:32 ` Christoph Hellwig
2026-08-25 23:40 ` Darrick J. Wong
2026-08-26 4:46 ` Christoph Hellwig
2026-08-26 4:53 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260827144631.GB6072@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=anuj1072538@gmail.com \
--cc=cem@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.