mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
STABLE14-butc-xbsa-buffersize-20090315
LICENSE IPL10
FIXES 124425
restrict buffer size to allow for header space
(cherry picked from commit fd6d954e95
)
This commit is contained in:
parent
c943130b7f
commit
027e968221
@ -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. */
|
||||
if (fragmentvolume) {
|
||||
bytesread = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user