-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patched btrfsck to allow rebuilding a superblock from an old tree / generation. #11
base: master
Are you sure you want to change the base?
Commits on Nov 1, 2011
-
Btrfs-progs: add an option for specifying the root to restore
If the normal fs tree is hosed and the user has multiple subvolumes it's handy to be able to specify just one of the subvolumes to restore. It's also handy if a user only wants to restore say /home instead of his entire disk. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedNov 1, 2011 Configuration menu - View commit details
-
Copy full SHA for 0e6aead - Browse repository at this point
Copy the full SHA 0e6aeadView commit details
Commits on Nov 4, 2011
-
Btrfs-progs: try other mirrors if decomression fails
This will make the restore program fall back on other mirrors if it fails to decompress an extent for whatever reason. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedNov 4, 2011 Configuration menu - View commit details
-
Copy full SHA for 9dee07a - Browse repository at this point
Copy the full SHA 9dee07aView commit details
Commits on Nov 7, 2011
-
Btrfs-progs: try other mirrors on read failure
If we hit a bad disk and the read doesn't work, try other mirrors in case we have other disks with good copies. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedNov 7, 2011 Configuration menu - View commit details
-
Copy full SHA for ff0e1b1 - Browse repository at this point
Copy the full SHA ff0e1b1View commit details
Commits on Nov 9, 2011
-
Configuration menu - View commit details
-
Copy full SHA for 1607360 - Browse repository at this point
Copy the full SHA 1607360View commit details
Commits on Nov 10, 2011
-
Merge pull request #3 from djmarcin/master
Fixes for my Raid10 restore issues.
Configuration menu - View commit details
-
Copy full SHA for baf3909 - Browse repository at this point
Copy the full SHA baf3909View commit details
Commits on Nov 16, 2011
-
btrfs-progs: Check metadata mirrors in find-root.
Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for a1ebf7b - Browse repository at this point
Copy the full SHA a1ebf7bView commit details
Commits on Nov 28, 2011
-
Merge pull request #4 from djmarcin/for-josef
btrfs-progs: Check metadata mirrors in find-root.
Configuration menu - View commit details
-
Copy full SHA for 741a5ca - Browse repository at this point
Copy the full SHA 741a5caView commit details -
restore: Split output directory and btrfs-local path search_dir() par…
…ameters search_dir() recurses down the btrfs tree, and used to take the output path for every item (i.e. in the running system, output root directory concatenated with btrfs-local pathname) passed as the only path parameter. Moving the output root directory to a separate parameter and passing the btrfs-local pathname for each file and directory separately allows easy filtering based on the btrfs-local pathname. Signed-off-by: Peter Stuge <peter@stuge.se> Signed-off-by: Josef Bacik <josef@redhat.com>
Peter Stuge authored and Josef Bacik committedNov 28, 2011 Configuration menu - View commit details
-
Copy full SHA for 266f413 - Browse repository at this point
Copy the full SHA 266f413View commit details -
restore: Add regex matching of paths and files to be restored
The option -m is used to specify the regex string. -c is used to specify case insensitive matching. -i was already taken. In order to restore only a single folder somewhere in the btrfs tree, it is unfortunately neccessary to construct a slightly nontrivial regex, e.g.: restore -m '^/(|home(|/username(|/Desktop(|/.*))))$' /dev/sdb2 /output This is needed in order to match each directory along the way to the Desktop directory, as well as all contents below the Desktop directory. Signed-off-by: Peter Stuge <peter@stuge.se> Signed-off-by: Josef Bacik <josef@redhat.com>
Peter Stuge authored and Josef Bacik committedNov 28, 2011 Configuration menu - View commit details
-
Copy full SHA for 2f0c2a2 - Browse repository at this point
Copy the full SHA 2f0c2a2View commit details
Commits on Nov 29, 2011
-
btrfs-progs: In find-root, dump bytenr for every slot.
Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for e8919ef - Browse repository at this point
Copy the full SHA e8919efView commit details -
btrfs-progs: Add utility to dump all superblocks found on a device.
Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for db874f1 - Browse repository at this point
Copy the full SHA db874f1View commit details -
btrfs-progs: Add the ability to use the earliest super found when ope…
…ning the ctree. Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for 6330d8d - Browse repository at this point
Copy the full SHA 6330d8dView commit details -
btrfs-progs: Use oldest super for btrfs-select-super. Add required co…
…nfirmation to btrfs-select-super. Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for a780325 - Browse repository at this point
Copy the full SHA a780325View commit details
Commits on Nov 30, 2011
-
Merge pull request #5 from djmarcin/for-josef
btrfs-progs: In find-root, dump bytenr for every slot.
Configuration menu - View commit details
-
Copy full SHA for a08aa94 - Browse repository at this point
Copy the full SHA a08aa94View commit details -
Merge pull request #6 from djmarcin/rollback-super
btrfs-progs: Utilities for dumping and rolling back to oldest super on filesystem
Configuration menu - View commit details
-
Copy full SHA for 09564cd - Browse repository at this point
Copy the full SHA 09564cdView commit details
Commits on Dec 2, 2011
-
btrfs-progs: add lzo compression support to restore
This patch simply adds support to decompress lzo compressed extents in restore. Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 2, 2011 Configuration menu - View commit details
-
Copy full SHA for 2fe4611 - Browse repository at this point
Copy the full SHA 2fe4611View commit details -
btrfs-progs: fix regexec to only work if we actually have a regexec
We were unconditionally executing our regular expression, even though we may not have one, so check to make sure mreg is not null before calling regexec. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 2, 2011 Configuration menu - View commit details
-
Copy full SHA for 1b8b3c3 - Browse repository at this point
Copy the full SHA 1b8b3c3View commit details
Commits on Dec 6, 2011
-
btrfs-progs: Fix compilation errors with btrfs-select-super.c introdu…
…ced by refactoring. Signed-off-by: David Marcin <djmarcin@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3ceceda - Browse repository at this point
Copy the full SHA 3cecedaView commit details -
Merge pull request #7 from djmarcin/for-josef
btrfs-progs: Fix compilation errors with btrfs-select-super.c introduced...
Configuration menu - View commit details
-
Copy full SHA for 6d616e5 - Browse repository at this point
Copy the full SHA 6d616e5View commit details
Commits on Dec 7, 2011
-
Btrfs-progs: fix restore to fall back to the broken open_ctree
We don't need most of the roots when doing restore, like the extent tree. So if the recovery open_ctree fails because it's trying to open one of these useless roots just fall back to open_ctree_broken. This will just open the chunk root which is the bare minimum of what we need to operate. Then from there we can setup the tree_root and the fs_root, and if either of those are gone we can't restore anyway. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 7, 2011 Configuration menu - View commit details
-
Copy full SHA for fb0cfed - Browse repository at this point
Copy the full SHA fb0cfedView commit details -
Btrfs-progs: don't bug out if we can't find the last root
Return an error instead of BUG()'ing out. Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 7, 2011 Configuration menu - View commit details
-
Copy full SHA for 412d4f1 - Browse repository at this point
Copy the full SHA 412d4f1View commit details -
Btrfs-progs: make find_and_setup_root return an error
Don't BUG(), return an error so the recovery program can work its mojo. Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 7, 2011 Configuration menu - View commit details
-
Copy full SHA for df8b44a - Browse repository at this point
Copy the full SHA df8b44aView commit details
Commits on Dec 8, 2011
-
Btrfs-progs: check return value properly
We were checking for a null root coming back from btrfs_read_fs_root but thats not right since it returns a ERR_PTR. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 8, 2011 1Configuration menu - View commit details
-
Copy full SHA for 4686f96 - Browse repository at this point
Copy the full SHA 4686f96View commit details
Commits on Dec 9, 2011
-
Btrfs-progs: give restore a list roots option
Since restore has the ability to open really really screwed up file systems, add a list roots option to it so we can still get the contents of the tree root on a horribly broken fs. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedDec 9, 2011 Configuration menu - View commit details
-
Copy full SHA for 9bb7aa7 - Browse repository at this point
Copy the full SHA 9bb7aa7View commit details
Commits on Jan 4, 2012
-
Hermann Gausterer committed
Jan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for 767972e - Browse repository at this point
Copy the full SHA 767972eView commit details -
Btrfs-progs: make find root spit out the size of the disk
In order to figure out what exactly is broken on a fs we need to spit out the current offset we are on and the size of the fs to know if the super is wrong and we just need to ignore it, or if the offset we got is bad and we should just keep searching. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for b36b23b - Browse repository at this point
Copy the full SHA b36b23bView commit details -
Btrfs-progs: add some verbose output to find-root
Trying to track down why we can't find roots, add some verbose output so we know what chunks we're scanning and when we move to new chunks. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for d4d88fe - Browse repository at this point
Copy the full SHA d4d88feView commit details -
Btrfs-progs: fix restore to actually use the root location if specified
We were using the wrong variable for the root location if we specified -f when doing restore. Fix this. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for f034665 - Browse repository at this point
Copy the full SHA f034665View commit details -
Btrfs-progs: remove the physical disk size check from find-root
Our logical offsets may be beyond what we think the size of the disk is, so our check is bogus, remove it. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for a3958e5 - Browse repository at this point
Copy the full SHA a3958e5View commit details -
Btrfs-progs: fix error output and dont read from cache
If we have to build our fs_info by hand don't read from the cache when looking for the fs_root just in case we set something up last time. Also actually print the right error, not the root which is ok. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for 5ec6eea - Browse repository at this point
Copy the full SHA 5ec6eeaView commit details -
Btrfs-progs: print the objectid of the root we find when doing find-root
We need to know if we find a valid fs tree when doing find root, so print the objectid of the roots we find when we find a tree root. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for a657103 - Browse repository at this point
Copy the full SHA a657103View commit details -
Btrfs-progs: make specifying root objectid work if the fs is broken
We need to be able to handle the case where we want to restore from a specific root if the fs is really really really toast, this patch does that. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for 87edb6f - Browse repository at this point
Copy the full SHA 87edb6fView commit details -
Btrfs-progs: don't free the existing node
It may be used elsewhere and in the case of a broken fs it won't be there at all and it makes an assertion trip. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Josef Bacik committedJan 4, 2012 Configuration menu - View commit details
-
Copy full SHA for 77ac611 - Browse repository at this point
Copy the full SHA 77ac611View commit details
Commits on Apr 5, 2012
-
Configuration menu - View commit details
-
Copy full SHA for 2d18933 - Browse repository at this point
Copy the full SHA 2d18933View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cd8e40 - Browse repository at this point
Copy the full SHA 0cd8e40View commit details
Commits on May 22, 2012
-
Merge pull request #10 from ivant/master
Small fixes to compilation/linking
Configuration menu - View commit details
-
Copy full SHA for b2f74cb - Browse repository at this point
Copy the full SHA b2f74cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2ee68a - Browse repository at this point
Copy the full SHA a2ee68aView commit details
Commits on Jul 22, 2012
-
Configuration menu - View commit details
-
Copy full SHA for 2a43e2b - Browse repository at this point
Copy the full SHA 2a43e2bView commit details
Commits on Jul 29, 2012
-
Configuration menu - View commit details
-
Copy full SHA for 1605ee0 - Browse repository at this point
Copy the full SHA 1605ee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for eba137a - Browse repository at this point
Copy the full SHA eba137aView commit details