Messages in this thread | | | Date | Fri, 25 Jun 1999 09:26:13 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [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/
| |