add "smbstatus" output to webUI
Description
Competition Assessment
relates to
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Automation for Jira October 31, 2023 at 2:23 PM
This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.
Bug Clerk October 25, 2023 at 9:21 AM
Andrew Walker December 29, 2020 at 10:09 PM
Okay. I cleaned that up. The changes to source3/util/status.c are already merged (so we can efficiently query based on "session_id").
I altered the field name from "pid" to "session_id". There's a corresponding middleware change I haven't merged yet. This will simplify the returned data structure as follows. Note usage of filters to obtain a specific session_id. Tickets are now linked as "related to" this one.
truenas# midclt call smb.status LOCKS '[["session_id", "=", "12354"]]' '{}' '{"verbose": false}' | jq
[
{
"session_id": "12354",
"uid": 1000,
"access_mask": {
"raw": "0x00000003"
},
"oplock": {
"EXCLUSIVE": false,
"BATCH": false,
"LEVEL_II": false,
"LEASE": false
},
"lease": {
"READ": false,
"WRITE": false,
"HANDLE": false
},
"service_path": "/mnt/dozer/POSIX",
"filename": ".bash_history"
}
]
Denys Butenko December 29, 2020 at 1:12 PM
Thanks @Andrew Walker! The SESSIONS response looks good now. LOCKS still relying on the username rather than PID, is that will be changed?
Andrew Walker December 22, 2020 at 9:17 PM
Change to JSON output is merged. Probably will be built in next nightly.
It would be beneficial if we could have the output of smbstatus in the webUI. This provides valuable information when trying to diagnose oplock issues related to samba.