Mercurial > yaffs-ecoscentric-gpl
diff direct/dtest.c @ 210:8a4f31e59ad8
Some cleanups, Linux 2.6.25 handling, fix handing of root permissions
| author | charles <charles> |
|---|---|
| date | Thu, 03 Jul 2008 20:06:05 +0000 |
| parents | bf93bbcabaf8 |
| children | 141d209595f0 |
line wrap: on
line diff
--- a/direct/dtest.c +++ b/direct/dtest.c @@ -966,6 +966,7 @@ void rename_over_test(const char *mountp } + int resize_stress_test(const char *path) { int a,b,i,j; @@ -1029,6 +1030,28 @@ int resize_stress_test(const char *path) } +int root_perm_remount(const char *path) +{ + struct yaffs_stat s; + + yaffs_StartUp(); + + yaffs_mount(path); + + yaffs_stat(path,&s); + printf("root perms after mount %x\n",s.st_mode); + + yaffs_chmod(path, 0777); + + yaffs_stat(path,&s); + printf("root perms after setting to 0777 is %x\n",s.st_mode); + + yaffs_unmount(path); + + return 0; + +} + int resize_stress_test_no_grow_complex(const char *path,int iters) { @@ -2259,7 +2282,8 @@ int main(int argc, char *argv[]) //return cache_read_test(); - //resize_stress_test_no_grow("/flash/flash",20); + // resize_stress_test_no_grow("/flash/flash",20); + //root_perm_remount("/flash/flash"); //huge_directory_test_on_path("/ram2k");
