Commit Graph

28 Commits

Author SHA1 Message Date
Kent Overstreet
41dc1733f1 Fix bcachefs device remove --by-id
That's not how you parse an integer in C...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-01-05 15:02:10 -05:00
Kent Overstreet
41bec63b26 Add a subcommand for resizing the journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-11-17 10:52:39 -05:00
Kent Overstreet
024a01bf07 Add --offline to device set-state 2020-05-08 21:25:25 -04:00
Kent Overstreet
6e9f460240 Set device read-only if necessary before evacuate 2020-04-25 16:42:09 -04:00
Stijn Tintel
e57c053797 cmd_device_remove: allow removal by device id
If a disk is absent, there is no way to remove it from the filesystem.
Add the possibility to remove devices by id, to allow removal of missing
disks.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2019-08-16 21:07:32 +03:00
Kent Overstreet
9b08492bc7 check if fs is mounted before running fsck 2019-03-24 21:07:45 -04:00
Kent Overstreet
0e9822571c Use opts.h for format options 2018-12-19 18:27:57 -05:00
Stijn Tintel
0268bec14b cmd_device_add: replace tier with group in usage
Tiering has been replaced by disk groups, but the usage message for
cmd_device_add was never updated to reflect this change. Replace the
tier option with group to fix the usage message.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2018-10-08 18:27:18 -04:00
Stijn Tintel
8c310c8593 cmd_device: add missing short options to usage
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2018-10-08 18:27:14 -04:00
Kent Overstreet
cdf17bffad disk groups 2018-02-19 19:01:07 -05:00
Leah Neukirchen
0feb77e79e device add: support --help 2018-02-09 19:17:26 +01:00
Kent Overstreet
7875b82630 New data rereplicate command 2018-02-08 15:33:43 -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
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
bf8c59996b Update for new superblock options; makefile improvements 2017-10-08 10:25:36 -08:00
Kent Overstreet
851e945db8 Update for sysfs changes 2017-06-13 15:53:11 -08:00
Kent Overstreet
5c7454176e cmd_list improvements; use %m 2017-04-14 20:40:50 -08:00
Kent Overstreet
2615d73a74 Allow disk commands to specify member by index 2017-04-05 18:20:50 -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
Kent Overstreet
d252e12acc Refactoring for device specific commands 2017-03-12 06:53:43 -08:00
Kent Overstreet
07ddcf0bef cmd_device_add improvements 2017-03-09 09:26:56 -09:00
Kent Overstreet
ac1b32acb4 cmd_device_fail
Add a comamnd for setting a device as failed, update bcache sources
2017-03-09 09:14:11 -09:00
Kent Overstreet
a17f7bcec7 cmd_migrate 2017-03-09 09:14:11 -09:00
Kent Overstreet
a5b5eba7f7 New on disk format - encryption 2017-02-28 03:05:38 -09:00
Kent Overstreet
5933f9478c update bcache code, fsck improvements 2017-02-06 20:45:37 -09:00