diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-08-22 07:39:19 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-22 07:39:19 -0400 |
commit | 9ed437c50d89eabae763dd422579f73fdebf288d (patch) | |
tree | 22329b749200798165a8a07fe141e9cbc3b1c733 /fs/jffs2/os-linux.h | |
parent | 09b3fba562ce366312b90a6f71d0b727b4d93ba9 (diff) |
[JFFS2] Fix ACL vs. mode handling.
When POSIX ACL support was enabled, we weren't writing correct
legacy modes to the medium on inode creation, or when the ACL was set.
This meant that the permissions would be incorrect after the file system
was remounted.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/os-linux.h')
-rw-r--r-- | fs/jffs2/os-linux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h index 80daea96bbc2..f6743a915cf3 100644 --- a/fs/jffs2/os-linux.h +++ b/fs/jffs2/os-linux.h | |||
@@ -173,12 +173,15 @@ int jffs2_ioctl(struct inode *, struct file *, unsigned int, unsigned long); | |||
173 | extern const struct inode_operations jffs2_symlink_inode_operations; | 173 | extern const struct inode_operations jffs2_symlink_inode_operations; |
174 | 174 | ||
175 | /* fs.c */ | 175 | /* fs.c */ |
176 | struct posix_acl; | ||
177 | |||
176 | int jffs2_setattr (struct dentry *, struct iattr *); | 178 | int jffs2_setattr (struct dentry *, struct iattr *); |
179 | int jffs2_do_setattr (struct inode *, struct iattr *); | ||
177 | void jffs2_read_inode (struct inode *); | 180 | void jffs2_read_inode (struct inode *); |
178 | void jffs2_clear_inode (struct inode *); | 181 | void jffs2_clear_inode (struct inode *); |
179 | void jffs2_dirty_inode(struct inode *inode); | 182 | void jffs2_dirty_inode(struct inode *inode); |
180 | struct inode *jffs2_new_inode (struct inode *dir_i, int mode, | 183 | struct inode *jffs2_new_inode (struct inode *dir_i, int mode, |
181 | struct jffs2_raw_inode *ri); | 184 | struct jffs2_raw_inode *ri, struct posix_acl **acl); |
182 | int jffs2_statfs (struct dentry *, struct kstatfs *); | 185 | int jffs2_statfs (struct dentry *, struct kstatfs *); |
183 | void jffs2_write_super (struct super_block *); | 186 | void jffs2_write_super (struct super_block *); |
184 | int jffs2_remount_fs (struct super_block *, int *, char *); | 187 | int jffs2_remount_fs (struct super_block *, int *, char *); |