VATTR_WANTED((VAP), va_change_time); \
if ((VERS) == NFS_VER2) \
VATTR_WANTED((VAP), va_iosize); \
+ if ((VERS) == NFS_VER3) \
+ VATTR_WANTED((VAP), va_filerev); \
} while (0)
/* Initialize a vnode_attr to retrieve pre-operation attributes for the NFS server. */
/* add NFSv4 COMPOUND header */
#define NFS4_TAG_LENGTH 12
-#define nfsm_chain_add_compound_header(E, NMC, TAG, NUMOPS) \
+#define nfsm_chain_add_compound_header(E, NMC, TAG, MINOR, NUMOPS) \
do { \
if ((TAG) && strlen(TAG)) { \
/* put tags into a fixed-length space-padded field */ \
} else { \
nfsm_chain_add_32((E), (NMC), 0); \
} \
- nfsm_chain_add_32((E), (NMC), 0); /*minorversion*/ \
+ nfsm_chain_add_32((E), (NMC), (MINOR)); /*minorversion*/ \
nfsm_chain_add_32((E), (NMC), (NUMOPS)); \
} while (0)