btrfs-progs/Documentation
Eric Sandeen fd518cfcb1 btrfs-show-super: don't try to print not-superblocks
If we point btrfs-show-super at a not-btrfs-device and
try to print all superblocks, bad things are apt to happen:

superblock: bytenr=274877906944, device=/dev/sdc2
---------------------------------------------------------
btrfs-show-super: ctree.h:1984: btrfs_super_csum_size: \
Assertion `!(t >= (sizeof(btrfs_csum_sizes) / sizeof((btrfs_csum_sizes)[0])))' failed.
csum			0xAborted

Don't try to print superblocks that don't look like superblocks,
and add an "-f" (force) option to try anyway, if the user
really wants to give it a shot.

Fix some spelling & capitalization while we're at it.

The manpage says that if any problem happens, 1 will
be returned, but that's already not true today LOL, so
I didn't bother to make it true when we detect bad
sb magic, either...

I figure it's worth continuing and trying all superblocks
in case just one has a corrupt magic.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
[renamed -f to -F due to clash with existing option, converted
relevant docs to asciidoc]
Signed-off-by: David Sterba <dsterba@suse.cz>
2014-08-22 14:39:31 +02:00
..
asciidoc.conf btrfs-progs: Introduce asciidoc based man page and btrfs man page. 2014-04-22 14:15:19 +02:00
btrfs-balance.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-check.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-convert.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs-debug-tree.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs-device.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-filesystem.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-find-root.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs-image.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs-inspect-internal.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-map-logical.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs-property.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-qgroup.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-quota.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-receive.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-replace.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-rescue.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-restore.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-scrub.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-send.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-show-super.txt btrfs-show-super: don't try to print not-superblocks 2014-08-22 14:39:31 +02:00
btrfs-subvolume.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfs-zero-log.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
btrfs.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00
btrfstune.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
fsck.btrfs.txt btrfs-progs: doc: make all commands and subcommands bold 2014-05-19 17:54:10 +02:00
Makefile btrfs-progs: doc: autoformat user-supplied arguments by sed 2014-05-19 17:53:18 +02:00
manpage-base.xsl btrfs-progs: Introduce asciidoc based man page and btrfs man page. 2014-04-22 14:15:19 +02:00
manpage-bold-literal.xsl btrfs-progs: Introduce asciidoc based man page and btrfs man page. 2014-04-22 14:15:19 +02:00
manpage-normal.xsl btrfs-progs: Introduce asciidoc based man page and btrfs man page. 2014-04-22 14:15:19 +02:00
mkfs.btrfs.txt btrfs-progs: doc: update the Availability section 2014-05-19 18:04:26 +02:00