]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: option -r is not for reverse
authorRishabh Dave <ridave@redhat.com>
Fri, 16 Aug 2019 17:53:42 +0000 (23:23 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 13 Sep 2019 05:15:42 +0000 (10:45 +0530)
Option "-r" for du command stands for recursive and not reverse.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell

index 67337c7398f71f56a7600c703c9de6bcbbc31660..174d118b802852058a82a92dfa6a6dcc3294aed1 100755 (executable)
@@ -1159,9 +1159,6 @@ sub-directories, files')
             else:
                 dir_trav.append('.')
 
-            if args.r:
-                dir_trav = reversed(dir_trav)
-
             for i in dir_trav:
                 try:
                     i_path = os.path.normpath(i)