int i;
char a[100];
char b[100];
+ char c[100];
sprintf(a,"%s/a",mountpt);
sprintf(b,"%s/b",mountpt);
+ sprintf(c,"%s/c",mountpt);
yaffs_StartUp();
dumpDirFollow(mountpt);
- i = yaffs_open(a,O_CREAT | O_TRUNC | O_RDWR, 0);
+
+ i = yaffs_open(c,O_CREAT | O_TRUNC | O_RDWR, S_IREAD | S_IWRITE);
+ printf("File c handle is %d\n",i);
+ yaffs_close(i);
+ i = yaffs_open(a,O_CREAT | O_TRUNC | O_RDWR, S_IREAD | S_IWRITE);
yaffs_close(i);
- i = yaffs_open(b,O_CREAT | O_TRUNC | O_RDWR, 0);
+ i = yaffs_open(b,O_CREAT | O_TRUNC | O_RDWR, S_IREAD | S_IWRITE);
yaffs_close(i);
yaffs_rename(a,b); // rename over
yaffs_rename(b,a); // rename back again (not renaimng over)
//yaffs_backward_scan_test("/flash/flash");
// yaffs_device_flush_test("/flash/flash");
- rename_over_test("/flash/yaffs1");
+ rename_over_test("//////////////////flash///////////////////yaffs1///////////");
//scan_pattern_test("/flash",10000,10);
//short_scan_test("/flash/flash",40000,200);