From: fanjunwei Date: Mon, 13 Apr 2020 10:17:42 +0000 (+0800) Subject: client: fix ceph-fuse parse command line failed X-Git-Tag: v16.1.0~2576^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca20021d9e10d86b0c575f7e78b2c17ec132ed80;p=ceph.git client: fix ceph-fuse parse command line failed When add config fuse_max_write, then mount got error: fuse: bad mount point `max_write=1048576': No such file or directory Signed-off-by: fanjunwei --- diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index e21f27930e115..fb080924dbd94 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -1119,7 +1119,6 @@ int CephFuse::Handle::init(int argc, const char *argv[]) if (fuse_max_write > 0) { char strsplice[65]; newargv[newargc++] = "-o"; - newargv[newargc++] = strsplice; sprintf(strsplice, "max_write=%zu", (size_t)fuse_max_write); newargv[newargc++] = strsplice; }