summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2019-03-25 16:30:28 +0800
committerJeremy Kerr <jk@ozlabs.org>2019-03-27 00:54:38 +0000
commitbcc6cc5bcadb20005ae03c8c4a4eb87006f0d222 (patch)
tree98771ea84b7ab588ae5220eab72137870f18c5f1 /m4
parentd5b9857609401e3cf9c53b111134a6aab8e4573c (diff)
downloadjsnbd-master.tar.gz
jsnbd-master.zip
js: Allow serving files > 4GB in sizeHEADmaster
Currently, the javascript NBD server only handles files of sizes that are representable in 32 bits. Although we can't do full 64-bit offsets with Javascript's number representation, we should be able to handle up to Number.MAX_SAFE_INTEGER. This change adds support for using the top-32 bit field in file sizes and read request offsets. Reported-by: Lei YU <mine260309@gmail.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Change-Id: I41dee58c3913cba49c5cd73ebdd5d6fb56786d25
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud