login
Header Space

 
 

Re: [patch 13/15] vfs: utimes cleanup

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <akpm@...>, <hch@...>, <viro@...>, <linux-kernel@...>, <linux-fsdevel@...>, Ulrich Drepper <drepper@...>
Date: Monday, May 5, 2008 - 7:30 am

On Mon, May 05, 2008 at 11:54:54AM +0200, Miklos Szeredi wrote:

A good idea to untangle this, but I'm not entirely happy with how it's
done.

utimes_need_permission is a good helper and fine with me.

utimes_common is a good idea aswell, but I'd rather take the permission
checks into it aswell, even if that means a little flag telling if
file->f_mode should be checked or vfs_permission().

do_fd_utimes sounds fine, but I don't like that name.  do_futimes maybe?

and when the fd-side is sorted out the path side should probably be a
helper aswell.  Then sys_utime/sys_utimes/arhc bits could call it directly,
with the initial check in do_utimes separated out into a helper ala
utimes_need_permission.  do_utimes should probably become do_futimesat
at the point.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 13/15] vfs: utimes cleanup, Miklos Szeredi, (Mon May 5, 5:54 am)
Re: [patch 13/15] vfs: utimes cleanup, Christoph Hellwig, (Mon May 5, 7:30 am)
Re: [patch 13/15] vfs: utimes cleanup, Miklos Szeredi, (Mon May 5, 8:39 am)
Re: [patch 13/15] vfs: utimes cleanup, Christoph Hellwig, (Mon May 5, 9:04 am)
speck-geostationary