ref: 469fa904d034f3248abf31bde2c0b44e25242b0a
parent: db809f2d4786af8fbdf221d59f638c6d0d0d439c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 16 11:07:29 EDT 2023
upas/fs: use IOUNIT
--- a/sys/src/cmd/upas/fs/fs.c
+++ b/sys/src/cmd/upas/fs/fs.c
@@ -116,11 +116,11 @@
ulong cachetarg = Maxcache;
Mailbox *mbl;
-static int messagesize = 8*1024 + IOHDRSZ;
+static int messagesize = IOUNIT + IOHDRSZ;
static int mfd[2];
static char hbuf[32*1024];
-static uchar mbuf[16*1024 + IOHDRSZ];
-static uchar mdata[16*1024 + IOHDRSZ];
+static uchar mbuf[IOUNIT];
+static uchar mdata[IOUNIT + IOHDRSZ];
static ulong path; /* incremented for each new file */
static Hash *htab[2053];
static Fcall rhdr;