upcoming libnfs versions will support logging debug messages. Add support for it in qemu through an URL parameter.
Signed-off-by: Peter Lieven <p...@kamp.de> --- block/nfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/block/nfs.c b/block/nfs.c index ca9e24e..f7388a3 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -329,6 +329,10 @@ static int64_t nfs_client_open(NFSClient *client, const char *filename, } else if (!strcmp(qp->p[i].name, "readahead")) { nfs_set_readahead(client->context, val); #endif +#ifdef LIBNFS_FEATURE_DEBUG + } else if (!strcmp(qp->p[i].name, "debug")) { + nfs_set_debug(client->context, val); +#endif } else { error_setg(errp, "Unknown NFS parameter name: %s", qp->p[i].name); -- 1.9.1