From d0c355917839ac06463ea1d0852eb56835cb7b45 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 12 Jan 2010 03:57:42 +0000 Subject: fuse: treat DESTROY message as proto requires, ie. don't leave it unanswered Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- xlators/mount/fuse/src/fuse-bridge.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/mount') 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; -- cgit