From patchwork Thu Apr 20 09:28:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 13218198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6BECC77B72 for ; Thu, 20 Apr 2023 09:27:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232922AbjDTJ1J (ORCPT ); Thu, 20 Apr 2023 05:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjDTJ1H (ORCPT ); Thu, 20 Apr 2023 05:27:07 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1504EC for ; Thu, 20 Apr 2023 02:27:06 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4DCE11FDB9; Thu, 20 Apr 2023 09:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681982825; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q7KH3b4Hdr2cRdTNpvCBUEnzi21OZse7tzoUvRZLz1U=; b=VxNASebq0qby39gCtlrkX1rToTwFiyUoUbKFmDMHFxSCK3c44o56IPSP9fPEMzKzC0TKEI hNXH1BMa3yJxn4Yu3ACzoECPC2hIMntcDX0zWj0eNgxzwRUpL+6oTRDIkgyHJRFpXvzmYh c0szBslXhujyDXRlqsH1RTshAo9hCCs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681982825; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q7KH3b4Hdr2cRdTNpvCBUEnzi21OZse7tzoUvRZLz1U=; b=hwxR1taf59uG21dOw/wgiSPsVc5nsbojhcS6NEeHfx07ELFs74tnzzNNNHj5m4GfDX7grT GoXUVB+9o7gHWuBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 278BD13584; Thu, 20 Apr 2023 09:27:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6WMeCGkFQWTwEAAAMHmgww (envelope-from ); Thu, 20 Apr 2023 09:27:05 +0000 From: David Disseldorp To: linux-btrfs@vger.kernel.org Cc: David Disseldorp Subject: [PATCH btrfs-progs] btrfs-completion: include files in "du" completion Date: Thu, 20 Apr 2023 11:28:42 +0200 Message-Id: <20230420092842.786-1-ddiss@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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 --- btrfs-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;;