mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #26363 from garethgreenaway/2015_8_26327_more_invisible_mount_options
Fixes to mount state 2015.8
This commit is contained in:
commit
59c1e86087
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user