Merge pull request #26362 from garethgreenaway/2015_5_26327_more_invisible_mount_options

Fixes to mount state.
This commit is contained in:
Mike Place 2015-08-17 11:44:55 -06:00
commit 74558f5743

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