zephyr/tests/subsys/fs
Dominik Ermel e7886c6634 fs: fs_unmount will return -ENOTSUP if not implemented by driver
The commit changes error handling by fs_unmount; the function will
return -EINVAL if mount point, described by mp, is not mounted or
-ENNOTSUP when unmounting is not supported by the driver; in the second
case it will also log error.

Additionally to the above changes, checks for correct mnt_path and
mnt_path, within fs_unmount, have been removed as they are not needed;
only the fs_mount_t->fs pointer is needed to decide whether system is
mounted or not.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2020-10-30 15:54:04 +01:00
..
common tests/subsys/fs: Add fs_open flags tests to LittleFS 2020-07-30 16:33:18 +02:00
fat_fs_api sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
fat_fs_dual_drive device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fcb sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
fs_api fs: fs_unmount will return -ENOTSUP if not implemented by driver 2020-10-30 15:54:04 +01:00
littlefs sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
multi-fs misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
nvs device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00