symlink: FSCTL_SET_REPARSE_POINT
driver handles FSCTL_SET_REPARSE_POINT by sending a symlink set upcall daemon handles symlink set upcall by calling nfs41_create() Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
8c4c98b669
commit
62fa6176be
2 changed files with 58 additions and 0 deletions
|
|
@ -188,6 +188,15 @@ int handle_symlink(nfs41_upcall *upcall)
|
|||
int status = NO_ERROR;
|
||||
|
||||
if (args->set) {
|
||||
/* create the symlink */
|
||||
status = nfs41_create(state->session, NF4LNK, 0777,
|
||||
args->target_set, &state->parent, &state->file);
|
||||
if (status) {
|
||||
eprintf("nfs41_create() failed with %s\n",
|
||||
nfs_error_string(status));
|
||||
status = map_symlink_errors(status);
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
uint32_t len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue