Don't clamp write3 max to 32k
[deb_libnfs.git] / lib / libnfs.c
index 2915c9a99b6edf65123925490f3f696bc50f34c5..0b831234ac0e84479d0847bf0cfc0e88c28972a5 100644 (file)
@@ -1028,7 +1028,7 @@ int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh, uint64_t offse
 
        /* trying to read more than maximum server read size, we has to chop it up into smaller
         * reads and collect into a reassembly buffer.
-        * we send all reads in parallell so that performance is still good.
+        * we send all reads in parallel so that performance is still good.
         */
        data->max_offset = offset;
        data->start_offset = offset;
@@ -1208,7 +1208,7 @@ int nfs_pwrite_async(struct nfs_context *nfs, struct nfsfh *nfsfh, uint64_t offs
 
        /* trying to write more than maximum server write size, we has to chop it up into smaller
         * chunks.
-        * we send all writes in parallell so that performance is still good.
+        * we send all writes in parallel so that performance is still good.
         */
        data->max_offset = offset;
        data->start_offset = offset;
@@ -2868,7 +2868,6 @@ int nfs_utimes_async(struct nfs_context *nfs, const char *path, struct timeval *
 /*
  * Async utime()
  */
-#ifdef HAVE_UTIME_H
 int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *times, nfs_cb cb, void *private_data)
 {
        struct timeval *new_times = NULL;
@@ -2893,7 +2892,6 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t
 
        return 0;
 }
-#endif
 
 
 /*
@@ -3448,11 +3446,7 @@ uint64_t nfs_get_readmax(struct nfs_context *nfs)
  */
 uint64_t nfs_get_writemax(struct nfs_context *nfs)
 {
-       /* Some ZDR libraries can not marshall PDUs bigger than this */
-        if (nfs->writemax < 32768) {
-               return nfs->writemax;
-       }
-       return 32768;
+       return nfs->writemax;
 }
 
 void nfs_set_error(struct nfs_context *nfs, char *error_string, ...)