mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 07:18:49 +08:00
Auto-mounter: Fix state setting. Not harmful other than it can cause a debug assertion to fire if you manually unmount the media before removing it which is, of course, what you are supposed to do.
This commit is contained in:
+6
-5
@@ -328,14 +328,15 @@ static int automount_unmount(FAR struct automounter_state_s *priv)
|
||||
}
|
||||
}
|
||||
|
||||
/* Successfully unmounted */
|
||||
|
||||
priv->mounted = false;
|
||||
return OK;
|
||||
/* Fall through */
|
||||
|
||||
case OK_NOENT:
|
||||
/* I suppose this is okay */
|
||||
/* The mountpoint is not present. This is normal behavior in the
|
||||
* case where the user manually un-mounted the volume before removing
|
||||
* media. Nice job, Mr. user.
|
||||
*/
|
||||
|
||||
priv->mounted = false;
|
||||
return OK;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user