Skip to content

Commit 7428818

Browse files
mgr/smb: Add new configs to share definition
Inorder to support Microsoft Management Console (MMC) plugin feature, ceph manager must handle all fields supported by `add share command` and related smb.conf options. Added "comment" and "max connections" entries to the Samba configuration generated by the Ceph Manager module. These fields are required for MMC integration and will be made configurable in a future update. Signed-off-by: Shwetha K Acharya <[email protected]>
1 parent 63db0db commit 7428818

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

qa/suites/orch/cephadm/smb/tasks/deploy_smb_basic.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ tasks:
5151
"kernel share modes" = "no"
5252
"read only" = "no"
5353
"browseable" = "yes"
54+
"comment" = ""
55+
"max connections" = "0"
5456
[globals.default.options]
5557
"load printers" = "no"
5658
"printing" = "bsd"

qa/suites/orch/cephadm/smb/tasks/deploy_smb_domain.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ tasks:
5050
"kernel share modes" = "no"
5151
"read only" = "no"
5252
"browseable" = "yes"
53+
"comment" = ""
54+
"max connections" = "0"
5355
[globals.default.options]
5456
"load printers" = "no"
5557
"printing" = "bsd"

src/pybind/mgr/smb/handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,8 @@ def _generate_share(
11961196
'browseable': ynbool(share.browseable),
11971197
'kernel share modes': 'no',
11981198
'x:ceph:id': f'{share.cluster_id}.{share.share_id}',
1199+
'comment': '',
1200+
'max connections': '0',
11991201
}
12001202
}
12011203
if proxy_val:

0 commit comments

Comments
 (0)