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

On Fri, 25 Jun 1999 09:26:13 -0700 (PDT), Linus Torvalds
<> said:

> 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..

Yes, somebody did. I distributed that as part of my old raw IO
patches, and will fold it into 2.3 if you like.

> {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.

Exactly: it defined

+asmlinkage int sys_fsattr(const char * filename, unsigned int len,
+ const char *in, char *out)

which also allows the vector of flag bits to grow beyond 4 bytes in the
future. It mapped all of the ext3 attributes correctly to the portable
ATTR_FLAG_* definitions and allowed attributes to be set on device files
(which was the whole reason for it at the time). The only thing missing
was the lfsattr variant.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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