From 3c6647577f81568b7ad5cbf7435ef98aaa79e00a Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Fri, 13 Nov 2009 13:13:09 +0000 Subject: mount/fuse: Assign the right inode to fuse_entry_out in fuse_create_cbk(). Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 380 ([3.0.0 pre1] Crash in fuse_create_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=380 --- xlators/mount/fuse/src/fuse-bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 94ed59a98f6..714ca995d5b 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -1710,9 +1710,9 @@ fuse_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this, fd_ref (fd); - feo.nodeid = inode_to_nodeid (inode); + feo.nodeid = inode_to_nodeid (linked_inode); - feo.generation = inode->generation; + feo.generation = linked_inode->generation; feo.entry_valid = calc_timeout_sec (priv->entry_timeout); feo.entry_valid_nsec = calc_timeout_nsec (priv->entry_timeout); -- cgit