Skip to content
Snippets Groups Projects
Commit f7c85868 authored by Al Viro's avatar Al Viro
Browse files

fix mknod() on nfs4 (hopefully)


a) check the right flags in ->create() (LOOKUP_OPEN, not LOOKUP_CREATE)
b) default (!LOOKUP_OPEN) open_flags is O_CREAT|O_EXCL|FMODE_READ, not 0
c) lookup_instantiate_filp() should be done only with LOOKUP_OPEN;
otherwise we need to issue CLOSE, lest we leak stateid on server.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 51141598
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment