mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: Andries.Brouwer@cwi.nl
Cc: akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: _POSIX_SYMLOOP_MAX
Date: Wed, 23 Jun 2004 17:11:34 +0100	[thread overview]
Message-ID: <20040623161134.GE12308@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <UTC200406231435.i5NEZFQ08577.aeb@smtp.cwi.nl>

On Wed, Jun 23, 2004 at 04:35:15PM +0200, Andries.Brouwer@cwi.nl wrote:
> (cf http://marc.theaimsgroup.com/?l=linux-kernel&m=102426036209591&w=2)

Hrm...  Actually, after looking through that thread again, I have to admit
that I'm not happy with my reaction back then (basically, "it's ugly and
pointless, let's forget it unless something saner develops out of it").
It _was_ ugly and broken in that form, all right, but now I wonder how much
of the idea behind the current symlink patchkit had come from (successfully
forgotten) background thinking of how that something saner might look like ;-/

In case if that's what had happened, I owe Andries an apology for sloppiness -
it can be considered as fixed and sanitized version of his idea and all I can
say in defense is that I really did not remember his stuff when I came up with
that.  Which is not worth much, obviously.  And in any case I should've
checked the archives and look for related stuff that had come up earlier.
My apologies.  [cc'd to l-k since the symlink stuff had been posted there,
possibly with missing credit]

The differences between the current patchkit and patch in question are:
	a) no cleanup flags, just a method that does cleanup.  Obvious, much
cleaner, easy to do and mentioned as possibility in the original.
	b) no special "done" flag for "we don't have anything left for us to
traverse", just the usual check for "no string given" (aka. "is it NULL?").
	c) no magic flags => no problem with getting them clobbered
	d) no prototype changes, we just call a helper that stores pointer into
array in nameidata.  I wonder why Andries hadn't done that, BTW - especially
if there was a planned work on removing recursion; in that case array is an
obvious thing to do.  And that doesn't break existing filesystems.
	e) bunch of leaks in failure paths of foo_follow_link() fixed
	f) ->readlink() cleanup.  It could be actually done in either variant
and is fairly natural thing to do.

       reply	other threads:[~2004-06-23 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <UTC200406231435.i5NEZFQ08577.aeb@smtp.cwi.nl>
2004-06-23 16:11 ` viro [this message]
2004-06-23 17:18   ` _POSIX_SYMLOOP_MAX Andries Brouwer
2004-06-23 18:02     ` _POSIX_SYMLOOP_MAX viro
2004-06-23 18:47       ` _POSIX_SYMLOOP_MAX Andries Brouwer

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=20040623161134.GE12308@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®