Re: [PATCH v5 9/9] ref: add symlink ref content check for files backend
On Mon, Oct 07, 2024 at 08:58:50AM +0200, Patrick Steinhardt wrote:
Show 12 quoted lines
> On Sun, Sep 29, 2024 at 03:17:36PM +0800, shejialuo wrote:
> > We have already introduced "files_fsck_symref_target". We should reuse
> > this function to handle the symrefs which use legacy symbolic links. We
> > should not check the trailing garbage for symbolic refs. Add a new
> > parameter "symbolic_link" to disable some checks which should only be
> > executed for textual symrefs.
>
> You're getting into implementation details before noting what the actual
> problem is. So I'd recommend first describing the problem at a higher
> level, and then note that we can reuse parts of preexisting infra to
> address the issue.
>
Thanks, I will improve this in the next version.
> Patrick