summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/src/glfs-fops.c2
-rw-r--r--api/src/glfs-resolve.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 3191ed7009c..8df237fd37b 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -137,6 +137,7 @@ out:
glfs_fd_destroy (glfd);
glfd = NULL;
} else if (glfd) {
+ glfd->fd->flags = flags;
fd_bind (glfd->fd);
glfs_fd_bind (glfd);
}
@@ -414,6 +415,7 @@ out:
glfs_fd_destroy (glfd);
glfd = NULL;
} else if (glfd) {
+ glfd->fd->flags = flags;
fd_bind (glfd->fd);
glfs_fd_bind (glfd);
}
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c
index 104fc9e48f2..3179af22c2d 100644
--- a/api/src/glfs-resolve.c
+++ b/api/src/glfs-resolve.c
@@ -632,6 +632,7 @@ glfs_migrate_fd_safe (struct glfs *fs, xlator_t *newsubvol, fd_t *oldfd)
goto out;
}
+ newfd->flags = oldfd->flags;
fd_bind (newfd);
out:
if (newinode)