From e5344d52860825dc029875ebc7eb43f52f679def Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 23 Aug 1999 04:02:05 +0000 Subject: 1999-08-23 Roland McGrath * ialloc.c (diskfs_alloc_node): Propagate initial value of i_flags from directory, as Linux 2.3.14 does. --- ext2fs/ialloc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext2fs') diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 716a1f7d..1386af81 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -312,6 +312,11 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node) np->dn_set_ctime = 1; } + /* Propagate initial inode flags from the directory, as Linux does. */ + np->dn->info.i_flags = dir->dn->info.i_flags; + if (S_ISLNK (mode)) + np->dn->info.i_flags &= ~(EXT2_IMMUTABLE_FL | EXT2_APPEND_FL); + st->st_flags = 0; /* -- cgit v1.2.3