]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-fuse: discard space restriction for mv operation 6938/head
authorwuxiangwei <wuxiangwei@h3c.com>
Sun, 20 Dec 2015 09:14:25 +0000 (04:14 -0500)
committerwuxiangwei <wuxiangwei@h3c.com>
Sun, 20 Dec 2015 09:14:35 +0000 (04:14 -0500)
discard space restriction for destination image name of
the mv operation.

Signed-off-by: Xiangwei Wu wuxiangwei@h3c.com
src/rbd_fuse/rbd-fuse.cc

index 12bcf973f68abe28ecae1d865e5222b2269e721a..32930951928589e351454ad147f29782d5de0853 100644 (file)
@@ -538,7 +538,7 @@ rbdfs_create(const char *path, mode_t mode, struct fuse_file_info *fi)
 int rbdfs_rename(const char *path, const char *destname)
 {
     const char *srcname = NULL;
-    const char *extra[] = {" ", "@", "/"};
+    const char *extra[] = {"@", "/"};
     std::string image_dest_name(destname + 1);
     
     // check image dest name