mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michael Kerrisk" <mtk.manpages@googlemail.com>
To: "Miklos Szeredi" <miklos@szeredi.hu>
Cc: drepper@redhat.com, viro@zeniv.linux.org.uk,
	akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] utimensat() non-conformances and fixes -- version 2
Date: Mon, 19 May 2008 14:24:37 +0200	[thread overview]
Message-ID: <cfd18e0f0805190524w7d0e5a47s42cb2c469c26a262@mail.gmail.com> (raw)
In-Reply-To: <E1Jy20a-0007pv-Ij@pomaz-ex.szeredi.hu>

Miklos,

On Mon, May 19, 2008 at 11:50 AM, Miklos Szeredi <miklos@szeredi.hu> wrote:
>> Regarding your suggestions above, are you meaning something like the
>> patch below?
>
> Yes.
>
>> The patch is a little less pretty than I'd like because of the need to
>> return EACCES or EPERM depending on whether (times == NULL).  In
>> particular, these lines in utimes.c:
>>
>> +     if (!times && error == -EPERM)
>> +             error = -EACCES;
>>
>> seem a little fragile (but maybe I worry too much).
>
> It's not only fragile, it's ugly as sin.  I'd rather do it this way:
>
> - initialize error to zero
> - if no write access then set error, and the ATTR_TIMES_UPDATE(*) flag
> - set error2 from result of notify_change()
> - if error is zero then return error2, otherwise return error
>
> (*) I've been mulling over the name and perhaps ATTR_OWNER_CHECK would
> be better, or something that implies that it's not really about
> updating the times, but about checking the owner.

This all makes sense, but...

> Also could you do the patch against the
>
>  git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git vfs-cleanups
>
> tree, which does big structural cleanups to do_utimes?

You keep moving the goalposts here...  First, it was provide an
obvious correct fix (for the non-conformances); then: can you cleanup
the owner checks; then: can you rewrite against my git tree...  My
time at the moment is fairly limited, and I have a problem: currently,
I'm not a git user.  That'll change soon, but I don't have the time to
change it now.  Can I just download a snapshot tarball of your git
changes somehwere?  Alternatively, when do you expect your changes to
make it into an rc?

Cheers,

Michael

  parent reply	other threads:[~2008-05-19 12:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16  8:31 Michael Kerrisk
2008-05-16  8:34 ` Michael Kerrisk
2008-05-16 16:59 ` Miklos Szeredi
2008-05-17 19:57   ` Michael Kerrisk
2008-05-19  9:50     ` Miklos Szeredi
2008-05-19 10:12       ` Miklos Szeredi
2008-05-19 12:24       ` Michael Kerrisk [this message]
2008-05-19 13:17         ` Miklos Szeredi
2008-05-30 15:34   ` [PATCH] utimensat() non-conformances and fixes [v3] Michael Kerrisk
2008-05-30 16:37     ` Miklos Szeredi
2008-05-30 18:24       ` Michael Kerrisk
2008-05-30 19:22         ` Miklos Szeredi
2008-05-30 19:32           ` Matthew Wilcox
2008-05-30 20:08             ` Miklos Szeredi
2008-05-30 19:43         ` Michael Kerrisk
2008-05-30 20:17           ` Miklos Szeredi
2008-05-31  5:28             ` Michael Kerrisk
2008-05-30 20:17         ` Andrew Morton
2008-05-31  5:44           ` Michael Kerrisk
2008-06-03 11:05     ` Michael Kerrisk
2008-06-03 11:13       ` Miklos Szeredi
2008-06-03 11:22         ` Al Viro
2008-06-03 11:27           ` Michael Kerrisk
2008-06-03 11:30             ` Jamie Lokier
2008-06-03 11:39               ` Michael Kerrisk
2008-06-03 11:49                 ` Al Viro
2008-06-03 11:58                   ` Al Viro
2008-06-03 12:01                   ` Jamie Lokier
2008-06-03 12:08                     ` Al Viro
2008-06-03 12:10                       ` Jamie Lokier
2008-06-03 12:16           ` Miklos Szeredi
2008-06-03 13:05             ` Al Viro
2008-06-03 11:52         ` Michael Kerrisk

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=cfd18e0f0805190524w7d0e5a47s42cb2c469c26a262@mail.gmail.com \
    --to=mtk.manpages@googlemail.com \
    --cc=akpm@linux-foundation.org \
    --cc=drepper@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=viro@zeniv.linux.org.uk \
    /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®