Skip to content
Commit 5faf3750 authored by Dominik Ermel's avatar Dominik Ermel Committed by Carles Cufí
Browse files

fs: fs_mount parameter verification before mutex locked block



The commit moves fs_mount parameter verification above mutex lock.
The list of mount points is now checked before attempting to obtain
file system API pointer.
All modifications to mount point data structure, given as a parameter
to the fs_mount, are only applied after every other operation needed
have completed successfully, immediately before adding the mount point
to the list of mount points.
The fs_mount will a warning when mounted file system does not support
unmount.
When a file system does not provide mount function, the -ENOTSUP error
will be returned instead of -EINVAL.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent 053857e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment