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:
Casey Bodley 2010-09-23 12:49:58 -04:00 committed by unknown
parent 08c2618551
commit 8c4c98b669
4 changed files with 10 additions and 4 deletions

View file

@ -300,7 +300,7 @@ int handle_open(nfs41_upcall *upcall)
if (create == OPEN4_CREATE && (args->create_opts & FILE_DIRECTORY_FILE)) {
status = nfs41_create(state->session, NF4DIR, args->mode,
&state->parent, &state->file);
NULL, &state->parent, &state->file);
args->std_info.Directory = 1;
args->created = status == NFS4_OK;
} else {