mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
butc-xbsa-buffersize-20090315
LICENSE IPL10 FIXES 124425 restrict buffer size to allow for header space
This commit is contained in:
parent
22c5edb1b2
commit
fd6d954e95
@ -358,6 +358,13 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef xbsa
|
||||||
|
/* Set aside space for the trailing volume header when using large buffers. */
|
||||||
|
if (XBSAMAXBUFFER < toread + sizeof(hostVolumeHeader)) {
|
||||||
|
toread = XBSAMAXBUFFER - sizeof(hostVolumeHeader);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Read some volume data. */
|
/* Read some volume data. */
|
||||||
if (fragmentvolume) {
|
if (fragmentvolume) {
|
||||||
bytesread = 0;
|
bytesread = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user