btrfs-progs: completion: include files in "du" completion

Currently "btrfs filesystem du" auto-completes for directories only,
but it can also be used against files to determine shared vs exclusive
extents.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Disseldorp 2023-04-20 11:28:42 +02:00 committed by David Sterba
parent d7f2ee3300
commit f75dd798d1

View File

@ -103,7 +103,7 @@ _btrfs()
case $cmd in
filesystem)
case $prev in
defragment)
du|defragment)
_filedir
return 0
;;