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>
SMB-11 SMB2 message parse & dispatch
SMB-12 SMB2 Negotiate Protocol
SMB-13 SMB2 Session Setup
SMB-14 SMB2 Logoff
SMB-15 SMB2 Tree Connect
SMB-16 SMB2 Tree Disconnect
SMB-17 SMB2 Create
SMB-18 SMB2 Close
SMB-19 SMB2 Flush
SMB-20 SMB2 Read
SMB-21 SMB2 Write
SMB-22 SMB2 Lock/Unlock
SMB-23 SMB2 Ioctl
SMB-24 SMB2 Cancel
SMB-25 SMB2 Echo
SMB-26 SMB2 Query Dir
SMB-27 SMB2 Change Notify
SMB-28 SMB2 Query Info
SMB-29 SMB2 Set Info
SMB-30 SMB2 Oplocks
SMB-53 SMB2 Create Context options
(SMB2 code review cleanup 1, 2, 3)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbsrv/smb_fsinfo.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_fsinfo.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       23 + * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  
  26   26  #include <smbsrv/smb_kproto.h>
  27   27  #include <smbsrv/smb_fsops.h>
  28   28  #include <smbsrv/smbinfo.h>
  29   29  
  30   30  static int smb_trans2_set_fs_ctrl_info(smb_request_t *, smb_xa_t *);
  31   31  
  32   32  /*
  33   33   * smb_com_query_information_disk
↓ open down ↓ 13 lines elided ↑ open up ↑
  47   47   * about is the total disk size, in bytes, and the free space, in bytes.
  48   48   * So,  it is reasonable for a server to adjust the relative values of
  49   49   * BlocksPerUnit and BlockSize to accommodate.  If after all adjustment,
  50   50   * the numbers are still too high, the largest possible values for
  51   51   * TotalUnit or FreeUnits (i.e. 0xFFFF) should be returned.
  52   52   */
  53   53  
  54   54  smb_sdrc_t
  55   55  smb_pre_query_information_disk(smb_request_t *sr)
  56   56  {
  57      -        DTRACE_SMB_1(op__QueryInformationDisk__start, smb_request_t *, sr);
       57 +        DTRACE_SMB_START(op__QueryInformationDisk, smb_request_t *, sr);
  58   58          return (SDRC_SUCCESS);
  59   59  }
  60   60  
  61   61  void
  62   62  smb_post_query_information_disk(smb_request_t *sr)
  63   63  {
  64      -        DTRACE_SMB_1(op__QueryInformationDisk__done, smb_request_t *, sr);
       64 +        DTRACE_SMB_DONE(op__QueryInformationDisk, smb_request_t *, sr);
  65   65  }
  66   66  
  67   67  smb_sdrc_t
  68   68  smb_com_query_information_disk(smb_request_t *sr)
  69   69  {
  70   70          int                     rc;
  71   71          fsblkcnt64_t            total_blocks, free_blocks;
  72   72          unsigned long           block_size, unit_size;
  73   73          unsigned short          blocks_per_unit, bytes_per_block;
  74   74          unsigned short          total_units, free_units;
↓ open down ↓ 462 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX