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
|
|
@ -303,7 +303,7 @@ typedef struct __createtype4 {
|
|||
/* case NF4LNK: */
|
||||
struct __create_type_lnk {
|
||||
uint32_t linkdata_len;
|
||||
char linkdata[NFS4_OPAQUE_LIMIT];
|
||||
const char *linkdata;
|
||||
} lnk;
|
||||
/* case NF4BLK, NF4CHR: */
|
||||
specdata4 devdata;
|
||||
|
|
@ -909,6 +909,7 @@ int nfs41_create(
|
|||
IN nfs41_session *session,
|
||||
IN uint32_t type,
|
||||
IN uint32_t mode,
|
||||
IN OPTIONAL const char *symlink,
|
||||
IN nfs41_path_fh *parent,
|
||||
OUT nfs41_path_fh *file);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue