Skip to content
Permalink
Browse files

allow nfs4 version written as 4.0 (bsc#1105674)

  • Loading branch information...
jreidinger committed Aug 23, 2018
1 parent 99ab4f1 commit aba51e6c49e5a27c631d2f49e78be2c5f9d68b02
Showing with 3 additions and 1 deletion.
  1. +2 −1 src/lib/y2nfs_client/nfs_version.rb
  2. +1 −0 test/nfs_options_test.rb
@@ -65,7 +65,8 @@ def self.all
# @param value [String]
# @return [NfsVersion]
def self.for_mntops_value(value)
all.find { |version| version.mntops_value == value }
value = "4" if value == "4.0"
all.find { |version| version.mntops_value == value } or raise "Unknown mntops value #{value.inspect}"
end

# Value used in the corresponding mount option (nfsvers or vers)
@@ -107,6 +107,7 @@
{
"nfsvers=4" => "4",
"nfsvers=4,minorversion=1" => "4",
"nfsvers=4.0" => "4",
"defaults,nfsvers=3" => "3",
"nfsvers=4.1,nolock" => "4.1"
}.each_pair do |opts, version|

0 comments on commit aba51e6

Please sign in to comment.
You can’t perform that action at this time.