- strcat(file_name,YAFFS_MOUNT_POINT);
- for (x=strlen(YAFFS_MOUNT_POINT); x<file_name_length -1; x++){
+ /* if a second file system is mounted then yaffs will return EBUSY. so first unmount yaffs */
+ output = test_yaffs_unmount();
+ if (output<0){
+ print_message("yaffs failed to unmount\n", 2);
+ return -1;
+ }
+
+ /* set up the file name */
+ for (x=0; x<file_name_length -1; x++){