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/flock.h
          +++ new/usr/src/uts/common/sys/flock.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
  27   27   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   28   * Use is subject to license terms.
  29   29   */
       30 +/*
       31 + * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       32 + */
  30   33  
  31   34  #ifndef _SYS_FLOCK_H
  32   35  #define _SYS_FLOCK_H
  33   36  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  35      -
  36   37  #include <sys/types.h>
  37   38  #include <sys/fcntl.h>
  38   39  #include <sys/vnode.h>
  39   40  #include <sys/t_lock.h>         /* for <sys/callb.h> */
  40   41  #include <sys/callb.h>
  41   42  #include <sys/param.h>
  42   43  #include <sys/zone.h>
  43   44  
  44   45  #ifdef  __cplusplus
  45   46  extern "C" {
↓ open down ↓ 185 lines elided ↑ open up ↑
 231  232  locklist_t *flk_active_locks_for_vp(const struct vnode *vp);
 232  233  locklist_t *flk_active_nbmand_locks_for_vp(const struct vnode *vp);
 233  234  locklist_t *flk_active_nbmand_locks(pid_t pid);
 234  235  void    flk_free_locklist(locklist_t *);
 235  236  int     flk_convert_lock_data(struct vnode *, struct flock64 *,
 236  237                  u_offset_t *, u_offset_t *, offset_t);
 237  238  int     flk_check_lock_data(u_offset_t, u_offset_t, offset_t);
 238  239  int     flk_has_remote_locks(struct vnode *vp);
 239  240  void    flk_set_lockmgr_status(flk_lockmgr_status_t status);
 240  241  int     flk_sysid_has_locks(int sysid, int chklck);
      242 +int     flk_has_remote_locks_for_sysid(vnode_t *vp, int);
 241  243  void    flk_init_callback(flk_callback_t *,
 242  244                  callb_cpr_t *(*)(flk_cb_when_t, void *), void *);
 243  245  void    flk_add_callback(flk_callback_t *,
 244  246                  callb_cpr_t *(*)(flk_cb_when_t, void *), void *,
 245  247                  flk_callback_t *);
 246  248  callb_cpr_t *flk_invoke_callbacks(flk_callback_t *, flk_cb_when_t);
 247  249  
 248  250  /* Zones hooks */
 249  251  extern  zone_key_t flock_zone_key;
 250  252  
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX