diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-29 13:00:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-29 13:00:35 -0600 |
commit | 42f5d29534eb3199f5d257b8a1c03c3bf26a6996 (patch) | |
tree | 40bdb15a92583d09e606785639ab661eb1c26e00 /nuttx/fs/fs_automount.c | |
parent | 99ce2bc0dc474295eb1d1d4a06b215f10d5da23f (diff) | |
download | px4-nuttx-42f5d29534eb3199f5d257b8a1c03c3bf26a6996.tar.gz px4-nuttx-42f5d29534eb3199f5d257b8a1c03c3bf26a6996.tar.bz2 px4-nuttx-42f5d29534eb3199f5d257b8a1c03c3bf26a6996.zip |
Update the automounter so that it will handle the initial insertion state
Diffstat (limited to 'nuttx/fs/fs_automount.c')
-rw-r--r-- | nuttx/fs/fs_automount.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/fs/fs_automount.c b/nuttx/fs/fs_automount.c index 965140a1c..8a1c44c4e 100644 --- a/nuttx/fs/fs_automount.c +++ b/nuttx/fs/fs_automount.c @@ -562,6 +562,11 @@ FAR void *automount_initialize(FAR const struct automount_lower_s *lower) return NULL; } + /* Handle the initial state of the mount on the caller's thread */ + + priv->inserted = AUTOMOUNT_INSERTED(lower); + automount_worker(priv); + /* Attach and enable automounter interrupts */ ret = AUTOMOUNT_ATTACH(lower, automount_interrupt, priv); @@ -580,7 +585,8 @@ FAR void *automount_initialize(FAR const struct automount_lower_s *lower) * Name: auto_uninitialize * * Description: - * Stop the automounter and free resources that it used. + * Stop the automounter and free resources that it used. NOTE that the + * mount is left in its last state mounted/unmounted state. * * Input Parameters: * handle - The value previously returned by automount_initialize(); |