Blame view
fs/9p/acl.h
1.45 KB
85ff872d3
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
/* * Copyright IBM Corporation, 2010 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2.1 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ #ifndef FS_9P_ACL_H #define FS_9P_ACL_H #ifdef CONFIG_9P_FS_POSIX_ACL extern int v9fs_get_acl(struct inode *, struct p9_fid *); |
4e34e719e
|
19 |
extern struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type); |
6e8dc5555
|
20 |
extern int v9fs_acl_chmod(struct dentry *); |
ad77dbce5
|
21 |
extern int v9fs_set_create_acl(struct dentry *, |
1ec95bf34
|
22 |
struct posix_acl **, struct posix_acl **); |
d3fb61207
|
23 |
extern int v9fs_acl_mode(struct inode *dir, umode_t *modep, |
ad77dbce5
|
24 |
struct posix_acl **dpacl, struct posix_acl **pacl); |
85ff872d3
|
25 |
#else |
4e34e719e
|
26 |
#define v9fs_iop_get_acl NULL |
85ff872d3
|
27 28 29 30 |
static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) { return 0; } |
6e8dc5555
|
31 32 33 34 |
static inline int v9fs_acl_chmod(struct dentry *dentry) { return 0; } |
ad77dbce5
|
35 |
static inline int v9fs_set_create_acl(struct dentry *dentry, |
1ec95bf34
|
36 37 |
struct posix_acl **dpacl, struct posix_acl **pacl) |
ad77dbce5
|
38 39 40 |
{ return 0; } |
d3fb61207
|
41 |
static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep, |
ad77dbce5
|
42 43 44 45 46 |
struct posix_acl **dpacl, struct posix_acl **pacl) { return 0; } |
85ff872d3
|
47 48 |
#endif #endif /* FS_9P_XATTR_H */ |