• Al Viro's avatar
    fix mknod() on nfs4 (hopefully) · f7c85868
    Al Viro authored
    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>
    f7c85868
dir.c 58.6 KB