projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs First round of name changes
[yaffs2.git]
/
direct
/
basic-test
/
dtest.c
diff --git
a/direct/basic-test/dtest.c
b/direct/basic-test/dtest.c
index c56e5b2a76063c5e7cd88062ed90956ad6a54685..f272f0c5957680c420826122bba198256793ae55 100644
(file)
--- a/
direct/basic-test/dtest.c
+++ b/
direct/basic-test/dtest.c
@@
-25,7
+25,7
@@
#include "yaffs_guts.h" /* Only for dumping device innards */
#include "yaffs_guts.h" /* Only for dumping device innards */
-extern int yaffs_trace
M
ask;
+extern int yaffs_trace
_m
ask;
void dumpDir(const char *dname);
void dumpDir(const char *dname);
@@
-278,7
+278,7
@@
void yaffs_backward_scan_test(const char *path)
{
char fn[100];
{
char fn[100];
- yaffs_
StartUp();
+ yaffs_
start_up();
yaffs_mount(path);
yaffs_mount(path);
@@
-299,7
+299,7
@@
void null_name_test(const char *path)
{
char fn[100];
int h;
{
char fn[100];
int h;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-320,7
+320,7
@@
void yaffs_device_flush_test(const char *path)
int h;
int i;
int h;
int i;
- yaffs_
StartUp();
+ yaffs_
start_up();
yaffs_mount(path);
yaffs_mount(path);
@@
-349,7
+349,7
@@
void short_scan_test(const char *path, int fsize, int niterations)
sprintf(fn,"%s/%s",path,"f1");
sprintf(fn,"%s/%s",path,"f1");
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < niterations; i++)
{
printf("\n*****************\nIteration %d\n",i);
for(i = 0; i < niterations; i++)
{
printf("\n*****************\nIteration %d\n",i);
@@
-374,7
+374,7
@@
void scan_pattern_test(const char *path, int fsize, int niterations)
sprintf(fn[1],"%s/%s",path,"f1");
sprintf(fn[2],"%s/%s",path,"f2");
sprintf(fn[1],"%s/%s",path,"f1");
sprintf(fn[2],"%s/%s",path,"f2");
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < niterations; i++)
{
for(i = 0; i < niterations; i++)
{
@@
-656,7
+656,7
@@
int long_test(int argc, char *argv[])
mode_t temp_mode;
struct yaffs_stat ystat;
mode_t temp_mode;
struct yaffs_stat ystat;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/boot");
yaffs_mount("/data");
yaffs_mount("/boot");
yaffs_mount("/data");
@@
-866,11
+866,11
@@
int long_test(int argc, char *argv[])
yaffs_unlink("/boot/zlf");
yaffs_unlink("/boot/zlf");
- yaffs_
DumpDevStruct
("/boot");
+ yaffs_
dump_dev
("/boot");
fill_disk_and_delete("/boot",20,20);
fill_disk_and_delete("/boot",20,20);
- yaffs_
DumpDevStruct
("/boot");
+ yaffs_
dump_dev
("/boot");
fill_files("/boot",1,10000,0);
fill_files("/boot",1,10000,5000);
fill_files("/boot",1,10000,0);
fill_files("/boot",1,10000,5000);
@@
-884,8
+884,8
@@
int long_test(int argc, char *argv[])
leave_unlinked_file("/data",20000,5000);
leave_unlinked_file("/data",20000,5000);
leave_unlinked_file("/data",20000,5000);
leave_unlinked_file("/data",20000,5000);
- yaffs_
DumpDevStruct
("/boot");
- yaffs_
DumpDevStruct
("/data");
+ yaffs_
dump_dev
("/boot");
+ yaffs_
dump_dev
("/data");
@@
-909,7
+909,7
@@
int huge_directory_test_on_path(char *path)
char str[100];
char str[100];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-967,7
+967,7
@@
void rename_over_test(const char *mountpt)
sprintf(b,"%s/b",mountpt);
sprintf(c,"%s/c",mountpt);
sprintf(b,"%s/b",mountpt);
sprintf(c,"%s/c",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1004,7
+1004,7
@@
int resize_stress_test(const char *path)
char abuffer[1000];
char bbuffer[1000];
char abuffer[1000];
char bbuffer[1000];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-1065,7
+1065,7
@@
int overwrite_test(const char *path)
int j;
int a;
int b;
int j;
int a;
int b;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-1090,7
+1090,7
@@
int root_perm_remount(const char *path)
{
struct yaffs_stat s;
{
struct yaffs_stat s;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-1121,7
+1121,7
@@
int resize_stress_test_no_grow_complex(const char *path,int iters)
char bbuffer[1000];
char bbuffer[1000];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-1195,7
+1195,7
@@
int resize_stress_test_no_grow(const char *path,int iters)
char abuffer[1000];
char bbuffer[1000];
char abuffer[1000];
char bbuffer[1000];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(path);
yaffs_mount(path);
@@
-1260,7
+1260,7
@@
int resize_stress_test_no_grow(const char *path,int iters)
int directory_rename_test(void)
{
int r;
int directory_rename_test(void)
{
int r;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/ram");
yaffs_mkdir("/ram/a",0);
yaffs_mount("/ram");
yaffs_mkdir("/ram/a",0);
@@
-1300,7
+1300,7
@@
int cache_read_test(void)
int sizeOfFiles = 500000;
char buffer[100];
int sizeOfFiles = 500000;
char buffer[100];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/boot");
yaffs_mount("/boot");
@@
-1339,7
+1339,7
@@
int cache_bypass_bug_test(void)
memset(buffer1,0,sizeof(buffer1));
memset(buffer2,0,sizeof(buffer2));
memset(buffer1,0,sizeof(buffer1));
memset(buffer2,0,sizeof(buffer2));
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/boot");
yaffs_mount("/boot");
@@
-1379,7
+1379,7
@@
int free_space_check(void)
{
int f;
{
int f;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/boot");
fill_disk("/boot/",2);
f = yaffs_freespace("/boot");
yaffs_mount("/boot");
fill_disk("/boot/",2);
f = yaffs_freespace("/boot");
@@
-1397,7
+1397,7
@@
int truncate_test(void)
char y[10];
char y[10];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount("/boot");
yaffs_unlink("/boot/trunctest");
yaffs_mount("/boot");
yaffs_unlink("/boot/trunctest");
@@
-1435,7
+1435,7
@@
int truncate_test(void)
void fill_disk_test(const char *mountpt)
{
int i;
void fill_disk_test(const char *mountpt)
{
int i;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < 5; i++)
{
for(i = 0; i < 5; i++)
{
@@
-1450,7
+1450,7
@@
void fill_disk_test(const char *mountpt)
void fill_files_test(const char *mountpt)
{
int i;
void fill_files_test(const char *mountpt)
{
int i;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < 5; i++)
{
for(i = 0; i < 5; i++)
{
@@
-1464,7
+1464,7
@@
void fill_files_test(const char *mountpt)
void fill_empty_files_test(const char *mountpt)
{
int i;
void fill_empty_files_test(const char *mountpt)
{
int i;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
char name[100];
int result = 0;
char name[100];
int result = 0;
@@
-1493,7
+1493,7
@@
void fill_empty_files_test(const char *mountpt)
void long_name_test(const char *mountpt)
{
int i;
void long_name_test(const char *mountpt)
{
int i;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
char fullName[1000];
char name[300];
int result = 0;
char fullName[1000];
char name[300];
int result = 0;
@@
-1548,7
+1548,7
@@
void lookup_test(const char *mountpt)
yaffs_DIR *d;
yaffs_dirent *de;
yaffs_DIR *d;
yaffs_dirent *de;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1607,7
+1607,7
@@
void link_test0(const char *mountpt)
int result = 0;
int result = 0;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1656,7
+1656,7
@@
void link_test1(const char *mountpt)
sprintf(b,"%s/bbb",mountpt);
sprintf(c,"%s/ccc",mountpt);
sprintf(b,"%s/bbb",mountpt);
sprintf(c,"%s/ccc",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1691,7
+1691,7
@@
void handle_test(const char *mountpt)
sprintf(a,"%s/aaa",mountpt);
sprintf(a,"%s/aaa",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1725,7
+1725,7
@@
void freespace_test(const char *mountpt)
int f3;
sprintf(a,"%s/aaa",mountpt);
int f3;
sprintf(a,"%s/aaa",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1766,7
+1766,7
@@
void simple_rw_test(const char *mountpt)
sprintf(a,"%s/aaa",mountpt);
sprintf(a,"%s/aaa",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-1819,7
+1819,7
@@
void scan_deleted_files_test(const char *mountpt)
int h;
sprintf(sub,"%s/sdir",mountpt);
int h;
sprintf(sub,"%s/sdir",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(j = 0; j < 10; j++)
{
for(j = 0; j < 10; j++)
{
@@
-1952,7
+1952,7
@@
void check_resize_gc_bug(const char *mountpt)
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_unlink(a);
yaffs_unlink(b);
yaffs_mount(mountpt);
yaffs_unlink(a);
yaffs_unlink(b);
@@
-1982,7
+1982,7
@@
void multi_mount_test(const char *mountpt,int nmounts)
sprintf(a,"%s/a",mountpt);
sprintf(a,"%s/a",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < nmounts; i++){
int h0;
for(i = 0; i < nmounts; i++){
int h0;
@@
-2059,7
+2059,7
@@
void small_mount_test(const char *mountpt,int nmounts)
sprintf(a,"%s/a",mountpt);
sprintf(a,"%s/a",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
@@
-2131,7
+2131,7
@@
void small_overwrite_test(const char *mountpt,int nmounts)
sprintf(a,"%s/a",mountpt);
sprintf(a,"%s/a",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
@@
-2186,7
+2186,7
@@
void seek_overwrite_test(const char *mountpt,int nmounts)
sprintf(a,"%s/f",mountpt);
sprintf(a,"%s/f",mountpt);
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2232,7
+2232,7
@@
void checkpoint_fill_test(const char *mountpt,int nmounts)
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
for(i = 0; i < nmounts; i++){
printf("############### Iteration %d Start\n",i);
for(i = 0; i < nmounts; i++){
printf("############### Iteration %d Start\n",i);
@@
-2306,7
+2306,7
@@
void checkpoint_upgrade_test(const char *mountpt,int nmounts)
printf("Create start condition\n");
printf("Create start condition\n");
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mkdir(a,0);
sprintf(b,"%s/zz",a);
yaffs_mount(mountpt);
yaffs_mkdir(a,0);
sprintf(b,"%s/zz",a);
@@
-2361,7
+2361,7
@@
void huge_array_test(const char *mountpt,int n)
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2436,7
+2436,7
@@
void random_small_file_test(const char *mountpt,int iterations)
int r;
int r;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2495,7
+2495,7
@@
void random_small_file_test(const char *mountpt,int iterations)
void rmdir_test(const char *mountpt)
{
char name[100];
void rmdir_test(const char *mountpt)
{
char name[100];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2556,7
+2556,7
@@
void basic_xattr_test(const char *mountpt)
int result;
int val1;
int result;
int val1;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2606,7
+2606,7
@@
void big_xattr_test(const char *mountpt)
int result;
char val[1000];
int result;
char val[1000];
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);
@@
-2660,9
+2660,9
@@
void test_flash_traffic(const char *mountpt)
int i;
yaffs_Device *dev;
int i;
yaffs_Device *dev;
- yaffs_trace
M
ask = 0;
+ yaffs_trace
_m
ask = 0;
- yaffs_
StartU
p();
+ yaffs_
start_u
p();
yaffs_mount(mountpt);
yaffs_mount(mountpt);