Print this page
NEX-16824 SMB client connection setup rework
NEX-17232 SMB client reconnect failures
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (improve debug)
NEX-16805 Add smbutil discon command
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
3328 smbutil view does't work with Win2008 and later
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
        
*** 21,49 ****
  
  #
  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  # Use is subject to license terms.
  #
  
  #
  # cmd/fs.d/smbclnt/smbutil/Makefile
  #
  
  PROG=           smbutil
  
! include         $(SRC)/cmd/Makefile.cmd
  
- OBJS=   smbutil.o login.o lookup.o print.o status.o view.o
- 
  SRCS=   $(OBJS:%.o=%.c)
  POFILE= smbutil_all.po
  POFILES= $(OBJS:%.o=%.po)
  CLOBBERFILES+=  $(POFILE) $(POFILES)
  
  CSTD= $(CSTD_GNU99)
  
! LDLIBS += -lsmbfs -lnsl
  
  CPPFLAGS += -I$(SRC)/lib/libsmbfs \
          -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
  
  # Debugging
--- 21,55 ----
  
  #
  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  # Use is subject to license terms.
  #
+ # Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
+ #
  
  #
  # cmd/fs.d/smbclnt/smbutil/Makefile
  #
  
  PROG=           smbutil
  
! OBJS=   smbutil.o discon.o info.o login.o lookup.o print.o status.o view.o \
!         shares_rpc.o srvsvc1_clnt.o srvsvc1_ndr.o
  
  SRCS=   $(OBJS:%.o=%.c)
+ 
+ include         $(SRC)/cmd/Makefile.cmd
+ 
  POFILE= smbutil_all.po
  POFILES= $(OBJS:%.o=%.po)
+ 
+ CLEANFILES +=  srvsvc1_ndr.c
  CLOBBERFILES+=  $(POFILE) $(POFILES)
  
  CSTD= $(CSTD_GNU99)
  
! LDLIBS += -lmlrpc -lsmbfs -lnsl
  
  CPPFLAGS += -I$(SRC)/lib/libsmbfs \
          -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
  
  # Debugging
*** 76,86 ****
          $(RM) $@
          $(CAT) $(POFILES) > $@
  
  lint:   lint_SRCS
  
! clean :
!         $(RM) $(OBJS)
  
- .KEEP_STATE:
- 
  include ../../../Makefile.targ
--- 82,95 ----
          $(RM) $@
          $(CAT) $(POFILES) > $@
  
  lint:   lint_SRCS
  
! clean:
!         $(RM) $(OBJS) $(CLEANFILES)
  
  include ../../../Makefile.targ
+ 
+ srvsvc1_ndr.c : srvsvc1.ndl
+         $(NDRGEN) -Y $(ANSI_CPP) $(CPPFLAGS) srvsvc1.ndl
+ 
+ .KEEP_STATE: