Commit Graph

55 Commits

Author SHA1 Message Date
Kent Overstreet
08e14f84d9 Add compatible feature bits to bch2_sb_print()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-04 22:18:01 -04:00
Kent Overstreet
f46437f06e bcaachefs device set-state can now work by id 2021-04-02 23:35:05 -04:00
Kent Overstreet
bb6eccc2ec Increase default superblock size to 1MB
Also - add an option to bcachefs format for specifying it,
--superblock_size

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-24 22:40:25 -04:00
Kent Overstreet
1f0d52aa06 Set features in format
This is a fixup for d3dc47271b Add format options for --no-initialize
and specifying the metadata version

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-22 17:24:13 -04:00
Kent Overstreet
d3dc47271b Add format options for --no-initialize and specifying the metadata version
These are only to be used for tests.
2021-03-21 16:21:51 -04:00
Kent Overstreet
8a69e01aeb Add the version_min field to cmd_show_super
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-21 15:59:21 -04:00
Kent Overstreet
9e5d774875 Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enums 2021-02-20 22:34:09 -05:00
jpsollie
3c7db5cec4 Add metadata_target functionality
While metadata_target was an option in bcachefs and the fs driver knows about it,
it was never parsed by the bcachefs format command.
This commit fixes the issue
2021-02-12 07:14:36 +01:00
Kent Overstreet
4064aa126e Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usage 2021-02-02 16:07:59 -05:00
Kent Overstreet
0e05fa6dfe Add device index to show-super 2021-01-26 20:48:58 -05:00
Kent Overstreet
4915b450e2 Improve some log messages 2020-11-13 16:45:21 -05:00
Kent Overstreet
a9a46467e6 Assorted debug and fsck improvements
This adds a new list mode to "bcachefs list", for printing out nodes as
they exist on disk (before being merge sorted). Also some improvements
to fsck return values.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-08-24 16:26:22 -04:00
Kent Overstreet
cd9892e543 Update bcachefs sources to 10ab39f2fa bcachefs: Improvements to the journal read error paths 2020-08-24 16:25:05 -04:00
Kent Overstreet
b867ddadb3 print out sequence number in show-super 2020-07-08 15:58:35 -04:00
Kent Overstreet
b87ed383d3 Flush stdout when displaying progress bar
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-04-24 19:08:39 -04:00
Kent Overstreet
50de96f5b2 show-super now lists superblock features 2019-12-28 20:31:41 -05:00
Kent Overstreet
f0d907189f Update bcachefs sources to 86a99a7b7f bcachefs: Convert some enums to x-macros 2019-12-28 20:31:39 -05:00
Kent Overstreet
c58f66878f Fix bchu_fs_get_devices() 2019-12-27 14:04:16 -05:00
Kent Overstreet
7d2baabdb1 Redo cmd_fs_usage for new ioctls 2019-12-18 16:11:11 -05:00
Kent Overstreet
b540b170c9 Update bcachefs sources to cddca21efc bcachefs: Don't use sha256 for siphash str hash key 2019-10-04 16:22:37 -04:00
Kent Overstreet
d13bbb2955 Update bcachefs sources to d83b992f65 bcachefs: Rewrite journal_seq_blacklist machinery 2019-04-04 22:25:40 -04:00
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