diff options
author | Tiger Yang <tiger.yang@oracle.com> | 2008-11-13 22:17:41 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:34:20 -0500 |
commit | 89c38bd0ade3c567707ed8fce088b253b0369c50 (patch) | |
tree | ffc5bf6a8871efa8e7793c552d16ac9fb92f1334 /fs/ocfs2/acl.h | |
parent | 060bc66dd5017460076d9e808e2198cd532c943d (diff) |
ocfs2: add ocfs2_init_acl in mknod
We need to get the parent directories acls and let the new child inherit it.
To this, we add additional calculations for data/metadata allocation.
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/acl.h')
-rw-r--r-- | fs/ocfs2/acl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/ocfs2/acl.h b/fs/ocfs2/acl.h index 68ffd6436c50..8f6389ed4da5 100644 --- a/fs/ocfs2/acl.h +++ b/fs/ocfs2/acl.h | |||
@@ -30,6 +30,10 @@ struct ocfs2_acl_entry { | |||
30 | 30 | ||
31 | extern int ocfs2_check_acl(struct inode *, int); | 31 | extern int ocfs2_check_acl(struct inode *, int); |
32 | extern int ocfs2_acl_chmod(struct inode *); | 32 | extern int ocfs2_acl_chmod(struct inode *); |
33 | extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *, | ||
34 | struct buffer_head *, struct buffer_head *, | ||
35 | struct ocfs2_alloc_context *, | ||
36 | struct ocfs2_alloc_context *); | ||
33 | 37 | ||
34 | #else /* CONFIG_OCFS2_FS_POSIX_ACL*/ | 38 | #else /* CONFIG_OCFS2_FS_POSIX_ACL*/ |
35 | 39 | ||
@@ -38,6 +42,16 @@ static inline int ocfs2_acl_chmod(struct inode *inode) | |||
38 | { | 42 | { |
39 | return 0; | 43 | return 0; |
40 | } | 44 | } |
45 | static inline int ocfs2_init_acl(handle_t *handle, | ||
46 | struct inode *inode, | ||
47 | struct inode *dir, | ||
48 | struct buffer_head *di_bh, | ||
49 | struct buffer_head *dir_bh, | ||
50 | struct ocfs2_alloc_context *meta_ac, | ||
51 | struct ocfs2_alloc_context *data_ac) | ||
52 | { | ||
53 | return 0; | ||
54 | } | ||
41 | 55 | ||
42 | #endif /* CONFIG_OCFS2_FS_POSIX_ACL*/ | 56 | #endif /* CONFIG_OCFS2_FS_POSIX_ACL*/ |
43 | 57 | ||