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:
parent
7787ee403b
commit
b955b6d3fe
1 changed files with 2 additions and 0 deletions
|
|
@ -2186,6 +2186,8 @@ enum nfsstat4 nfs41_rpc_openattr(
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
compound_error(status = compound.res.status);
|
compound_error(status = compound.res.status);
|
||||||
|
|
||||||
|
fh_out->superblock = file->fh.superblock;
|
||||||
out:
|
out:
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue