Add support for writing to random 64 bit offsets for nfs WRITE3
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 11 Dec 2009 22:25:52 +0000 (09:25 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 11 Dec 2009 22:25:52 +0000 (09:25 +1100)
libnfs.c
libnfs.h
loadfiles/nfs.txt

index 5fde97d53bbb5abb6477638949155c75fa9adca3..3f60eff5210775ca09ede0793479236ec8b03bf8 100644 (file)
--- a/libnfs.c
+++ b/libnfs.c
@@ -776,7 +776,7 @@ finished:
 }
 
 
-nfsstat3 nfsio_write(struct nfsio *nfsio, const char *name, char *buf, uint32 offset, int len, int stable)
+nfsstat3 nfsio_write(struct nfsio *nfsio, const char *name, char *buf, uint64_t offset, int len, int stable)
 {
        struct WRITE3args WRITE3args;
        struct WRITE3res *WRITE3res;
index 0b0dd8bee214d9770d9bb4f92d014ab0b3c51e49..0462209a4a6d9c86681e0e037490da3bf4632c5f 100644 (file)
--- a/libnfs.h
+++ b/libnfs.h
@@ -6,7 +6,7 @@ nfsstat3 nfsio_lookup(struct nfsio *nfsio, const char *name, fattr3 *attributes)
 nfsstat3 nfsio_access(struct nfsio *nfsio, const char *name, uint32 desired, uint32 *access);
 nfsstat3 nfsio_create(struct nfsio *nfsio, const char *name);
 nfsstat3 nfsio_remove(struct nfsio *nfsio, const char *name);
-nfsstat3 nfsio_write(struct nfsio *nfsio, const char *name, char *buf, uint32 offset, int len, int stable);
+nfsstat3 nfsio_write(struct nfsio *nfsio, const char *name, char *buf, uint64_t offset, int len, int stable);
 nfsstat3 nfsio_commit(struct nfsio *nfsio, const char *name);
 nfsstat3 nfsio_read(struct nfsio *nfsio, const char *name, char *buf, uint64_t offset, int len, int *count, int *eof);
 nfsstat3 nfsio_fsinfo(struct nfsio *nfsio);
index 0dd21d7a92b437993c2ac778b027a0de1fec6734..a3200240dcf706db60e70ad99fbd2c451959fb3a 100644 (file)
@@ -1,5 +1,6 @@
-# The READ3 command takes an offset. This can be specified eitehr as an absolute
-# number, but also as a simple expression for generation of random I/O
+# The READ3/WRITE3 commands takes an offset. This can be specified either as
+# an absolute number, but also as a simple expression for generation of
+# random I/O
 #
 # Offset is then a string starting with a '*' followed by one or more
 # qualifier :