ref: 233a151e8578c3269eb22cd82ef78225f038a29b
parent: 2e8af772a56629c5ddba4add975d957cf7d8a09a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 16 08:36:50 EDT 2023
tapefs: use IOUNIT for Maxbuf
--- a/sys/src/cmd/tapefs/tapefs.h
+++ b/sys/src/cmd/tapefs/tapefs.h
@@ -8,8 +8,7 @@
enum
{
OPERM = 0x3, /* mask of all permission types in open mode */
- Nram = 512,
- Maxbuf = 8192, /* max buffer size */
+ Maxbuf = IOUNIT, /* max buffer size */
};
typedef struct Fid Fid;
--- a/sys/src/cmd/tapefs/tapfs.c
+++ b/sys/src/cmd/tapefs/tapfs.c
@@ -18,7 +18,7 @@
} dir[192];
int tapefile;
-char buffer[8192];
+char buffer[Maxbuf];
long cvtime(unsigned char *);
extern int verbose;
extern int newtap;
--- a/sys/src/cmd/tapefs/tpfs.c
+++ b/sys/src/cmd/tapefs/tpfs.c
@@ -21,7 +21,7 @@
unsigned char checksum[2];
} dir[496+8];
-char buffer[8192];
+char buffer[Maxbuf];
int tapefile;
void