Project

General

Profile

Feature #10983

add mdb walker for smbd share cache

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

While debugging #10984 we found we needed a way to dump out the "share cache" in smbd. This issue requests adding an mdb walker & dcmd for that.

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

Testing:

# mdb -p `pgrep smbd`
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 libuutil.so.1 libcmdutils.so.1 libmlsvc.so.1 libavl.so.1 libtopo.so.1 libnvpair.so.1 ]
> ::smbd_shr_cache
8166008  name=c$ path=/var/smb/cvol desc="Default Share" 
81d1008  name=testca path=/export/test desc="" 
8163008  name=ipc$ path= desc="Remote IPC" 
81cf008  name=test path=/export/test desc="" 
> 

#3

Updated by Electric Monk 5 months ago

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

git commit e0687fa3d7ea3b0bb17ed079bd9679fc2dffbf4b

commit  e0687fa3d7ea3b0bb17ed079bd9679fc2dffbf4b
Author: Gordon Ross <gwr@nexenta.com>
Date:   2019-05-28T17:34:10.000Z

    10983 add mdb walker for smbd share cache
    Reviewed by: Matt Barden <matt.barden@nexenta.com>
    Reviewed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF