Print this page
    
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/uts/common/fs/fs_subr.h
          +++ new/usr/src/uts/common/fs/fs_subr.h
   1    1  /*
   2    2   * CDDL HEADER START
   3    3   *
   4    4   * The contents of this file are subject to the terms of the
   5    5   * Common Development and Distribution License (the "License").
   6    6   * You may not use this file except in compliance with the License.
   7    7   *
   8    8   * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9   * or http://www.opensolaris.org/os/licensing.
  10   10   * See the License for the specific language governing permissions
  11   11   * and limitations under the License.
  12   12   *
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  /*
  25   25   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   */
  28   28  
  29   29  #ifndef _SYS_FS_SUBR_H
  30   30  #define _SYS_FS_SUBR_H
  31   31  
  32   32  #include <sys/types.h>
  33   33  #include <sys/cred.h>
  34   34  #include <sys/fcntl.h>
  35   35  #include <sys/poll.h>
  36   36  #include <sys/vfs.h>
  37   37  #include <sys/vnode.h>
  38   38  #include <vm/page.h>
  39   39  #include <sys/acl.h>
  40   40  #include <sys/share.h>
  
    | 
      ↓ open down ↓ | 
    40 lines elided | 
    
      ↑ open up ↑ | 
  
  41   41  #include <sys/flock.h>
  42   42  
  43   43  #ifdef  __cplusplus
  44   44  extern "C" {
  45   45  #endif
  46   46  
  47   47  /*
  48   48   * Utilities shared among file system implementations.
  49   49   */
  50   50  
  51      -#ifdef  _KERNEL
       51 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
  52   52  
  53   53  extern int      fs_nosys();
  54   54  extern int      fs_inval();
  55   55  extern int      fs_notdir();
  56   56  extern int      fs_nosys_map(struct vnode *, offset_t, struct as *, caddr_t *,
  57   57                          size_t, uchar_t, uchar_t, uint_t, struct cred *,
  58   58                          caller_context_t *);
  59   59  extern int      fs_nosys_addmap(struct vnode *, offset_t, struct as *, caddr_t,
  60   60                          size_t, uchar_t, uchar_t, uint_t, struct cred *,
  61   61                          caller_context_t *);
  62   62  extern int      fs_nosys_poll(struct vnode *, short, int, short *,
  63   63                          struct pollhead **, caller_context_t *);
  64   64  extern int      fs_ioctl(vnode_t *, int, intptr_t, int, cred_t *, int *);
  65   65  extern int      fs_putpage(vnode_t *, offset_t, size_t, int, cred_t *,
  66   66                          caller_context_t *);
  67   67  extern int      fs_fsync(vnode_t *, int, cred_t *, caller_context_t *);
  68   68  extern int      fs_sync(struct vfs *, short, cred_t *);
  69   69  extern int      fs_rwlock(vnode_t *, int, caller_context_t *);
  70   70  extern void     fs_rwunlock(vnode_t *, int, caller_context_t *);
  71   71  extern int      fs_cmp(vnode_t *, vnode_t *, caller_context_t *);
  72   72  extern int      fs_seek(vnode_t *, offset_t, offset_t *, caller_context_t *);
  73   73  extern int      fs_frlock(vnode_t *, int, struct flock64 *, int, offset_t,
  74   74                          struct flk_callback *, cred_t *, caller_context_t *);
  75   75  extern int      fs_setfl(vnode_t *, int, int, cred_t *, caller_context_t *);
  76   76  extern int      fs_poll(vnode_t *, short, int, short *, struct pollhead **,
  77   77                          caller_context_t *);
  78   78  extern int      fs_pathconf(struct vnode *, int, ulong_t *, struct cred *,
  79   79                          caller_context_t *);
  80   80  extern void     clkset(time_t);
  81   81  extern void     fs_dispose(struct vnode *, page_t *, int, int, struct cred *,
  82   82                          caller_context_t *);
  83   83  extern void     fs_nodispose(struct vnode *, page_t *, int, int, struct cred *,
  84   84                          caller_context_t *);
  85   85  extern int      fs_fab_acl(struct vnode *, vsecattr_t *, int flag, cred_t *,
  86   86                          caller_context_t *);
  87   87  extern int      fs_shrlock(struct vnode *, int, struct shrlock *, int,
  88   88                          cred_t *, caller_context_t *);
  89   89  extern int      fs_vnevent_nosupport(vnode_t *, vnevent_t, vnode_t *dvp,
  90   90                          char *fnm, caller_context_t *);
  91   91  extern int      fs_vnevent_support(vnode_t *, vnevent_t, vnode_t *dvp,
  92   92                          char *fnm, caller_context_t *);
  93   93  extern int      fs_acl_nontrivial(struct vnode *vp, struct cred *cr);
  94   94  extern int      fs_need_estale_retry(int);
  95   95  extern void     fs_vscan_register(int (*av_scan)(vnode_t *, cred_t *, int));
  96   96  extern int      fs_vscan(vnode_t *, cred_t *, int);
  97   97  
  98   98  #endif  /* _KERNEL */
  99   99  
 100  100  #ifdef  __cplusplus
 101  101  }
 102  102  #endif
 103  103  
 104  104  #endif /* _SYS_FS_SUBR_H */
  
    | 
      ↓ open down ↓ | 
    43 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX