linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@gmail.com>
To: kreijack@gmail.com, linux-btrfs@vger.kernel.org
Cc: Stefan Behrens <sbehrens@giantdisaster.de>
Subject: [PATCH][BTRFS-PROGS][V2] btrfs-show-super: a tool to dump superblock
Date: Fri,  2 Nov 2012 22:46:13 +0100	[thread overview]
Message-ID: <1351892774-20614-1-git-send-email-kreijack@inwind.it> (raw)

Hi all,

I updated the Stefan's program btrfs-show-super. Now it prints the results of
some sanity checks (about checksum and superblock magic string), allow
more than one dovice as argument and a '-a' switch which dumps all the
device superblocks.

# btrfs-show-super  /dev/sdh1 
superblock: bytenr=65536, device=../sysfs/disks/disk-02.img
---------------------------------------------------------
csum                    0x64d9fdb9 [match]
bytenr                  65536
flags                   0x1
magic                   _BHRfS_M [match]
fsid                    6d6141a6-5440-4f75-9c85-6d0ec7450187
label                   test2
generation              15
root                    29396992
sys_array_size          355
chunk_root_generation   15
root_level              0
chunk_root              20975616
chunk_root_level        0
log_root                0
log_root_transid        0
log_root_level          0
total_bytes             117041005568
bytes_used              290816
sectorsize              4096
nodesize                4096
leafsize                4096
stripesize              4096
root_dir                6
num_devices             4
compat_flags            0x0
compat_ro_flags         0x0
incompat_flags          0x1
csum_type               0
csum_size               4
cache_generation        15
dev_item.uuid           421d2bdb-c9d9-41f8-a966-57248605f18c
dev_item.fsid           6d6141a6-5440-4f75-9c85-6d0ec7450187 [match]
dev_item.type           0
dev_item.total_bytes    3222274048
dev_item.bytes_used     1900216320
dev_item.io_align       4096
dev_item.io_width       4096
dev_item.sector_size    4096
dev_item.devid          1
dev_item.dev_group      0
dev_item.seek_speed     0
dev_item.bandwidth      0
dev_item.generation     0


You can pull the source from:
        http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
branch
        super-block-dump


Changelog:
v1->v2  Patch cleanup (removed unnecessary spaces to be compliant to the
        kernel coding style)

-- 
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5


             reply	other threads:[~2012-11-02 21:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 21:46 Goffredo Baroncelli [this message]
2012-11-02 21:46 ` [PATCH] Add btrfs-show-super Goffredo Baroncelli
2012-11-02 22:38   ` Stefan Behrens
2012-11-03 21:37   ` Alex Lyakas

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=1351892774-20614-1-git-send-email-kreijack@inwind.it \
    --to=kreijack@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=sbehrens@giantdisaster.de \
    /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 NNTP newsgroup(s).