From: Varsha Rao Date: Fri, 26 Apr 2019 17:50:51 +0000 (+0530) Subject: cephfs-shell: Fix mkdir relative path error X-Git-Tag: v14.2.2~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F28616%2Fhead;p=ceph.git cephfs-shell: Fix mkdir relative path error Directory is not created for relative path. This patch fixes it. Fixes: https://tracker.ceph.com/issues/39507 Signed-off-by: Varsha Rao (cherry picked from commit e89287673c3470b00125682b1d0bdab6e0e08ef4) --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 07b5adee9c5f..673bc47db311 100644 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -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: