Project

General

Profile

Bug #10961

want mdb "shares" walker for smbsrv

Added by Gordon Ross 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2019-05-14
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The share list inside the SMB server kmod (smbsrv) has on occasion been found to be out of sync. with what the (user level) libshare thinks the share list should be. While debugging such situations it's very convenient to be able to dump the smbsrv share list, i.e.

# mdb -k 
Loading modules: [ ... ]
> ::smblist
SERVER           ZONE STATE                            
ffffff027b59b580 0    RUNNING                          
> ffffff027b59b580 ::smbshare 
smb_kshare_t     name             path
ffffff027b5ee770 c$               /var/smb/cvol
ffffff027b5ca770 IPC$             IPC$
ffffff027b7a4770 test             /export/test
ffffff027b5fc770 vss$             /var/smb/cvol/windows/system32/vss

History

#1

Updated by Gordon Ross 5 months ago

  • Description updated (diff)
  • Status changed from New to In Progress
#2

Updated by Gordon Ross 5 months ago

  • Description updated (diff)
#3

Updated by Gordon Ross 5 months ago

Testing: Used while debugging later share list issues.

#4

Updated by Electric Monk 5 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 2b8c497c035368b077a9b9afc6244d162a5c9972

commit  2b8c497c035368b077a9b9afc6244d162a5c9972
Author: Gordon Ross <gwr@nexenta.com>
Date:   2019-05-18T23:44:49.000Z

    10961 want mdb "shares" walker for smbsrv
    Reviewed by: Bayard Bell <bayard.bell@nexenta.com>
    Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
    Reviewed by: Matt Barden <Matt.Barden@nexenta.com>
    Approved by: Joshua M. Clulow <josh@sysmgr.org>

Also available in: Atom PDF