ref: 58653486425b0d3bbcf8e2c6c8c3d444ceb1e20c
parent: 54b44ab797f0f9cacdeb63c9e07238e5f2a6a1f0
author: Ori Bernstein <[email protected]>
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);
}