You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The fs_mount is supposed, when option enabled, to create new file system on a device if mount fails due to non-existing file system.
To Reproduce
Steps to reproduce the behavior:
modify test/subsys/fs/fat_fs_api/prj_native_posix.conf by replacing CONFIG_DISK_FLASH_DEV_NAME="flash_ctrl"
with CONFIG_DISK_FLASH_DEV_NAME="flash_ctrl_bla"
west build -b native_posix --build-dir mkfs_err zephyr/tests/subsys/fs/fat_fs_api/ -- -DCONF_FILE=prj_native_posix.conf
mkfs_err/zephyr/zephyr.elf
Observe multiple
E: fs mount error (-5)
as the fs_mount tries to mount the file system and then create file system on non-existent device.
Expected behavior
Distinguish when there is device error and when there is no-file system error; exist when there is device error and attempt to mkfs when there is no file system.
Environment (please complete the following information):
Describe the bug
The fs_mount is supposed, when option enabled, to create new file system on a device if mount fails due to non-existing file system.
To Reproduce
Steps to reproduce the behavior:
CONFIG_DISK_FLASH_DEV_NAME="flash_ctrl"
with
CONFIG_DISK_FLASH_DEV_NAME="flash_ctrl_bla"
E: fs mount error (-5)
as the fs_mount tries to mount the file system and then create file system on non-existent device.
Expected behavior
Distinguish when there is device error and when there is no-file system error; exist when there is device error and attempt to mkfs when there is no file system.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: