projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear obsolete files during simulation
[yaffs2.git]
/
direct
/
tests
/
yaffs_test.c
diff --git
a/direct/tests/yaffs_test.c
b/direct/tests/yaffs_test.c
index 5a1e0c77d1c3243631706329e3fbc8d74ed788ef..faf5bef0f73df94685b0388d0544c6c4ddd6151b 100644
(file)
--- a/
direct/tests/yaffs_test.c
+++ b/
direct/tests/yaffs_test.c
@@
-24,6
+24,8
@@
#include "yaffsfs.h"
#include "yaffsfs.h"
+#include "yaffs_trace.h"
+
#include "nor_stress.h"
#include "yaffs_fsx.h"
#include "nor_stress.h"
#include "yaffs_fsx.h"
@@
-71,7
+73,8
@@
void yaffs_bash_around(const char *mountpt, int n_cycles)
while(n_cycles){
if(cycle % 100 == 0){
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");
for(i = 0; i < BASH_HANDLES; i++)
printf("%2d ",h[i]);
printf("\n");
@@
-189,7
+192,7
@@
int main(int argc, char **argv)
signal(SIGBUS,bad_ptr_handler);
signal(SIGABRT,bad_ptr_handler);
#endif
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':
!= EOF)
switch (ch) {
case 's':
@@
-219,6
+222,9
@@
int main(int argc, char **argv)
case 'n':
n_cycles = atoi(optarg);
break;
case 'n':
n_cycles = atoi(optarg);
break;
+ case 't':
+ yaffs_traceMask = strtol(optarg,NULL,0);
+ break;
default:
BadUsage();
/* NOTREACHED */
default:
BadUsage();
/* NOTREACHED */