Merge pull request #26363 from garethgreenaway/2015_8_26327_more_invisible_mount_options

Fixes to mount state 2015.8
This commit is contained in:
Mike Place 2015-08-17 12:50:28 -06:00
commit 59c1e86087

View File

@ -235,9 +235,18 @@ def mounted(name,
# Some filesystems have options which should not force a remount.
mount_ignore_fs_keys = {
'ramfs': ['size']
}
}
# Some options are translated once mounted
mount_translate_options = {
'tcp': 'proto=tcp',
'udp': 'proto=udp',
}
for opt in opts:
if opt in mount_translate_options:
opt = mount_translate_options[opt]
keyval_option = opt.split('=')[0]
if keyval_option in mount_invisible_keys:
opt = keyval_option