adding cancel routine to mount
a user process can start a mount command and ctl-c it before it completes. the deamon then would have a mount that we can never unmount.
This commit is contained in:
parent
3a06ec9080
commit
6aab42a4b5
1 changed files with 8 additions and 1 deletions
|
|
@ -122,10 +122,17 @@ out:
|
|||
return status;
|
||||
}
|
||||
|
||||
static void cancel_mount(IN nfs41_upcall *upcall)
|
||||
{
|
||||
mount_upcall_args *args = &upcall->args.mount;
|
||||
nfs41_root_deref(args->root);
|
||||
}
|
||||
|
||||
const nfs41_upcall_op nfs41_op_mount = {
|
||||
parse_mount,
|
||||
handle_mount,
|
||||
marshall_mount
|
||||
marshall_mount,
|
||||
cancel_mount
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue