diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /fs/xfs/xfs_attr.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'fs/xfs/xfs_attr.h')
-rw-r--r-- | fs/xfs/xfs_attr.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/xfs/xfs_attr.h b/fs/xfs/xfs_attr.h index fb3b2a68b9b9..e920d68ef509 100644 --- a/fs/xfs/xfs_attr.h +++ b/fs/xfs/xfs_attr.h | |||
@@ -48,6 +48,16 @@ struct xfs_attr_list_context; | |||
48 | #define ATTR_KERNOTIME 0x1000 /* [kernel] don't update inode timestamps */ | 48 | #define ATTR_KERNOTIME 0x1000 /* [kernel] don't update inode timestamps */ |
49 | #define ATTR_KERNOVAL 0x2000 /* [kernel] get attr size only, not value */ | 49 | #define ATTR_KERNOVAL 0x2000 /* [kernel] get attr size only, not value */ |
50 | 50 | ||
51 | #define XFS_ATTR_FLAGS \ | ||
52 | { ATTR_DONTFOLLOW, "DONTFOLLOW" }, \ | ||
53 | { ATTR_ROOT, "ROOT" }, \ | ||
54 | { ATTR_TRUST, "TRUST" }, \ | ||
55 | { ATTR_SECURE, "SECURE" }, \ | ||
56 | { ATTR_CREATE, "CREATE" }, \ | ||
57 | { ATTR_REPLACE, "REPLACE" }, \ | ||
58 | { ATTR_KERNOTIME, "KERNOTIME" }, \ | ||
59 | { ATTR_KERNOVAL, "KERNOVAL" } | ||
60 | |||
51 | /* | 61 | /* |
52 | * The maximum size (into the kernel or returned from the kernel) of an | 62 | * The maximum size (into the kernel or returned from the kernel) of an |
53 | * attribute value or the buffer used for an attr_list() call. Larger | 63 | * attribute value or the buffer used for an attr_list() call. Larger |
@@ -103,7 +113,7 @@ typedef struct attrlist_cursor_kern { | |||
103 | 113 | ||
104 | 114 | ||
105 | typedef int (*put_listent_func_t)(struct xfs_attr_list_context *, int, | 115 | typedef int (*put_listent_func_t)(struct xfs_attr_list_context *, int, |
106 | char *, int, int, char *); | 116 | unsigned char *, int, int, unsigned char *); |
107 | 117 | ||
108 | typedef struct xfs_attr_list_context { | 118 | typedef struct xfs_attr_list_context { |
109 | struct xfs_inode *dp; /* inode */ | 119 | struct xfs_inode *dp; /* inode */ |
@@ -129,9 +139,7 @@ typedef struct xfs_attr_list_context { | |||
129 | /* | 139 | /* |
130 | * Overall external interface routines. | 140 | * Overall external interface routines. |
131 | */ | 141 | */ |
132 | int xfs_attr_calc_size(struct xfs_inode *, int, int, int *); | ||
133 | int xfs_attr_inactive(struct xfs_inode *dp); | 142 | int xfs_attr_inactive(struct xfs_inode *dp); |
134 | int xfs_attr_fetch(struct xfs_inode *, struct xfs_name *, char *, int *, int); | ||
135 | int xfs_attr_rmtval_get(struct xfs_da_args *args); | 143 | int xfs_attr_rmtval_get(struct xfs_da_args *args); |
136 | int xfs_attr_list_int(struct xfs_attr_list_context *); | 144 | int xfs_attr_list_int(struct xfs_attr_list_context *); |
137 | 145 | ||