summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-01-12 03:57:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-01-12 02:12:54 -0800
commitd0c355917839ac06463ea1d0852eb56835cb7b45 (patch)
treef540bac62a4fcd9426bcfa75e9eafdcdbc403f1b
parentfb234e86288776386daad21fd6632414376b1cdc (diff)
fuse: treat DESTROY message as proto requires, ie. don't leave it unanswered
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 7254e556131..8843afb38fe 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2959,8 +2959,10 @@ fuse_enosys (xlator_t *this, fuse_in_header_t *finh, void *msg)
static void
-fuse_discard (xlator_t *this, fuse_in_header_t *finh, void *msg)
+fuse_destroy (xlator_t *this, fuse_in_header_t *finh, void *msg)
{
+ send_fuse_err (this, finh, 0);
+
FREE (finh);
}
@@ -3459,7 +3461,7 @@ init (xlator_t *this_xl)
for (i = 0; i < FUSE_713_OP_HIGH; i++)
fuse_ops[i] = fuse_enosys;
fuse_ops[FUSE_INIT] = fuse_init;
- fuse_ops[FUSE_DESTROY] = fuse_discard;
+ fuse_ops[FUSE_DESTROY] = fuse_destroy;
fuse_ops[FUSE_LOOKUP] = fuse_lookup;
fuse_ops[FUSE_FORGET] = fuse_forget;
fuse_ops[FUSE_GETATTR] = fuse_getattr;