lkml.org 
[lkml]   [1999]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] File flags handling - proposal for API.


On Fri, 25 Jun 1999, Alexander Viro wrote:
>
> With all talks about mixed directory/symlink objects, etc. we
> *will* need a decent way to work with such attributes. I dearly hope that
> it will not be done via weird ioctl() as it's currently done for ext2
> flags (for one thing because the object we are operating with may not be
> openable - e.g. symlink).

I've long wanted to have "flags" system calls, because I hate ioctl's with
a passion. However, nobody was bothered enough by it to actually implement
it..

> I think that the right way here is to add 6 (ouch) syscalls:
> {l,f,}chflags() for setting those attributes and {l,f,}new_stat() for
> reading them. The reason for latter 3 is simple - potential races.

No, just make it do

{l,f,}chflags({name,fd,name}, u32 *old, u32 *new);

and then you can read and write the flags with just one system call. I do
not want to extend on stat() yet again.

Linus


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.081 / U:1.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site