From: Ondrej Kozina <okozina@redhat.com>
To: linux-btrfs@vger.kernel.org
Cc: lczerner@redhat.com
Subject: question about btrfsck/mount behavior on corrupted fs
Date: Thu, 08 Nov 2012 18:06:10 +0100 [thread overview]
Message-ID: <509BE682.6010008@redhat.com> (raw)
Hi all,
I've been playing with btrfs resize recently and run into strange
looking behavior to me. One of my simple test scenario was following:
- partition some block device (lets say sda sectors 2-2000 are sda1)
- try to create btrfs on top of it (just mkfs.btrfs /dev/sda1)
- fill the fs with data
- unmount the device
- let's simulate usual mistake here: downsize the partition with btrfs
filesystem w/o proper btrfs resize command. In fact I moved the
beginning of the sda2 partition into middle of former sda1. so now it
looks like: 2-1000 sda1, 1001-2000 sda2.
- remount the fs
I was surprised both commands btrfsck and mount were successful w/o any
error report even in syslog. Does it work as intended? Do you plan to
support some sort of checks during mount/btrfsck? Possibly a new feature
in btrfsck utility to warn the user something ugly happened to his fs?
Is there any way to fix broken fs like this (supposing the cut off area
didn't contain allocated blocks)?
Kind regards
Ondrej
reply other threads:[~2012-11-08 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=509BE682.6010008@redhat.com \
--to=okozina@redhat.com \
--cc=lczerner@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.