Project

General

Profile

Actions

Feature #38740

closed

cephfs-shell: support mkdir with non-octal mode

Added by Milind Changire about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Component(FS):
cephfs-shell
Labels (FS):
Pull request ID:

Description

CephFS:~/>>> mkdir -m rw- d2
invalid literal for int() with base 8: 'rw-'
Traceback (most recent call last):
  File "../src/tools/cephfs/cephfs-shell", line 367, in onecmd
    res = Cmd.onecmd(self, line)
  File "/usr/lib/python3.7/site-packages/cmd2.py", line 2672, in onecmd
    stop = func(statement)
  File "/usr/lib/python3.7/site-packages/cmd2.py", line 496, in cmd_wrapper
    return func(instance, args)
  File "../src/tools/cephfs/cephfs-shell", line 407, in do_mkdir
    permission = int(args.mode, 8)
ValueError: invalid literal for int() with base 8: 'rw-'

Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #39378: nautilus: cephfs-shell: support mkdir with non-octal modeResolvedNathan CutlerActions
Actions

Also available in: Atom PDF