repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZDR: we need to include both arpa/inet.h and time.h
[deb_libnfs.git]
/
lib
/
libnfs.c
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index e2f96722b32e0f28d73007cb9f8f2466b2614254..c7c9f48285a9f64ade49f9fdd0997d7c16f810ad 100644
(file)
--- a/
lib/libnfs.c
+++ b/
lib/libnfs.c
@@
-37,6
+37,8
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <netinet/in.h>
+#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"
@@
-111,7
+113,7
@@
struct nfs_mcb_data {
static int nfs_lookup_path_async_internal(struct nfs_context *nfs, struct nfs_cb_data *data, struct nfs_fh3 *fh);
static int nfs_lookup_path_async_internal(struct nfs_context *nfs, struct nfs_cb_data *data, struct nfs_fh3 *fh);
-void nfs_set_auth(struct nfs_context *nfs, AUTH *auth)
+void nfs_set_auth(struct nfs_context *nfs,
struct
AUTH *auth)
{
rpc_set_auth(nfs->rpc, auth);
}
{
rpc_set_auth(nfs->rpc, auth);
}
@@
-3341,7
+3343,7
@@
uint64_t nfs_get_readmax(struct nfs_context *nfs)
*/
uint64_t nfs_get_writemax(struct nfs_context *nfs)
{
*/
uint64_t nfs_get_writemax(struct nfs_context *nfs)
{
- /* Some
X
DR libraries can not marshall PDUs bigger than this */
+ /* Some
Z
DR libraries can not marshall PDUs bigger than this */
if (nfs->writemax < 32768) {
return nfs->writemax;
}
if (nfs->writemax < 32768) {
return nfs->writemax;
}
@@
-3547,3
+3549,7
@@
const char *nfs_get_export(struct nfs_context *nfs) {
const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs) {
return &nfs->rootfh;
}
const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs) {
return &nfs->rootfh;
}
+
+struct nfs_fh3 *nfs_get_fh(struct nfsfh *nfsfh) {
+ return &nfsfh->fh;
+}