From: Christoph Anton Mitterer <calestyo@scientia.org>
To: Roman Mamedov <rm@romanrm.net>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: exactly shrinking btrfs on a device?
Date: Mon, 08 Apr 2024 04:00:38 +0200 [thread overview]
Message-ID: <1c043fdf6f4cb771fb38f45615263f660656cfc4.camel@scientia.org> (raw)
In-Reply-To: <20240407192913.0682fa4d@nvm>
On Sun, 2024-04-07 at 19:29 +0500, Roman Mamedov wrote:
> Try "btrfs fi show /mnt/point/ --raw". It will show the device size
> in
> bytes, as used by Btrfs.
>
> ...
> devid 1 size 503251058688 used 400023945216 path
> /dev/sda3
> ...
>
> # blockdev --getsize64 /dev/sda3
> 503251060736
>
> This seems to be the number you're looking for.
Thanks for the hint. I think it's the same as what I already had seen
from dump-super.
I've submitted https://github.com/kdave/btrfs-progs/pull/775 cause I
think that should go into the documentation.
Thanks,
Chris.
prev parent reply other threads:[~2024-04-08 2:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 22:22 exactly shrinking btrfs on a device? Christoph Anton Mitterer
2024-04-05 22:37 ` Roman Mamedov
2024-04-05 22:41 ` Christoph Anton Mitterer
2024-04-06 5:03 ` Andrei Borzenkov
2024-04-07 2:52 ` Christoph Anton Mitterer
2024-04-07 14:29 ` Roman Mamedov
2024-04-08 2:00 ` Christoph Anton Mitterer [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=1c043fdf6f4cb771fb38f45615263f660656cfc4.camel@scientia.org \
--to=calestyo@scientia.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=rm@romanrm.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).