diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:51:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:51:18 -0400 |
commit | 2a5a68b840cbab31baab2d9b2e1e6de3b289ae1e (patch) | |
tree | 25b8fc041b4dce6c404ff01b462bc6b58fa7d372 /fs/xfs/xfs_attr.c | |
parent | 990a8baf568ca1d0ae65e59783ff821794118d07 (diff) | |
parent | e1a40fa907498030b6e432c0dbcb06d7a9f14ee3 (diff) |
Merge rsync://oss.sgi.com/git/xfs-2.6
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/xfs_attr.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index ee8b5904ec7c..a41ad3a5e554 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -71,6 +71,11 @@ | |||
71 | * Provide the external interfaces to manage attribute lists. | 71 | * Provide the external interfaces to manage attribute lists. |
72 | */ | 72 | */ |
73 | 73 | ||
74 | #define ATTR_SYSCOUNT 2 | ||
75 | STATIC struct attrnames posix_acl_access; | ||
76 | STATIC struct attrnames posix_acl_default; | ||
77 | STATIC struct attrnames *attr_system_names[ATTR_SYSCOUNT]; | ||
78 | |||
74 | /*======================================================================== | 79 | /*======================================================================== |
75 | * Function prototypes for the kernel. | 80 | * Function prototypes for the kernel. |
76 | *========================================================================*/ | 81 | *========================================================================*/ |
@@ -83,6 +88,7 @@ STATIC int xfs_attr_shortform_addname(xfs_da_args_t *args); | |||
83 | /* | 88 | /* |
84 | * Internal routines when attribute list is one block. | 89 | * Internal routines when attribute list is one block. |
85 | */ | 90 | */ |
91 | STATIC int xfs_attr_leaf_get(xfs_da_args_t *args); | ||
86 | STATIC int xfs_attr_leaf_addname(xfs_da_args_t *args); | 92 | STATIC int xfs_attr_leaf_addname(xfs_da_args_t *args); |
87 | STATIC int xfs_attr_leaf_removename(xfs_da_args_t *args); | 93 | STATIC int xfs_attr_leaf_removename(xfs_da_args_t *args); |
88 | STATIC int xfs_attr_leaf_list(xfs_attr_list_context_t *context); | 94 | STATIC int xfs_attr_leaf_list(xfs_attr_list_context_t *context); |
@@ -90,6 +96,7 @@ STATIC int xfs_attr_leaf_list(xfs_attr_list_context_t *context); | |||
90 | /* | 96 | /* |
91 | * Internal routines when attribute list is more than one block. | 97 | * Internal routines when attribute list is more than one block. |
92 | */ | 98 | */ |
99 | STATIC int xfs_attr_node_get(xfs_da_args_t *args); | ||
93 | STATIC int xfs_attr_node_addname(xfs_da_args_t *args); | 100 | STATIC int xfs_attr_node_addname(xfs_da_args_t *args); |
94 | STATIC int xfs_attr_node_removename(xfs_da_args_t *args); | 101 | STATIC int xfs_attr_node_removename(xfs_da_args_t *args); |
95 | STATIC int xfs_attr_node_list(xfs_attr_list_context_t *context); | 102 | STATIC int xfs_attr_node_list(xfs_attr_list_context_t *context); |
@@ -1102,7 +1109,7 @@ xfs_attr_leaf_removename(xfs_da_args_t *args) | |||
1102 | * This leaf block cannot have a "remote" value, we only call this routine | 1109 | * This leaf block cannot have a "remote" value, we only call this routine |
1103 | * if bmap_one_block() says there is only one block (ie: no remote blks). | 1110 | * if bmap_one_block() says there is only one block (ie: no remote blks). |
1104 | */ | 1111 | */ |
1105 | int | 1112 | STATIC int |
1106 | xfs_attr_leaf_get(xfs_da_args_t *args) | 1113 | xfs_attr_leaf_get(xfs_da_args_t *args) |
1107 | { | 1114 | { |
1108 | xfs_dabuf_t *bp; | 1115 | xfs_dabuf_t *bp; |
@@ -1707,7 +1714,7 @@ xfs_attr_refillstate(xfs_da_state_t *state) | |||
1707 | * block, ie: both true Btree attr lists and for single-leaf-blocks with | 1714 | * block, ie: both true Btree attr lists and for single-leaf-blocks with |
1708 | * "remote" values taking up more blocks. | 1715 | * "remote" values taking up more blocks. |
1709 | */ | 1716 | */ |
1710 | int | 1717 | STATIC int |
1711 | xfs_attr_node_get(xfs_da_args_t *args) | 1718 | xfs_attr_node_get(xfs_da_args_t *args) |
1712 | { | 1719 | { |
1713 | xfs_da_state_t *state; | 1720 | xfs_da_state_t *state; |
@@ -2398,7 +2405,7 @@ posix_acl_default_exists( | |||
2398 | return xfs_acl_vhasacl_default(vp); | 2405 | return xfs_acl_vhasacl_default(vp); |
2399 | } | 2406 | } |
2400 | 2407 | ||
2401 | struct attrnames posix_acl_access = { | 2408 | STATIC struct attrnames posix_acl_access = { |
2402 | .attr_name = "posix_acl_access", | 2409 | .attr_name = "posix_acl_access", |
2403 | .attr_namelen = sizeof("posix_acl_access") - 1, | 2410 | .attr_namelen = sizeof("posix_acl_access") - 1, |
2404 | .attr_get = posix_acl_access_get, | 2411 | .attr_get = posix_acl_access_get, |
@@ -2407,7 +2414,7 @@ struct attrnames posix_acl_access = { | |||
2407 | .attr_exists = posix_acl_access_exists, | 2414 | .attr_exists = posix_acl_access_exists, |
2408 | }; | 2415 | }; |
2409 | 2416 | ||
2410 | struct attrnames posix_acl_default = { | 2417 | STATIC struct attrnames posix_acl_default = { |
2411 | .attr_name = "posix_acl_default", | 2418 | .attr_name = "posix_acl_default", |
2412 | .attr_namelen = sizeof("posix_acl_default") - 1, | 2419 | .attr_namelen = sizeof("posix_acl_default") - 1, |
2413 | .attr_get = posix_acl_default_get, | 2420 | .attr_get = posix_acl_default_get, |
@@ -2416,7 +2423,7 @@ struct attrnames posix_acl_default = { | |||
2416 | .attr_exists = posix_acl_default_exists, | 2423 | .attr_exists = posix_acl_default_exists, |
2417 | }; | 2424 | }; |
2418 | 2425 | ||
2419 | struct attrnames *attr_system_names[] = | 2426 | STATIC struct attrnames *attr_system_names[] = |
2420 | { &posix_acl_access, &posix_acl_default }; | 2427 | { &posix_acl_access, &posix_acl_default }; |
2421 | 2428 | ||
2422 | 2429 | ||