lkml.org 
[lkml]   [2005]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: question about Ext2/3 append-only attributes
From
Date
On Tue, 03 May 2005 16:58:13 EDT, Xin Zhao said:
> I read some specification says that if append-only is set to a
> directory, you can only create or modify files in that directory, but
> no delete.

Could you be more specific on "some specification", and convince us that
what you read wasn't in fact wrong about things?

> But when I tried this attribute on a directory, I was not able to
> create new files in that directory. let's say the derectory is /dev,
> I set it to be append-only with:

Well, creating a new file implies creating a new entry in the directory
pointing at the inode, which is "appending" to the directory. So this
isn't at all surprising, and I'd consider the spec that says "create or modify"
to be broken.

Were you possibly thinking of the +t (sticky) bit on a directory, which when
set restricts who can unlink the file?

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-05-04 00:21    [W:0.054 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site