+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;
+
+}
+