storage: pool: Allow more intricate nfs protocol versions

Treat the 'protocolVer' field as a string so that e.g. '4.1' can be
used. Forbid only ',' in the string as it's a separator of arguments for
mount options.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa
2022-06-23 17:17:06 +02:00
parent 5333cf9d2f
commit c44930d932
8 changed files with 16 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
mount \
-o nodev,nosuid,noexec,nfsvers=3 \
-o nodev,nosuid,noexec,nfsvers=4.1 \
-t nfs \
localhost:/var/lib/libvirt/images \
/mnt