X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibnfs-private.h;h=29f04066a51dee23e2d10aa935ce9303f7656fb4;hb=6494f8fcd40d4228b84779b630c488794574a273;hp=85cc8f979b0a9a0597af5735733437de12f66715;hpb=1744ef90110e99efc5b3c10953ff664b7276517c;p=deb_libnfs.git diff --git a/include/libnfs-private.h b/include/libnfs-private.h index 85cc8f9..29f0406 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -17,6 +17,12 @@ #include #include +struct rpc_fragment { + struct rpc_fragment *next; + uint64_t size; + char *data; +}; + struct rpc_context { int fd; int is_connected; @@ -49,6 +55,9 @@ struct rpc_context { /* track the address we connect to so we can auto-reconnect on session failure */ struct sockaddr_storage s; int auto_reconnect; + + /* fragment reassembly */ + struct rpc_fragment *fragments; }; struct rpc_pdu { @@ -92,3 +101,7 @@ struct sockaddr *rpc_get_recv_sockaddr(struct rpc_context *rpc); void rpc_set_autoreconnect(struct rpc_context *rpc); void rpc_unset_autoreconnect(struct rpc_context *rpc); +int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size); +void rpc_free_all_fragments(struct rpc_context *rpc); + +const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs);