Print this page
NEX-5560 smb2 should use 64-bit server-global uids
Reviewed by: Gordon Ross <gwr@nexenta.com>
NEX-2460 libfksmbd should not link with libsmb
NEX-1638 Updated DC Locator
 Includes work by: matt.barden@nexenta.com, kevin.crowe@nexenta.com
SMB-136 Snapshots not visible in Windows previous versions
re #6854 FindFirstFile,FindFirstFileEx,... are not working correctly on Nexenta CIFS-shares

Split Close
Expand all
Collapse all
          --- old/usr/src/common/smbsrv/smb_xdr.c
          +++ new/usr/src/common/smbsrv/smb_xdr.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) 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
       23 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  24   24   */
  25   25  
  26   26  #include <sys/sunddi.h>
  27   27  #if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
  28   28  #include <string.h>
  29   29  #include <strings.h>
  30   30  #include <stddef.h>
  31   31  #endif /* _KERNEL */
  32   32  #include <smbsrv/smb_door.h>
  33   33  #include <smbsrv/alloc.h>
↓ open down ↓ 197 lines elided ↑ open up ↑
 231  231  }
 232  232  
 233  233  /*
 234  234   * XDR encode/decode for smb_netuserinfo_t.
 235  235   */
 236  236  bool_t
 237  237  smb_netuserinfo_xdr(XDR *xdrs, smb_netuserinfo_t *objp)
 238  238  {
 239  239          if (!xdr_uint64_t(xdrs, &objp->ui_session_id))
 240  240                  return (FALSE);
 241      -        if (!xdr_uint16_t(xdrs, &objp->ui_smb_uid))
 242      -                return (FALSE);
 243  241          if (!xdr_uint16_t(xdrs, &objp->ui_domain_len))
 244  242                  return (FALSE);
 245  243          if (!xdr_string(xdrs, &objp->ui_domain, ~0))
 246  244                  return (FALSE);
 247  245          if (!xdr_uint16_t(xdrs, &objp->ui_account_len))
 248  246                  return (FALSE);
 249  247          if (!xdr_string(xdrs, &objp->ui_account, ~0))
 250  248                  return (FALSE);
 251  249          if (!xdr_uint32_t(xdrs, &objp->ui_posix_uid))
 252  250                  return (FALSE);
↓ open down ↓ 512 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX