X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ffsx_test%2Fyaffs_fsx.c;h=484241b0d31ab5dae809ee287326c5c603d74bd3;hp=26a8536d1a8458c3af41a0583b83e8e3911947dc;hb=a48028210bd3547399ecaed7b0138d6c43a1f547;hpb=e8cfe05cf0d057f6978c37943e51b17bb14664e3 diff --git a/direct/fsx_test/yaffs_fsx.c b/direct/fsx_test/yaffs_fsx.c index 26a8536..484241b 100644 --- a/direct/fsx_test/yaffs_fsx.c +++ b/direct/fsx_test/yaffs_fsx.c @@ -130,7 +130,7 @@ int writebdy = 1; /* -w flag */ long monitorstart = -1; /* -m flag */ long monitorend = -1; /* -m flag */ int lite = 0; /* -L flag */ -long numops = -1; /* -N flag */ +long numops = /*-1 */ 10000000; /* -N flag */ int randomoplen = 1; /* -O flag disables it */ int seed = 1; /* -S flag */ @@ -774,6 +774,11 @@ getnum(char *s, char **e) } +#define BASE_NAME "/M18-1" + +int random_seed = 999; +int simulate_power_failure = 0; + int main(int argc, char **argv) { @@ -915,9 +920,9 @@ main(int argc, char **argv) argv += optind; yaffs_StartUp(); - yaffs_mount("/flash/flash"); + yaffs_mount(BASE_NAME); - fname = "/flash/flash/fsxdata"; + fname = BASE_NAME "/fsxdata"; signal(SIGHUP, cleanup); signal(SIGINT, cleanup); @@ -999,7 +1004,7 @@ main(int argc, char **argv) yaffs_close(fsxgoodfd); - yaffs_unmount("flash/flash"); + yaffs_unmount(BASE_NAME); prt("All operations completed A-OK!\n"); exit(0);