Adding unsupported NAS share options |
Sometime customers want smb.conf options that are supported yet. You should escalate and write a bug, but it is possible to modify the list in
/usr/local/quantum/python/sml/sml_constants.py.
Example:
M660:cx-node2> share change smb smbshare hide_unreadable = yes
Option 'hide_unreadable = yes' for Share 'smbshare' is invalid (E-5054)
Change this in sml_constants.py:
VALID_SMB_OPTIONS = ['admin users', 'browsable', 'browseable', 'comment',
'create mask', 'create mode', 'directory', 'directory mask',
'directory mode', 'guest ok', 'invalid users', 'path',
'public', 'read list', 'read only',
'snfs:capacity', 'snfs:disable perms',
'user', 'username', 'users',
'valid users', 'writable', 'write list', 'writeable',
'mangled names', 'default case', 'case sensitive',
'preserve case', 'short preserve case', 'veto files',
'delete veto files', 'smb encrypt', 'hosts allow',
'delete readonly', 'acl check permissions',
'force user', 'force group',
'force create mode', 'force directory mode',
'hide files',
SMB_INHERIT_PERMISSIONS ] + SMB_FRUIT_OPTIONS
To this:
VALID_SMB_OPTIONS = ['hide_unreadable', ‘admin users', 'browsable', 'browseable', 'comment',
'create mask', 'create mode', 'directory', 'directory mask',
'directory mode', 'guest ok', 'invalid users', 'path',
'public', 'read list', 'read only',
'snfs:capacity', 'snfs:disable perms',
'user', 'username', 'users',
'valid users', 'writable', 'write list', 'writeable',
'mangled names', 'default case', 'case sensitive',
'preserve case', 'short preserve case', 'veto files',
'delete veto files', 'smb encrypt', 'hosts allow',
'delete readonly', 'acl check permissions',
'force user', 'force group',
'force create mode', 'force directory mode',
'hide files',
SMB_INHERIT_PERMISSIONS ] + SMB_FRUIT_OPTIONS
Run the command again:
M660:cx-node2> share change smb smbshare hide_unreadable = yes
Share smbshare successfully changed
This page was generated by the BrainKeeper Enterprise Wiki, © 2018 |