Print this page
NEX-3758 Support for remote stale lock detection
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/klm/nlm_impl.h
          +++ new/usr/src/uts/common/klm/nlm_impl.h
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  22   22   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  23   23   * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  24   24   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  25   25   * SUCH DAMAGE.
  26   26   *
  27   27   * $FreeBSD$
  28   28   */
  29   29  
  30   30  /*
  31      - * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
       31 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  32   32   * Copyright (c) 2012 by Delphix. All rights reserved.
  33   33   */
  34   34  
  35   35  /*
  36   36   * NFS Lock Manager (NLM) private declarations, etc.
  37   37   *
  38   38   * Source code derived from FreeBSD nlm.h
  39   39   */
  40   40  
  41   41  #ifndef _NLM_NLM_H_
  42   42  #define _NLM_NLM_H_
  43   43  
  44   44  #include <sys/cmn_err.h>
  45   45  #include <sys/queue.h>
  46   46  #include <sys/modhash.h>
  47   47  #include <sys/avl.h>
       48 +#include <sys/socket.h>
  48   49  
  49   50  #define RPC_MSGOUT(args...)     cmn_err(CE_NOTE, args)
  50   51  #define NLM_ERR(...)            cmn_err(CE_NOTE, __VA_ARGS__)
  51   52  #define NLM_WARN(...)           cmn_err(CE_WARN, __VA_ARGS__)
  52   53  
  53   54  #ifndef SEEK_SET
  54   55  #define SEEK_SET        0
  55   56  #endif
  56   57  #ifndef SEEK_CUR
  57   58  #define SEEK_CUR        1
↓ open down ↓ 464 lines elided ↑ open up ↑
 522  523  
 523  524  /*
 524  525   * NLM internal functions for initialization.
 525  526   */
 526  527  void nlm_init(void);
 527  528  void nlm_rpc_init(void);
 528  529  void nlm_rpc_cache_destroy(struct nlm_host *);
 529  530  void nlm_globals_register(struct nlm_globals *);
 530  531  void nlm_globals_unregister(struct nlm_globals *);
 531  532  sysid_t nlm_sysid_alloc(void);
      533 +int nlm_sysid_to_host(zoneid_t, sysid_t, struct sockaddr *, const char **);
 532  534  
 533  535  /*
 534  536   * Client reclamation/cancelation
 535  537   */
 536  538  void nlm_reclaim_client(struct nlm_globals *, struct nlm_host *);
 537  539  void nlm_client_cancel_all(struct nlm_globals *, struct nlm_host *);
 538  540  
 539  541  /* (nlm_rpc_clnt.c) */
 540  542  enum clnt_stat nlm_null_rpc(CLIENT *, rpcvers_t);
 541  543  enum clnt_stat nlm_test_rpc(nlm4_testargs *, nlm4_testres *,
↓ open down ↓ 101 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX