summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-21 04:03:39 +0000
committermidipix <writeonce@midipix.org>2021-04-21 04:03:39 +0000
commitb6c5aa4aa67df1864d8e21c1c195583d36fcd8ff (patch)
treea3056bc45001decb0403397f0bf03317ee6e970a
parent173d672aff0fef3f381c3abf95834969f64f27c9 (diff)
downloadtpax-b6c5aa4aa67df1864d8e21c1c195583d36fcd8ff.tar.bz2
tpax-b6c5aa4aa67df1864d8e21c1c195583d36fcd8ff.tar.xz
internals: increase the anonymous memory region buffer.
-rw-r--r--src/driver/tpax_driver_ctx.c2
-rw-r--r--src/internal/tpax_driver_impl.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c
index 1498718..30f3ce5 100644
--- a/src/driver/tpax_driver_ctx.c
+++ b/src/driver/tpax_driver_ctx.c
@@ -283,7 +283,7 @@ static struct tpax_driver_ctx_impl * tpax_driver_ctx_alloc(
*units++ = entry->arg;
if (cctx->drvflags & TPAX_DRIVER_EXEC_MODE_WRITE_COPY) {
- ictx->ctx.bufsize = 64 * 1024;
+ ictx->ctx.bufsize = TPAX_FILEIO_BUFLEN;
ictx->ctx.bufaddr = mmap(
0,ictx->ctx.bufsize,
PROT_READ|PROT_WRITE,
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index 47d8fd5..9396d19 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -20,6 +20,7 @@
#define TPAX_OPTV_ELEMENTS 64
#define TPAX_DIRENT_BUFLEN 65536
+#define TPAX_FILEIO_BUFLEN (4096 * 1024)
#define TPAX_DRIVER_EXEC_MODE_WRITE_COPY \
(TPAX_DRIVER_EXEC_MODE_WRITE | \