some cleanings and re-disable VFS debug

This commit is contained in:
2017-12-16 12:07:42 +01:00
parent 62096da6e6
commit e1ce976278
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -238,6 +238,7 @@ static error_t close_conf(void *state)
ini_parse_end();
settings_read_ini_end();
// force a full remount to have the changes be visible
vfs_mngr_fs_remount(true);
return E_SUCCESS;
+4 -3
View File
@@ -19,9 +19,9 @@
* limitations under the License.
*/
#include "platform.h"
#include "utils/ini_writer.h"
#include "framework/settings.h"
#include "platform.h"
#include "vfs_manager.h"
#include "str_utils.h"
@@ -68,9 +68,10 @@ void vfs_user_file_change_handler(const vfs_filename_t filename,
vfs_file_change_t change,
vfs_file_t file, vfs_file_t new_file_data)
{
// Check for "System Volume Information"
if (strstarts(filename, "SYSTEM~1")) {
vfs_printf("ATENTION - we are dealing with windows! Careful or it will crash!");
// TODO take precautions
vfs_printf("ATTN! Windows host detected.");
// TODO take precautions if needed
vfs_is_windows = true;
return;
}