ref: 653c9895d6f0d84f51c02e0c48d24f7664411bf0
parent: 1cbc327cea62e6a0ba91f279b74e8fa446e3dec9
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Oct 17 17:36:38 EDT 2023
freplay: cleanup, add srvname to peek replay progress.
--- a/test/freplay.c
+++ b/test/freplay.c
@@ -7,6 +7,7 @@
File* ctlfile;
File* datfile;
char* mountpt = "/n/replay";
+char* srvname = "replay";
char* logfile;
char* replayfile;
char* membuf;
@@ -132,8 +133,6 @@
case 'r':
replayfile = EARGF(usage());
break;
- case 'W':
-
case 'c':
replaycount = atoi(EARGF(usage()));
break;
@@ -140,6 +139,9 @@
case 'm':
mountpt = EARGF(usage());
break;
+ case 's':
+ srvname = EARGF(usage());
+ break;
default:
usage();
}ARGEND;
@@ -177,6 +179,6 @@
ctlfile = createfile(fs.tree->root, "ctl", uid, 0666, nil);
datfile = createfile(fs.tree->root, "data", uid, 0666, nil);
datfile->length = membufsz;
- postmountsrv(&fs, nil, mountpt, MREPL);
+ postmountsrv(&fs, srvname, mountpt, MREPL);
exits(nil);
}