diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 5dee6eac37e..b8d1238936a 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -907,7 +908,7 @@ static int remount_cb(void *handle) { // used for trimming kernel dcache. when remounting a file system, linux kernel // trims all unused dentries in the file system - char cmd[1024]; + char cmd[128+PATH_MAX]; CephFuse::Handle *cfuse = (CephFuse::Handle *)handle; snprintf(cmd, sizeof(cmd), "mount -i -o remount %s", cfuse->mountpoint); int r = system(cmd);