Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/cred.c
          +++ new/usr/src/lib/libfakekernel/common/cred.c
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       14 + * Copyright 2017 RackTop Systems.
  14   15   */
  15   16  
  16   17  
  17   18  #include <sys/types.h>
  18   19  #include <sys/time.h>
  19   20  #include <sys/thread.h>
  20   21  #include <sys/cred.h>
  21   22  
  22   23  struct cred {
  23   24          uint32_t        pad[100];
↓ open down ↓ 21 lines elided ↑ open up ↑
  45   46  {
  46   47  }
  47   48  
  48   49  /*ARGSUSED*/
  49   50  uid_t
  50   51  crgetuid(const cred_t *cr)
  51   52  {
  52   53          return (0);
  53   54  }
  54   55  
       56 +/*ARGSUSED*/
       57 +uid_t
       58 +crgetruid(const cred_t *cr)
       59 +{
       60 +        return (0);
       61 +}
       62 +
       63 +/*ARGSUSED*/
       64 +uid_t
       65 +crgetgid(const cred_t *cr)
       66 +{
       67 +        return (0);
       68 +}
       69 +
       70 +/*ARGSUSED*/
       71 +int
       72 +crgetngroups(const cred_t *cr)
       73 +{
       74 +        return (0);
       75 +}
       76 +
       77 +/*ARGSUSED*/
       78 +const gid_t *
       79 +crgetgroups(const cred_t *cr)
       80 +{
       81 +        return (NULL);
       82 +}
       83 +
  55   84  cred_t *
  56   85  zone_kcred(void)
  57   86  {
  58   87          return (kcred);
  59   88  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX