Update not stress test
[yaffs2.git] / direct / tests / yaffs_test.c
index 5a1e0c77d1c3243631706329e3fbc8d74ed788ef..9b36e08399120c9c44174b8ed322abd31906ca7e 100644 (file)
@@ -71,7 +71,8 @@ void yaffs_bash_around(const char *mountpt, int n_cycles)
                
        while(n_cycles){
                if(cycle % 100 == 0){
-                       printf("CYCLE %8d mo %2d space %d ",cycle,op_max,yaffs_freespace(mountpt));
+                       printf("CYCLE %8d mo %2d inodes %d space %d ",cycle,op_max,
+                               yaffs_inodecount(mountpt),yaffs_freespace(mountpt));
                        for(i = 0; i < BASH_HANDLES; i++)
                                printf("%2d ",h[i]);
                        printf("\n");
@@ -189,7 +190,7 @@ int main(int argc, char **argv)
        signal(SIGBUS,bad_ptr_handler);
        signal(SIGABRT,bad_ptr_handler);
 #endif 
-       while ((ch = getopt(argc,argv, "bfilmn:ps:u"))
+       while ((ch = getopt(argc,argv, "bfilmn:ps:t:u"))
               != EOF)
                switch (ch) {
                case 's':
@@ -219,6 +220,9 @@ int main(int argc, char **argv)
                case 'n':
                        n_cycles = atoi(optarg);
                        break;
+               case 't':
+                       yaffs_traceMask = strtol(optarg,NULL,0);
+                       break;
                default:
                        BadUsage();
                        /* NOTREACHED */