mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
cachemgr store file too big error exit via usual path
have just one path for exiting on errors so we do everything this means we will EndCall, instead of not, in the EFBIG case Change-Id: I2df025eee4bd5173ed4f80a73f9a9a347e7257d2 Reviewed-on: http://gerrit.openafs.org/1827 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
fbbfb51e7d
commit
5afa2965b2
@ -95,8 +95,8 @@ afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
|
|||||||
if ((avc->f.m.Length > 0x7fffffff) ||
|
if ((avc->f.m.Length > 0x7fffffff) ||
|
||||||
(tlen > 0x7fffffff) ||
|
(tlen > 0x7fffffff) ||
|
||||||
((0x7fffffff - tlen) < avc->f.m.Length)) {
|
((0x7fffffff - tlen) < avc->f.m.Length)) {
|
||||||
RX_AFS_GLOCK();
|
code = EFBIG;
|
||||||
return EFBIG;
|
goto error;
|
||||||
}
|
}
|
||||||
code =
|
code =
|
||||||
StartRXAFS_StoreData(tcall,
|
StartRXAFS_StoreData(tcall,
|
||||||
@ -111,6 +111,9 @@ afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
|
|||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
code = EndRXAFS_StoreData(tcall, &OutStatus, &tsync);
|
code = EndRXAFS_StoreData(tcall, &OutStatus, &tsync);
|
||||||
}
|
}
|
||||||
|
#ifdef AFS_64BIT_CLIENT
|
||||||
|
error:
|
||||||
|
#endif
|
||||||
code = rx_EndCall(tcall, code);
|
code = rx_EndCall(tcall, code);
|
||||||
RX_AFS_GLOCK();
|
RX_AFS_GLOCK();
|
||||||
XSTATS_END_TIME;
|
XSTATS_END_TIME;
|
||||||
|
Loading…
Reference in New Issue
Block a user