mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +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 */
|
/* Fall through */
|
||||||
|
|
||||||
priv->mounted = false;
|
|
||||||
return OK;
|
|
||||||
|
|
||||||
case OK_NOENT:
|
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;
|
return OK;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user