]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Fix mkdir relative path error 28616/head
authorVarsha Rao <varao@redhat.com>
Fri, 26 Apr 2019 17:50:51 +0000 (23:20 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 17 Jun 2019 20:22:50 +0000 (13:22 -0700)
Directory is not created for relative path. This patch fixes it.

Fixes: https://tracker.ceph.com/issues/39507
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit e89287673c3470b00125682b1d0bdab6e0e08ef4)

src/tools/cephfs/cephfs-shell

index 07b5adee9c5f9bfbbfa4a550f9300d2d3840bd83..673bc47db311ed61eeaad7976bf0194e54fb4651 100644 (file)
@@ -479,7 +479,8 @@ exists.')
         Create directory.
         """
         for dir_name in args.dirs:
-            path = to_bytes('/' + dir_name)
+            path = to_bytes(dir_name)
+
             if args.mode:
                 permission = int(args.mode, 8)
             else: