Closing all handles for red_unmount() #22
-
[Note: This question was originally asked and answered on April 1st, 2020, before the release of Reliance Edge v2.5. This customer was using Reliance Edge v2.4 at the time.] Hi, I'm trying to properly unmount Reliance Edge so I can power off my device and format the volume, but in the Developer's Guide it says: "Before unmounting, this function will wait for any active file system thread to complete by acquiring the FS mutex. The I'm having a hard time trying to manually close every single file and directory beeing used, so I wondered if there are any other ways to use red_unmount() without doing this. If not, are there other ways to format it instead of unmounting it before? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Greetings, The upcoming Reliance Edge v2.5 release adds a red_umount2() API which has a “force” flag that can be used to automatically close every single file and directory. /** Force unmount, closing all open handles. */ int32_t red_umount2( In Reliance Edge v2.4, there isn’t a way to unmount without closing the handles. |
Beta Was this translation helpful? Give feedback.
Greetings,
The upcoming Reliance Edge v2.5 release adds a red_umount2() API which has a “force” flag that can be used to automatically close every single file and directory.
/** Force unmount, closing all open handles. */
#define RED_UMOUNT_FORCE 0x00000001U
int32_t red_umount2(
const char *pszVolume,
uint32_t ulFlags);
In Reliance Edge v2.4, there isn’t a way to unmount without closing the handles.