nfscl.h (e477abf734cc777a55286bfbd6b80a6760c96acf) | nfscl.h (1f60bfd8227f0972d61f5977ba62452335b757e0) |
---|---|
1/*- 2 * Copyright (c) 2009 Rick Macklem, University of Guelph 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 35 unchanged lines hidden (view full) --- 44 45#define NFS4NODENAME(n) (&((n)->n4_data[(n)->n4_fhlen])) 46 47/* 48 * Just a macro to convert the nfscl_reqstart arguments. 49 */ 50#define NFSCL_REQSTART(n, p, v) \ 51 nfscl_reqstart((n), (p), VFSTONFS((v)->v_mount), \ | 1/*- 2 * Copyright (c) 2009 Rick Macklem, University of Guelph 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 35 unchanged lines hidden (view full) --- 44 45#define NFS4NODENAME(n) (&((n)->n4_data[(n)->n4_fhlen])) 46 47/* 48 * Just a macro to convert the nfscl_reqstart arguments. 49 */ 50#define NFSCL_REQSTART(n, p, v) \ 51 nfscl_reqstart((n), (p), VFSTONFS((v)->v_mount), \ |
52 VTONFS(v)->n_fhp->nfh_fh, VTONFS(v)->n_fhp->nfh_len, NULL) | 52 VTONFS(v)->n_fhp->nfh_fh, VTONFS(v)->n_fhp->nfh_len, NULL, NULL) |
53 54/* 55 * These two macros convert between a lease duration and renew interval. 56 * For now, just make the renew interval 1/2 the lease duration. 57 * (They should be inverse operators.) 58 */ 59#define NFSCL_RENEW(l) (((l) < 2) ? 1 : ((l) / 2)) 60#define NFSCL_LEASE(r) ((r) * 2) --- 17 unchanged lines hidden --- | 53 54/* 55 * These two macros convert between a lease duration and renew interval. 56 * For now, just make the renew interval 1/2 the lease duration. 57 * (They should be inverse operators.) 58 */ 59#define NFSCL_RENEW(l) (((l) < 2) ? 1 : ((l) / 2)) 60#define NFSCL_LEASE(r) ((r) * 2) --- 17 unchanged lines hidden --- |