Index: xfs_attr.c =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_attr.c,v retrieving revision 1.120 diff -u -u -r1.120 xfs_attr.c --- xfs_attr.c 18 May 2005 09:29:33 -0000 1.120 +++ xfs_attr.c 25 Aug 2005 03:41:34 -0000 @@ -122,7 +122,7 @@ *========================================================================*/ int -xfs_attr_fetch(xfs_inode_t *ip, char *name, int namelen, +xfs_attr_fetch(xfs_inode_t *ip, const char *name, int namelen, char *value, int *valuelenp, int flags, struct cred *cred) { xfs_da_args_t args; @@ -177,7 +177,7 @@ } int -xfs_attr_get(bhv_desc_t *bdp, char *name, char *value, int *valuelenp, +xfs_attr_get(bhv_desc_t *bdp, const char *name, char *value, int *valuelenp, int flags, struct cred *cred) { xfs_inode_t *ip = XFS_BHVTOI(bdp); @@ -202,7 +202,7 @@ /*ARGSUSED*/ int /* error */ -xfs_attr_set(bhv_desc_t *bdp, char *name, char *value, int valuelen, int flags, +xfs_attr_set(bhv_desc_t *bdp, const char *name, char *value, int valuelen, int flags, struct cred *cred) { xfs_da_args_t args; @@ -462,7 +462,7 @@ */ /*ARGSUSED*/ int /* error */ -xfs_attr_remove(bhv_desc_t *bdp, char *name, int flags, struct cred *cred) +xfs_attr_remove(bhv_desc_t *bdp, const char *name, int flags, struct cred *cred) { xfs_da_args_t args; xfs_inode_t *dp; Index: xfs_attr.h =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_attr.h,v retrieving revision 1.32 diff -u -u -r1.32 xfs_attr.h --- xfs_attr.h 18 May 2005 09:29:33 -0000 1.32 +++ xfs_attr.h 25 Aug 2005 03:41:35 -0000 @@ -172,15 +172,15 @@ /* * Overall external interface routines. */ -int xfs_attr_get(bhv_desc_t *, char *, char *, int *, int, struct cred *); -int xfs_attr_set(bhv_desc_t *, char *, char *, int, int, struct cred *); -int xfs_attr_remove(bhv_desc_t *, char *, int, struct cred *); +int xfs_attr_get(bhv_desc_t *, const char *, char *, int *, int, struct cred *); +int xfs_attr_set(bhv_desc_t *, const char *, char *, int, int, struct cred *); +int xfs_attr_remove(bhv_desc_t *, const char *, int, struct cred *); int xfs_attr_list(bhv_desc_t *, char *, int, int, struct attrlist_cursor_kern *, struct cred *); int xfs_attr_inactive(struct xfs_inode *dp); int xfs_attr_shortform_getvalue(struct xfs_da_args *); -int xfs_attr_fetch(struct xfs_inode *, char *, int, +int xfs_attr_fetch(struct xfs_inode *, const char *, int, char *, int *, int, struct cred *); #endif /* __XFS_ATTR_H__ */ Index: xfs_da_btree.c =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_da_btree.c,v retrieving revision 1.153 diff -u -u -r1.153 xfs_da_btree.c --- xfs_da_btree.c 22 Jun 2005 03:43:05 -0000 1.153 +++ xfs_da_btree.c 25 Aug 2005 03:41:35 -0000 @@ -1626,7 +1626,7 @@ * This is implemented with some source-level loop unrolling. */ xfs_dahash_t -xfs_da_hashname(uchar_t *name, int namelen) +xfs_da_hashname(const uchar_t *name, int namelen) { xfs_dahash_t hash; Index: xfs_da_btree.h =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/xfs_da_btree.h,v retrieving revision 1.58 diff -u -u -r1.58 xfs_da_btree.h --- xfs_da_btree.h 18 May 2005 09:29:33 -0000 1.58 +++ xfs_da_btree.h 25 Aug 2005 03:41:35 -0000 @@ -168,7 +168,7 @@ * Structure to ease passing around component names. */ typedef struct xfs_da_args { - uchar_t *name; /* string (maybe not NULL terminated) */ + const uchar_t *name; /* string (maybe not NULL terminated) */ int namelen; /* length of string (maybe no NULL) */ uchar_t *value; /* set of bytes (maybe contain NULLs) */ int valuelen; /* length of value */ @@ -314,7 +314,7 @@ int xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno, xfs_dabuf_t *dead_buf); -uint xfs_da_hashname(uchar_t *name_string, int name_length); +uint xfs_da_hashname(const uchar_t *name_string, int name_length); uint xfs_da_log2_roundup(uint i); xfs_da_state_t *xfs_da_state_alloc(void); void xfs_da_state_free(xfs_da_state_t *state); Index: linux-2.6/xfs_vnode.h =================================================================== RCS file: /cvs/linux-2.6-xfs/fs/xfs/linux-2.6/xfs_vnode.h,v retrieving revision 1.109 diff -u -u -r1.109 xfs_vnode.h --- linux-2.6/xfs_vnode.h 3 Aug 2005 18:10:09 -0000 1.109 +++ linux-2.6/xfs_vnode.h 25 Aug 2005 03:41:35 -0000 @@ -218,11 +218,11 @@ typedef int (*vop_bmap_t)(bhv_desc_t *, xfs_off_t, ssize_t, int, struct xfs_iomap *, int *); typedef int (*vop_reclaim_t)(bhv_desc_t *); -typedef int (*vop_attr_get_t)(bhv_desc_t *, char *, char *, int *, int, +typedef int (*vop_attr_get_t)(bhv_desc_t *, const char *, char *, int *, int, struct cred *); -typedef int (*vop_attr_set_t)(bhv_desc_t *, char *, char *, int, int, +typedef int (*vop_attr_set_t)(bhv_desc_t *, const char *, char *, int, int, struct cred *); -typedef int (*vop_attr_remove_t)(bhv_desc_t *, char *, int, struct cred *); +typedef int (*vop_attr_remove_t)(bhv_desc_t *, const char *, int, struct cred *); typedef int (*vop_attr_list_t)(bhv_desc_t *, char *, int, int, struct attrlist_cursor_kern *, struct cred *); typedef void (*vop_link_removed_t)(bhv_desc_t *, vnode_t *, int);