block/nfs: Introduce runtime_opts in NFS
authorAshijeet Acharya <ashijeetacharya@gmail.com>
Mon, 31 Oct 2016 15:05:49 +0000 (20:35 +0530)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2016 15:52:39 +0000 (16:52 +0100)
commit94d6a7a76e9df9919629428f6c598e2b97d9426c
tree1b3fb7cf0952317e8c412d05cb61e50c846fb4bc
parent68875e9fdae385f3be6c6f6eb1b62ae4065ea0be
block/nfs: Introduce runtime_opts in NFS

Make NFS block driver use various fine grained runtime_opts.
Set .bdrv_parse_filename() to nfs_parse_filename() and introduce two
new functions nfs_parse_filename() and nfs_parse_uri() to help parsing
the URI.
Add a new option "server" which then accepts a new struct NFSServer.

Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
[ kwolf: Fixed client->path ]
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nfs.c