summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-08-23 04:02:05 +0000
committerRoland McGrath <roland@gnu.org>1999-08-23 04:02:05 +0000
commite5344d52860825dc029875ebc7eb43f52f679def (patch)
tree067393f119946a62ecfcc692f321af1fa6b23e76 /ext2fs
parentcd9611ba19e6dd63d767128fe84003f4ddf5634d (diff)
1999-08-23 Roland McGrath <roland@baalperazim.frob.com>
* ialloc.c (diskfs_alloc_node): Propagate initial value of i_flags from directory, as Linux 2.3.14 does.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/ialloc.c5
1 files changed, 5 insertions, 0 deletions
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;
/*