| .. | .. |
|---|
| 29 | 29 | */ |
|---|
| 30 | 30 | #define encode_dirpath_sz (1 + XDR_QUADLEN(MNTPATHLEN)) |
|---|
| 31 | 31 | #define MNT_status_sz (1) |
|---|
| 32 | | -#define MNT_fhs_status_sz (1) |
|---|
| 33 | 32 | #define MNT_fhandle_sz XDR_QUADLEN(NFS2_FHSIZE) |
|---|
| 34 | | -#define MNT_fhandle3_sz (1 + XDR_QUADLEN(NFS3_FHSIZE)) |
|---|
| 33 | +#define MNT_fhandlev3_sz XDR_QUADLEN(NFS3_FHSIZE) |
|---|
| 35 | 34 | #define MNT_authflav3_sz (1 + NFS_MAX_SECFLAVORS) |
|---|
| 36 | 35 | |
|---|
| 37 | 36 | /* |
|---|
| .. | .. |
|---|
| 39 | 38 | */ |
|---|
| 40 | 39 | #define MNT_enc_dirpath_sz encode_dirpath_sz |
|---|
| 41 | 40 | #define MNT_dec_mountres_sz (MNT_status_sz + MNT_fhandle_sz) |
|---|
| 42 | | -#define MNT_dec_mountres3_sz (MNT_status_sz + MNT_fhandle_sz + \ |
|---|
| 41 | +#define MNT_dec_mountres3_sz (MNT_status_sz + MNT_fhandlev3_sz + \ |
|---|
| 43 | 42 | MNT_authflav3_sz) |
|---|
| 44 | 43 | |
|---|
| 45 | 44 | /* |
|---|
| .. | .. |
|---|
| 163 | 162 | .program = &mnt_program, |
|---|
| 164 | 163 | .version = info->version, |
|---|
| 165 | 164 | .authflavor = RPC_AUTH_UNIX, |
|---|
| 165 | + .cred = current_cred(), |
|---|
| 166 | 166 | }; |
|---|
| 167 | 167 | struct rpc_clnt *mnt_clnt; |
|---|
| 168 | 168 | int status; |
|---|
| .. | .. |
|---|
| 249 | 249 | .version = info->version, |
|---|
| 250 | 250 | .authflavor = RPC_AUTH_UNIX, |
|---|
| 251 | 251 | .flags = RPC_CLNT_CREATE_NOPING, |
|---|
| 252 | + .cred = current_cred(), |
|---|
| 252 | 253 | }; |
|---|
| 253 | 254 | struct rpc_message msg = { |
|---|
| 254 | 255 | .rpc_argp = info->dirpath, |
|---|