This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cannot delete folders from persist hive-based file system



Hello,

I have a problem when deleting a folder from persist hive-based file system.

1. Mistral REV G board

2. BSP_WINCE_ARM_A8_02_00_00

3. persist hive-based TFAT file system

Copy a file containing some files from USB memory stick to Mounted_Volume folder. No problem.

Select the folder and delete it. The files inside the folder are deleted but the folder is still there even if it is empty.

Delete the folder again, an error window pops up saying "Access is denied".

If I deselect "Persistent Hive Registry Storage" and "use NAND device" from Catalog and rebuilt the image. The folders with files can be copied to/removed from NAND flash.

Has anyone encountered the same problem?

Regards,

James

  • Hi James

    One doubt, do USB Memory Stick and Mounted_Volume have been formatted as TFAT? I'm asking this because when different types of file system are mixed, you can see some behavior like that.

  • Hello,

    Thanks for the reply.

    The USB Memory Stick is not formatted as TFAT, but Mounted_Volume is formatted as TFAT as indicated in Regsitry. I also verify that by calling CeGetVolumeInfo and check with ceVolumeInfo.dwFlags & CE_VOLUME_TRANSACTION_SAFE. The Mounted_Volume is TFAT. So it's true that different types of file system are mixed.

    However I'm still confused  when I don't select "Persistent Hive Registry Storage" and "use NAND device" in Catalog and I have no problem deleting files and folders from Mounted_Volume. In this case, mixed types of file system are used and no problem at all.

    I think the problem is that Mounted_Volume is set as Bootable and Permanent when "Persistent Hive Registry Storage" and "use NAND device" are selected whereas Mounted_Volume is neither Bootable nor Permanent when "Persistent Hive Registry Storage" and "use NAND device" are not selected. Can you verify this?

    Another question is when I copy a folder from non-TFAT disk such as USB stick to TFAT such as Mounted_Volume, is the folder inside Mounted_Volume converted to TFAT or is it still FAT? I understand that copying files from non-TFAT to TFAT may not be transaction safe. So the advantage of using TFAT is just to guarantee registry files are transaction safe. Is that right?

     Waiting for your answer.

    Best Regards,

    James