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)


  31 
  32 #include <sys/types.h>
  33 #include <sys/cred.h>
  34 #include <sys/fcntl.h>
  35 #include <sys/poll.h>
  36 #include <sys/vfs.h>
  37 #include <sys/vnode.h>
  38 #include <vm/page.h>
  39 #include <sys/acl.h>
  40 #include <sys/share.h>
  41 #include <sys/flock.h>
  42 
  43 #ifdef  __cplusplus
  44 extern "C" {
  45 #endif
  46 
  47 /*
  48  * Utilities shared among file system implementations.
  49  */
  50 
  51 #ifdef  _KERNEL
  52 
  53 extern int      fs_nosys();
  54 extern int      fs_inval();
  55 extern int      fs_notdir();
  56 extern int      fs_nosys_map(struct vnode *, offset_t, struct as *, caddr_t *,
  57                         size_t, uchar_t, uchar_t, uint_t, struct cred *,
  58                         caller_context_t *);
  59 extern int      fs_nosys_addmap(struct vnode *, offset_t, struct as *, caddr_t,
  60                         size_t, uchar_t, uchar_t, uint_t, struct cred *,
  61                         caller_context_t *);
  62 extern int      fs_nosys_poll(struct vnode *, short, int, short *,
  63                         struct pollhead **, caller_context_t *);
  64 extern int      fs_ioctl(vnode_t *, int, intptr_t, int, cred_t *, int *);
  65 extern int      fs_putpage(vnode_t *, offset_t, size_t, int, cred_t *,
  66                         caller_context_t *);
  67 extern int      fs_fsync(vnode_t *, int, cred_t *, caller_context_t *);
  68 extern int      fs_sync(struct vfs *, short, cred_t *);
  69 extern int      fs_rwlock(vnode_t *, int, caller_context_t *);
  70 extern void     fs_rwunlock(vnode_t *, int, caller_context_t *);
  71 extern int      fs_cmp(vnode_t *, vnode_t *, caller_context_t *);




  31 
  32 #include <sys/types.h>
  33 #include <sys/cred.h>
  34 #include <sys/fcntl.h>
  35 #include <sys/poll.h>
  36 #include <sys/vfs.h>
  37 #include <sys/vnode.h>
  38 #include <vm/page.h>
  39 #include <sys/acl.h>
  40 #include <sys/share.h>
  41 #include <sys/flock.h>
  42 
  43 #ifdef  __cplusplus
  44 extern "C" {
  45 #endif
  46 
  47 /*
  48  * Utilities shared among file system implementations.
  49  */
  50 
  51 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
  52 
  53 extern int      fs_nosys();
  54 extern int      fs_inval();
  55 extern int      fs_notdir();
  56 extern int      fs_nosys_map(struct vnode *, offset_t, struct as *, caddr_t *,
  57                         size_t, uchar_t, uchar_t, uint_t, struct cred *,
  58                         caller_context_t *);
  59 extern int      fs_nosys_addmap(struct vnode *, offset_t, struct as *, caddr_t,
  60                         size_t, uchar_t, uchar_t, uint_t, struct cred *,
  61                         caller_context_t *);
  62 extern int      fs_nosys_poll(struct vnode *, short, int, short *,
  63                         struct pollhead **, caller_context_t *);
  64 extern int      fs_ioctl(vnode_t *, int, intptr_t, int, cred_t *, int *);
  65 extern int      fs_putpage(vnode_t *, offset_t, size_t, int, cred_t *,
  66                         caller_context_t *);
  67 extern int      fs_fsync(vnode_t *, int, cred_t *, caller_context_t *);
  68 extern int      fs_sync(struct vfs *, short, cred_t *);
  69 extern int      fs_rwlock(vnode_t *, int, caller_context_t *);
  70 extern void     fs_rwunlock(vnode_t *, int, caller_context_t *);
  71 extern int      fs_cmp(vnode_t *, vnode_t *, caller_context_t *);