Bug 1636965

Summary: key sync-to-mount, string type asked, has pointer type [Invalid argument]
Product: [Community] GlusterFS Reporter: Yaniv Kaul <ykaul>
Component: fuseAssignee: Sheetal Pamecha <spamecha>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: bugs, pasik
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 13:00:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yaniv Kaul 2018-10-08 11:29:35 UTC
Description of problem:
xlators/mount/fuse/src/fuse-bridge.c:5668:    ret = dict_get_str(options, "sync-to-mount", &value_string);
glusterfsd/src/glusterfsd.c:566:        ret = dict_set_static_ptr(options, "sync-to-mount", "enable");

Also in fuse:

[2018-10-08 11:04:14.265916] I [dict.c:2410:dict_get_str] (-->/build/install/lib/glusterfs/6dev/xlator/mount/fuse.so(init+0x5c0) [0x7fe60b05fbd9] -->/build/install/lib/libglusterfs.so.0(xlator_option_init_double+0xf2) [0x7fe613cf5e01] -->/build/install/lib/libglusterfs.so.0(dict_get_str+0x176) [0x7fe613c7c2e9] ) 0-dict: key negative-timeout, string type asked, has float type [Invalid argument]
[2018-10-08 11:04:14.266033] I [dict.c:2410:dict_get_str] (-->/build/install/lib/libglusterfs.so.0(+0x28b31) [0x7fe613c81b31] -->/build/install/lib/glusterfs/6dev/xlator/mount/fuse.so(init+0xa0d) [0x7fe60b060026] -->/build/install/lib/libglusterfs.so.0(dict_get_str+0x176) [0x7fe613c7c2e9] ) 0-dict: key sync-to-mount, string type asked, has pointer type [Invalid argument]
[2018-10-08 11:04:14.266141] I [dict.c:2410:dict_get_str] (-->/build/install/lib/glusterfs/6dev/xlator/mount/fuse.so(init+0xd10) [0x7fe60b060329] -->/build/install/lib/libglusterfs.so.0(xlator_option_init_bool+0xf2) [0x7fe613cf549c] -->/build/install/lib/libglusterfs.so.0(dict_get_str+0x176) [0x7fe613c7c2e9] ) 0-dict: key no-root-squash, string type asked, has pointer type [Invalid argument]

Need to sync between the two (and probably end up using a boolean!)

Comment 1 Yaniv Kaul 2019-07-01 06:27:10 UTC
Still relevant as of Gluster 7:
[ykaul@ykaul glusterfs]$ grep -FRIsn "sync-to-mount"
glusterfsd/src/glusterfsd.c:588:        ret = dict_set_static_ptr(options, "sync-to-mount", "enable");
xlators/mount/fuse/src/fuse-bridge.c:6634:    ret = dict_get_str(options, "sync-to-mount", &value_string);
xlators/mount/fuse/src/fuse-bridge.c:6914:    {.key = {"sync-to-mount"}, .type = GF_OPTION_TYPE_BOOL},

Comment 2 Worker Ant 2020-03-12 13:00:52 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/985, and will be tracked there from now on. Visit GitHub issues URL for further details