diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index cd2df760771..4de9685d13e 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3285,11 +3285,21 @@ notify (xlator_t *this, int32_t event, void *data, ...) { case GF_EVENT_GRAPH_NEW: graph = data; + /* TODO: */ + + break; + + case GF_EVENT_CHILD_CONNECTING: + case GF_EVENT_CHILD_UP: + { + /* set priv->active_subvol */ + /* set priv->first_lookup = 1 */ + graph = data; + ret = fuse_graph_setup (this, graph); + if (ret) + break; if (!private->fuse_thread_started) { - ret = fuse_graph_setup (this, graph); - if (ret) - break; private->fuse_thread_started = 1; ret = pthread_create (&private->fuse_thread, NULL, @@ -3302,19 +3312,6 @@ notify (xlator_t *this, int32_t event, void *data, ...) } } - break; - -// case GF_EVENT_CHILD_CONNECTING: - - case GF_EVENT_CHILD_UP: - { - /* set priv->active_subvol */ - /* set priv->first_lookup = 1 */ - graph = data; - ret = fuse_graph_setup (this, graph); - if (ret) - break; - pthread_mutex_lock (&private->sync_mutex); { private->child_up = 1; |