public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: George Shuklin <george.shuklin@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Replacing or merging last snapshot
Date: Sat, 22 Aug 2020 13:18:57 +0100	[thread overview]
Message-ID: <20200822121857.GA1093@savella.carfax.org.uk> (raw)
In-Reply-To: <878539b1-b8eb-f547-fb4a-9026f1d51cf7@gmail.com>

On Sat, Aug 22, 2020 at 02:48:18PM +0300, George Shuklin wrote:
> I wonder if there is a way to free space if there is only one snapshot
> available. The problem is that there is a hidden top-level (id=5) subvolume,
> and there was ever switch from top-level to another subvolume as 'default'.
> If top-level subvolume have some data (not present in 'default' snapshot),
> this space is wasted.
> 
> Are there way to 'merge' snapshot into top-level subvolume, or a way to
> completely remove subvolume 5 (without breaking fs)?

   You can't remove the top-level subvolume (id 5). All you can do is
mount it (with -o subvolid=5 or =0) and (carefully) delete the parts
that you don't need. Remember that all the other subvolumes are
visible in this view, so don't just rm -rf *, because you'll delete
everything in the FS including your currently active subvols.

   Hugo.

-- 
Hugo Mills             | emacs: Emacs Makes A Computer Slow.
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

      reply	other threads:[~2020-08-22 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-22 11:48 Replacing or merging last snapshot George Shuklin
2020-08-22 12:18 ` Hugo Mills [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200822121857.GA1093@savella.carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=george.shuklin@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox