Commit Graph

34 Commits

Author SHA1 Message Date
Kent Overstreet
e45b8acdc1 Fix a divide by zero 2018-12-19 18:27:57 -05:00
Kent Overstreet
0e9822571c Use opts.h for format options 2018-12-19 18:27:57 -05:00
Kent Overstreet
0c7db4eca3 Update bcachefs sources to 62de7539dc bcachefs: Make bkey types globally unique 2018-11-30 12:51:13 -05:00
Kent Overstreet
cc6479303f Update bcachefs sources to a9f14c773f bcachefs: More btree gc refactorings 2018-11-12 19:22:36 -05:00
Kent Overstreet
bdba182d10 Update bcachefs sources to d7dbddc450 bcachefs: revamp to_text methods 2018-11-09 04:06:53 -05:00
Tim Schlueter
f431cc9c95 Improved the show-super group and target printing
Disks without a group no longer prints uninitialized data.

Foreground, background, and promote targets now print what they are, not just
a single number. E.g.

Foreground write target:    none
Background write target:    Group 0 (slow)
Promote target:             Device 2 (b5d2aa58-9cc5-4ff0-a7ff-407216d27d7d)
2018-11-04 23:31:35 -08:00
Tim Schlueter
25dac4021f Print the filesystem creation time in show-super 2018-11-04 21:02:51 -08:00
Tim Schlueter
03c79a9a25 Added ktime_get_real_seconds() wrapper
Also, changed the last_mount print so it no longer prints out two newlines.
2018-11-04 21:00:33 -08:00
Kent Overstreet
db8cffeaed Update bcachefs sources to 8bf4b038d4 bcachefs: Assorted fixes for running on very small devices 2018-11-04 22:21:00 -05:00
Kent Overstreet
2ab2ab0f78 Update bcachefs sources to b12d1535f3 bcachefs: fix bounds checks in bch2_bio_map() 2018-11-03 20:19:25 -04:00
Kent Overstreet
e288c9f1de fix a (spurious) gcc warning 2018-11-03 16:58:41 -04:00
Kent Overstreet
cecf7e05e1 fix rereplicate command 2018-07-21 04:38:02 -04:00
Kent Overstreet
17e2f2775b Update bcachefs sources to 2cb70a82bc bcachefs: delete some debug code 2018-06-27 14:50:43 -04:00
Kent Overstreet
800408be11 bcachefs fs usage improvements 2018-05-04 14:48:00 -04:00
Kent Overstreet
c598d91dcb Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code 2018-04-10 19:23:58 -04:00
Kent Overstreet
6aabc97dc9 Add --durability to format 2018-03-13 03:23:27 -04:00
Kent Overstreet
8a57b1f1d5 minor disk group fixes;, add background_compression option 2018-02-28 17:57:55 -05:00
Kent Overstreet
cdf17bffad disk groups 2018-02-19 19:01:07 -05:00
Kent Overstreet
7875b82630 New data rereplicate command 2018-02-08 15:33:43 -05:00
Kent Overstreet
6976570d67 Update bcachefs sources to d5e561b3cc bcachefs: BCH_DATA ioctl 2018-02-08 15:33:42 -05:00
Kent Overstreet
4de98a2712 Update bcachefs sources to 02ae70070a bcachefs: Allocate new btree roots lazily 2018-01-11 07:02:08 -05:00
Kent Overstreet
dbad1685bc show-super can now print more stuff 2017-12-29 21:15:47 -05:00
Kent Overstreet
aca9f96dcc Resizing 2017-12-28 02:55:08 -05:00
Kent Overstreet
5053c6ed25 fix default checksum types 2017-12-15 12:57:40 -05:00
Austin Seipp
997bb216aa build: require explicit include paths for libbcachefs/
This removes the implicit `-I libbcachefs` argument to $(CC), which in turn
requires a set of minor changes throughout the tools. There are two advantages
to this setup:

    1) It is (arguably) easier to read, since the location of bcachefs includes
    are easier to understand at a glance ("where does util.h live?")

    2) It removes the need for a hack to include glibc's copy of
    dirent.h explicitly via '/usr/include/dirent.h', because libbcachefs/
    *also* has a dirent.h file and the compiler cannot disambiguate them.
    This has some ramifications on systems where /usr/include may not
    exist, such as NixOS.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2017-12-10 16:06:01 -06:00
Kent Overstreet
097fd2a5e6 Add commands for changing and removing passphrase 2017-11-08 16:06:37 -09:00
Kent Overstreet
8351bbc05b Update bcachefs sources to d4b7ef921a bcachefs: Refactoring 2017-11-08 16:01:26 -09:00
Kent Overstreet
bf8c59996b Update for new superblock options; makefile improvements 2017-10-08 10:25:36 -08:00
Kent Overstreet
e0c54d52f5 Workarounds for building with gcc 4 2017-08-23 16:30:25 -06:00
Kent Overstreet
63065c0128 Update bcachefs sources to 9ceb982d77 bcachefs: Store bucket gens in a btree 2017-05-08 06:57:17 -08:00
Kent Overstreet
5c7454176e cmd_list improvements; use %m 2017-04-14 20:40:50 -08:00
Kent Overstreet
e783d814e8 Update bcachefs sources to da037866e6 2017-04-09 20:12:37 -08:00
Kent Overstreet
2831b89a7c More cmd_migrate improvements
Factor out bch2_pick_bucket_size() from the format code, and pick the
bucket size before picking the superblock location - that way we can
ensure the superblock gets its own bucket and doesn't trigger warnings
due to the allocation code noticing different types of data in the same
bucket.
2017-04-02 19:43:35 -08:00
Kent Overstreet
5ec39af8ea Rename from bcache-tools to bcachefs-tools 2017-03-19 17:31:47 -08:00