ea: assign superblock to named attribute directory

the upcall to set an EA was crashing in nfs41_open() on a null superblock, because nfs41_rpc_openattr() was returning a filehandle without a superblock.  copy the parent file's superblock to the returned filehandle

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-04-02 16:02:54 -04:00 committed by unknown
parent 7787ee403b
commit b955b6d3fe

View file

@ -2186,6 +2186,8 @@ enum nfsstat4 nfs41_rpc_openattr(
goto out;
compound_error(status = compound.res.status);
fh_out->superblock = file->fh.superblock;
out:
return status;
}