From mboxrd@z Thu Jan 1 00:00:00 1970 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 DB4B6C7EE37 for ; Tue, 6 Jun 2023 19:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239610AbjFFTqZ (ORCPT ); Tue, 6 Jun 2023 15:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234186AbjFFTqK (ORCPT ); Tue, 6 Jun 2023 15:46:10 -0400 Received: from len.romanrm.net (len.romanrm.net [91.121.86.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370541FDB for ; Tue, 6 Jun 2023 12:45:30 -0700 (PDT) Received: from nvm (nvm.home.romanrm.net [IPv6:fd39::101]) by len.romanrm.net (Postfix) with SMTP id 1B75840176; Tue, 6 Jun 2023 19:44:44 +0000 (UTC) Date: Wed, 7 Jun 2023 00:44:43 +0500 From: Roman Mamedov To: Bernd Lentes Cc: Btrfs BTRFS Subject: Re: can i delete a snapshot with rm -rf ? Message-ID: <20230607004443.58b9395c@nvm> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, 6 Jun 2023 19:34:36 +0000 Bernd Lentes wrote: > i'm pretty sure having read that this is possible. And in some scripts i do it this way. > But now i found on the net to not delete a snapshot with rm. > > Cab you help me to clarify that ? Yes you can, but it is not the optimal way. It would be more time-consuming, and might lead to metadata bloat and fragmentation, since multiple states of the directory tree over time as the deletion progresses will need to get recorded and re-recorded in the metadata. -- With respect, Roman