From 2f2e3bfb5ef89b5ba266a3df7496f95b11fb93e1 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 17 Aug 2012 14:21:07 +0530 Subject: syncop: handle 'dataonly' flag in syncop_fsync() * and also in syncop_readv(), don't look at _cbk args if op_ret is < 0. Change-Id: I3ab2982bc6d186e75b6adb74c8981e4ff7058bbe Signed-off-by: Amar Tumballi BUG: 839950 Reviewed-on: http://review.gluster.org/3828 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 837980efc..af6de8cd0 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3717,7 +3717,7 @@ fuse_migrate_fd (xlator_t *this, fd_t *fd, xlator_t *old_subvol, } while (create_in_progress); if (fd->inode->table->xl == old_subvol) { - ret = syncop_fsync (old_subvol, fd); + ret = syncop_fsync (old_subvol, fd, 0); if (ret < 0) { gf_log ("glusterfs-fuse", GF_LOG_WARNING, "syncop_fsync failed (%s)", strerror (errno)); -- cgit