]> Git Repo - qemu.git/commitdiff
block/nfs: add knob to set readahead
authorPeter Lieven <[email protected]>
Tue, 24 Jun 2014 22:06:01 +0000 (00:06 +0200)
committerKevin Wolf <[email protected]>
Thu, 26 Jun 2014 11:51:01 +0000 (13:51 +0200)
upcoming libnfs will feature internal readahead support.
Add a knob to pass the optional readahead value as a URL
parameter.

Signed-off-by: Peter Lieven <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/nfs.c

index 0b44483871bfe0376a97b9cdb422aa35b0e2a99e..8439e0d38964a8e522f09e0e9cbadd6a2484db92 100644 (file)
@@ -321,6 +321,10 @@ static int64_t nfs_client_open(NFSClient *client, const char *filename,
             nfs_set_gid(client->context, val);
         } else if (!strcmp(qp->p[i].name, "tcp-syncnt")) {
             nfs_set_tcp_syncnt(client->context, val);
+#ifdef LIBNFS_FEATURE_READAHEAD
+        } else if (!strcmp(qp->p[i].name, "readahead")) {
+            nfs_set_readahead(client->context, val);
+#endif
         } else {
             error_setg(errp, "Unknown NFS parameter name: %s",
                        qp->p[i].name);
This page took 0.025205 seconds and 4 git commands to generate.