All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs check --repair now runs in minutes instead of hours? aborting
@ 2017-09-05  1:05 Marc MERLIN
  2017-09-05  1:21 ` Qu Wenruo
  0 siblings, 1 reply; 12+ messages in thread
From: Marc MERLIN @ 2017-09-05  1:05 UTC (permalink / raw)
  To: quwenruo, Lu Fengqi, Chris Mason; +Cc: Btrfs BTRFS, David Sterba

Ok, I don't want to sound like I'm complaining :) but I updated
btrfs-progs to top of tree in git, installed it, and ran it on an 8TiB
filesystem that used to take 12H or so to check.

It finished in maybe 10mn, just 10mn! :)
gargamel:/var/local/src/btrfs-progs# btrfs check --repair /dev/mapper/dshelf1
enabling repair mode
Checking filesystem on /dev/mapper/dshelf1
UUID: 36f5079e-ca6c-4855-8639-ccb82695c18d
checking extents
Fixed 0 roots.
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 11674263347200 bytes used, no error found
total csum bytes: 11384482936
total tree bytes: 13704495104
total fs tree bytes: 724729856
total extent tree bytes: 482639872
btree space waste bytes: 1167025205
file data blocks allocated: 12041456693248
 referenced 12063146434560

This is great news, but can I trust that the program worked properly and
indeed that my filesystem is fully clean?
Or at this point if I'm not running --mode=lowmem, the regular mode is
really doesn't check much and only lowmem can do a proper check? (even
though it can't fix problems once it finds them)

Thanks
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-09-10 13:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05  1:05 btrfs check --repair now runs in minutes instead of hours? aborting Marc MERLIN
2017-09-05  1:21 ` Qu Wenruo
2017-09-05  2:55   ` Marc MERLIN
2017-09-05  4:06     ` Marc MERLIN
2017-09-05  8:05     ` Qu Wenruo
2017-09-05  8:54       ` Duncan
2017-09-05  9:06         ` Qu Wenruo
2017-09-05  9:35           ` Duncan
2017-09-05 14:45       ` Marc MERLIN
2017-09-09 17:44         ` Marc MERLIN
2017-09-10  6:01           ` Qu Wenruo
2017-09-10 13:18             ` Marc MERLIN

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.