symlink: nfs41_create() can create symlinks
added optional symlink argument to nfs41_create(), used when type is NF4LNK changed createttype4.u.lnk.linkdata from char[] to const char* and updated encoding in nfs41_xdr.c Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
08c2618551
commit
8c4c98b669
4 changed files with 10 additions and 4 deletions
|
|
@ -1168,7 +1168,7 @@ static bool_t encode_createtype4(
|
|||
createtype4 *ct)
|
||||
{
|
||||
bool_t result = TRUE;
|
||||
char *linkdata;
|
||||
const char *linkdata;
|
||||
|
||||
if (!xdr_u_int32_t(xdr, &ct->type))
|
||||
return FALSE;
|
||||
|
|
@ -1177,7 +1177,7 @@ static bool_t encode_createtype4(
|
|||
{
|
||||
case NF4LNK:
|
||||
linkdata = ct->u.lnk.linkdata;
|
||||
result = xdr_bytes(xdr, &linkdata, &ct->u.lnk.linkdata_len,
|
||||
result = xdr_bytes(xdr, (char**)&linkdata, &ct->u.lnk.linkdata_len,
|
||||
NFS4_OPAQUE_LIMIT);
|
||||
break;
|
||||
case NF4BLK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue