Print this page
NEX-1643 dtrace provider for smbsrv
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
NEX-8495 Panic after SMB flush on a named pipe
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
        
*** 21,30 ****
--- 21,31 ----
  /*
   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   *
   * Copyright 2016 Syneto S.R.L. All rights reserved.
+  * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
   */
  
  /*
   * The flush SMB is sent to ensure all data and allocation information
   * for the corresponding file has been written to stable storage. This
*** 58,76 ****
  {
          int rc;
  
          rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
  
!         DTRACE_SMB_1(op__Flush__start, smb_request_t *, sr);
  
          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  }
  
  void
  smb_post_flush(smb_request_t *sr)
  {
!         DTRACE_SMB_1(op__Flush__done, smb_request_t *, sr);
  }
  
  smb_sdrc_t
  smb_com_flush(smb_request_t *sr)
  {
--- 59,77 ----
  {
          int rc;
  
          rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
  
!         DTRACE_SMB_START(op__Flush, smb_request_t *, sr);
  
          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  }
  
  void
  smb_post_flush(smb_request_t *sr)
  {
!         DTRACE_SMB_DONE(op__Flush, smb_request_t *, sr);
  }
  
  smb_sdrc_t
  smb_com_flush(smb_request_t *sr)
  {