diff mbox series

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

Message ID 20230420092842.786-1-ddiss@suse.de (mailing list archive)
State New, archived
Headers show
Series [btrfs-progs] btrfs-completion: include files in "du" completion | expand

Commit Message

David Disseldorp April 20, 2023, 9:28 a.m. UTC
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>
---
 btrfs-completion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Sterba April 25, 2023, 2:58 p.m. UTC | #1
On Thu, Apr 20, 2023 at 11:28:42AM +0200, David Disseldorp wrote:
> 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>

Added to devel, thanks.
diff mbox series

Patch

diff --git a/btrfs-completion b/btrfs-completion
index af9530a5..44c7f7f3 100644
--- a/btrfs-completion
+++ b/btrfs-completion
@@ -103,7 +103,7 @@  _btrfs()
 		case $cmd in
 			filesystem)
 				case $prev in
-					defragment)
+					du|defragment)
 						_filedir
 						return 0
 						;;