diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-08-22 13:39:19 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-22 13:39:19 +0200 |
commit | 9ed437c50d89eabae763dd422579f73fdebf288d (patch) | |
tree | 22329b749200798165a8a07fe141e9cbc3b1c733 /fs/jffs2/acl.h | |
parent | [JFFS2] Correct cleanmarker checks -- we should use only 8 bytes (diff) | |
download | linux-9ed437c50d89eabae763dd422579f73fdebf288d.tar.xz linux-9ed437c50d89eabae763dd422579f73fdebf288d.zip |
[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/acl.h')
-rw-r--r-- | fs/jffs2/acl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jffs2/acl.h b/fs/jffs2/acl.h index c84378cee82a..90a2dbf59051 100644 --- a/fs/jffs2/acl.h +++ b/fs/jffs2/acl.h @@ -28,9 +28,10 @@ struct jffs2_acl_header { #define JFFS2_ACL_NOT_CACHED ((void *)-1) +extern struct posix_acl *jffs2_get_acl(struct inode *inode, int type); extern int jffs2_permission(struct inode *, int, struct nameidata *); extern int jffs2_acl_chmod(struct inode *); -extern int jffs2_init_acl(struct inode *, struct inode *); +extern int jffs2_init_acl(struct inode *, struct posix_acl *); extern void jffs2_clear_acl(struct jffs2_inode_info *); extern struct xattr_handler jffs2_acl_access_xattr_handler; @@ -38,6 +39,7 @@ extern struct xattr_handler jffs2_acl_default_xattr_handler; #else +#define jffs2_get_acl(inode, type) (NULL) #define jffs2_permission NULL #define jffs2_acl_chmod(inode) (0) #define jffs2_init_acl(inode,dir) (0) |