llist_t *fslist = 0;
-void delete_block_backed_filesystems(void);
#if ENABLE_FEATURE_CLEAN_UP
static void delete_block_backed_filesystems(void)
{
#if ENABLE_FEATURE_MTAB_SUPPORT
static int useMtab;
+static int fakeIt;
#else
#define useMtab 0
+#define fakeIt 0
#endif
// Perform actual mount of specific filesystem at specific location.
parse_mount_options(mp->mnt_opts, &filteropts);
+ if (fakeIt) { return 0; }
+
// Mount, with fallback to read-only if necessary.
for(;;) {
if (!fslist) {
fslist = get_block_backed_filesystems();
+#if ENABLE_FEATURE_CLEAN_UP
if (ENABLE_FEATURE_CLEAN_UP && fslist)
atexit(delete_block_backed_filesystems);
+#endif
}
for (fl = fslist; fl; fl = fl->link) {