Bug 1636965 - key sync-to-mount, string type asked, has pointer type [Invalid argument]
Summary: key sync-to-mount, string type asked, has pointer type [Invalid argument]
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Sheetal Pamecha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-08 11:29 UTC by Yaniv Kaul
Modified: 2020-03-12 13:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-12 13:00:52 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.