942 */ |
942 */ |
943 |
943 |
944 #ifdef VOLATILE_FH_TEST |
944 #ifdef VOLATILE_FH_TEST |
945 |
945 |
946 struct nfs_fh4_fmt { |
946 struct nfs_fh4_fmt { |
947 fhandle_t fh4_i; |
947 fhandle_ext_t fh4_i; |
948 uint32_t fh4_flag; |
948 uint32_t fh4_flag; |
949 uint32_t fh4_volatile_id; |
949 uint32_t fh4_volatile_id; |
950 }; |
950 }; |
951 |
951 |
952 #else /* VOLATILE_FH_TEST */ |
952 #else /* VOLATILE_FH_TEST */ |
953 |
953 |
954 struct nfs_fh4_fmt { |
954 struct nfs_fh4_fmt { |
955 fhandle_t fh4_i; |
955 fhandle_ext_t fh4_i; |
956 uint32_t fh4_flag; |
956 uint32_t fh4_flag; |
957 }; |
957 }; |
958 |
958 |
959 #endif /* VOLATILE_FH_TEST */ |
959 #endif /* VOLATILE_FH_TEST */ |
960 |
960 |
961 #define FH4_NAMEDATTR 1 |
961 #define FH4_NAMEDATTR 1 |
962 #define FH4_ATTRDIR 2 |
962 #define FH4_ATTRDIR 2 |
963 |
963 |
964 #define fh4_fsid fh4_i.fh_fsid |
964 #define fh4_fsid fh4_i.fhx_fsid |
965 #define fh4_len fh4_i.fh_len /* fid length */ |
965 #define fh4_len fh4_i.fhx_len /* fid length */ |
966 #define fh4_data fh4_i.fh_data /* fid bytes */ |
966 #define fh4_data fh4_i.fhx_data /* fid bytes */ |
967 #define fh4_xlen fh4_i.fh_xlen |
967 #define fh4_xlen fh4_i.fhx_xlen |
968 #define fh4_xdata fh4_i.fh_xdata |
968 #define fh4_xdata fh4_i.fhx_xdata |
969 typedef struct nfs_fh4_fmt nfs_fh4_fmt_t; |
969 typedef struct nfs_fh4_fmt nfs_fh4_fmt_t; |
970 |
970 |
971 #define fh4_to_fmt4(fh4p) ((nfs_fh4_fmt_t *)(fh4p)->nfs_fh4_val) |
971 #define fh4_to_fmt4(fh4p) ((nfs_fh4_fmt_t *)(fh4p)->nfs_fh4_val) |
972 #define get_fh4_flag(fh4p, flag) ((fh4_to_fmt4(fh4p)->fh4_flag) & (flag)) |
972 #define get_fh4_flag(fh4p, flag) ((fh4_to_fmt4(fh4p)->fh4_flag) & (flag)) |
973 #define set_fh4_flag(fh4p, flag) ((fh4_to_fmt4(fh4p)->fh4_flag) |= (flag)) |
973 #define set_fh4_flag(fh4p, flag) ((fh4_to_fmt4(fh4p)->fh4_flag) |= (flag)) |
1284 extern const struct fs_operation_def nfs4_vnodeops_template[]; |
1284 extern const struct fs_operation_def nfs4_vnodeops_template[]; |
1285 |
1285 |
1286 extern uint_t nfs4_tsize(struct knetconfig *); |
1286 extern uint_t nfs4_tsize(struct knetconfig *); |
1287 extern uint_t rfs4_tsize(struct svc_req *); |
1287 extern uint_t rfs4_tsize(struct svc_req *); |
1288 |
1288 |
|
1289 extern bool_t xdr_inline_encode_nfs_fh4(uint32_t **, uint32_t *, |
|
1290 nfs_fh4_fmt_t *); |
|
1291 |
1289 #ifdef DEBUG |
1292 #ifdef DEBUG |
1290 extern int rfs4_do_pre_op_attr; |
1293 extern int rfs4_do_pre_op_attr; |
1291 extern int rfs4_do_post_op_attr; |
1294 extern int rfs4_do_post_op_attr; |
1292 #endif |
1295 #endif |
1293 |
1296 |