[Devel] [PATCH RHEL7 COMMIT] fuse: enable synchronous close for both "pstorage://" and "vstorage://" fs types

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 23 05:47:14 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.18.2.vz7.14.7
------>
commit ea1374b872586316db0af3f4183eb704f33e2f4c
Author: Andrey Zaitsev <azaitsev at virtuozzo.com>
Date:   Mon May 23 16:47:14 2016 +0400

    fuse: enable synchronous close for both "pstorage://" and "vstorage://" fs types
    
    At the moment FUSE enables the synchronous close features for
    pstorage:// mount points.
    
    After rename pStorage -> vStorage FUSE must do it for
    vstorage:// mount points as well.
    
    https://jira.sw.ru/browse/PSBM-47206
    
    Signed-off-by: Zaitsev Andrey <azaitsev at virtuozzo.com>
---
 fs/fuse/inode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 13d6100..5ccecae 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -1252,7 +1252,9 @@ static struct dentry *fuse_mount(struct file_system_type *fs_type,
 	 * Seems, this is the only place where we have some variable (dev_name), which
 	 * is not confined by fuse API and already defined.
 	 */
-	if (!IS_ERR(dentry) && dev_name && strncmp(dev_name, "pstorage://", 11) == 0) {
+	if (!IS_ERR(dentry) && dev_name &&
+			(strncmp(dev_name, "pstorage://", 11) == 0 ||
+				strncmp(dev_name, "vstorage://", 11) == 0) ) {
 		struct fuse_conn *fc = dentry->d_sb->s_fs_info;
 
 		if (!(fc->flags & FUSE_DISABLE_CLOSE_WAIT))


More information about the Devel mailing list