Print this page
195 Need replacement for nfs/lockd+klm
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Jeremy Jones <jeremy@delphix.com>
Reviewed by: Jeff Biseda <jbiseda@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/share.h
          +++ new/usr/src/uts/common/sys/share.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  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  /*
       22 + * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       23 + */
       24 +/*
  22   25   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   26   * Use is subject to license terms.
  24   27   */
  25   28  
  26   29  #ifndef _SYS_SHARE_H
  27   30  #define _SYS_SHARE_H
  28   31  
  29   32  #include <sys/types.h>
  30   33  
  31   34  #ifdef  __cplusplus
↓ open down ↓ 27 lines elided ↑ open up ↑
  59   62          struct shrlock *shr;
  60   63          struct shrlocklist *next;
  61   64  };
  62   65  
  63   66  #if defined(_KERNEL)
  64   67  struct flock64;
  65   68  
  66   69  extern int add_share(struct vnode *, struct shrlock *);
  67   70  extern int del_share(struct vnode *, struct shrlock *);
  68   71  extern void cleanshares(struct vnode *, pid_t);
       72 +extern void cleanshares_by_sysid(struct vnode *, int32_t);
  69   73  extern int shr_has_remote_shares(vnode_t *, int32_t);
  70   74  extern int proc_has_nbmand_share_on_vp(vnode_t *, pid_t);
  71   75  #endif /* _KERNEL */
  72   76  
  73   77  #ifdef  __cplusplus
  74   78  }
  75   79  #endif
  76   80  
  77   81  #endif /* _SYS_SHARE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX