X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=nfs3%2Fnfs3_prot.h;h=2f8a3737ddf5e6f4d86e444ff8745f4140fb8f55;hb=388030970805a70cb4fad34ade5e3de7a3607a57;hp=77fe5ad0d73221db77cfcc5ddc7ebbc277cd4cd7;hpb=e1b0a756fd5ee4c3959a82ba96a6f6e1b73e1049;p=bluesky.git diff --git a/nfs3/nfs3_prot.h b/nfs3/nfs3_prot.h index 77fe5ad..2f8a373 100644 --- a/nfs3/nfs3_prot.h +++ b/nfs3/nfs3_prot.h @@ -22,6 +22,8 @@ typedef int int32; #define NFS3_CREATEVERFSIZE 8 #define NFS3_WRITEVERFSIZE 8 +extern char nfsd_instance_verf_cookie[NFS3_WRITEVERFSIZE]; + typedef char *filename3; typedef char *nfspath3; @@ -657,6 +659,16 @@ typedef struct { /* Mutex protecting send operations on the socket (to ensure that replies * are not accidentally interleaved). */ GMutex *send_lock; + + /* Is this a UDP connection? */ + gboolean udp_transport; + + /* For UDP connections only, the address of the sender. */ + struct sockaddr_in peer; + + /* For UDP only, a buffer for accumulating the full contents of a message + * before it is sent */ + GString *sendbuf; } RPCConnection; /* Linked list of cleanup functions to call when a request is completed. */ @@ -666,14 +678,16 @@ struct cleanup_list { struct cleanup_list *next; }; +struct BlueSkyProfile; + /* Used to track a single outstanding RPC request. Not all of the fields are * initially filled in, but more are filled in as the request is processed. */ typedef struct { /* The corresponding connection on which the request was made. */ RPCConnection *connection; - /* Timining information for generating statistics about response times. */ - int64_t time_start; + /* To track the time to complete this request and a timing breakdown. */ + struct BlueSkyProfile *profile; /* Transaction ID of the request, in host byte order. */ uint32_t xid;