Commit Graph

934 Commits

Author SHA1 Message Date
Kent Overstreet
a6128b5335 cmd_list: Fix -m nodes_ondisk
We were using malloc() for a buffer to be used for an O_DIRECT read -
oops, that doesn't work.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-21 15:46:57 -04:00
Kent Overstreet
b47d99c2bf Update bcachefs sources to 1bda24d7cc fixup! bcachefs: for_each_btree_key2() 2022-07-17 19:28:54 -04:00
Kent Overstreet
79d39bd7ce Update bcachefs sources to d82da7126f fixup! bcachefs: for_each_btree_key2() 2022-07-17 05:20:54 -04:00
Kent Overstreet
2cea78f5cc Update bcachefs sources to 2f11bb05b0 bcachefs: for_each_btree_key2() 2022-07-15 20:51:23 -04:00
Kent Overstreet
0e69c66198 Update bcachefs sources to 17a344f265 bcachefs: Improve fsck for subvols/snapshots 2022-07-15 17:24:21 -04:00
Kent Overstreet
5ec29da373 Update bcachefs sources to a03225a783 bcachefs: Put some repair messages behind opts->verbose 2022-07-12 08:54:47 -04:00
Kent Overstreet
dce1de5426 Update bcachefs sources to a059319fee bcachefs: Put some repair messages behind opts->verbose 2022-07-11 23:07:34 -04:00
Kent Overstreet
a29cb4b9f8 cmd_device_set_state: use buffered IO for writing superblock
The layout may be unaligned on 4k sector devices - but there's no reason
we need to use direct IO here.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-11 23:06:17 -04:00
Kent Overstreet
cc1f2deb96 cmd_list: Fix indenting in -m nodes_ondisk
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-11 15:44:02 -04:00
Kent Overstreet
bad0c8c507 Update bcachefs sources to 95ff72a6c1 fixup! mm: Centralize & improve oom reporting in show_mem.c 2022-06-27 15:58:48 -04:00
Kent Overstreet
64ddfc9fc5 hweight32()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-27 15:58:39 -04:00
Kent Overstreet
57840fed19 Fixup from darray change
This fixes cmd_migrate

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-27 15:58:34 -04:00
Kent Overstreet
b4afc1fa26 Fix bdev_logical_block_size()
We were returning sectors instead of bytes.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-22 22:17:14 -04:00
Kent Overstreet
23dc00de78 Fix printk_ratelimited()
printk_ratelimited was behind an #ifdef CONFIG_PRINTK, which we don't
define, so it was a complete noop - oops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-22 22:05:39 -04:00
Kent Overstreet
ff2ebf3f75 cmd_dump: Make sure output filename ends in .qcow2
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:34:02 -04:00
Kent Overstreet
03b8098d37 cmd_dump: Use buffered IO for reading device metadata
We're reading device metadat in mostly sequential order - buffered IO
will be faster than O_DIRECT.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:33:25 -04:00
Kent Overstreet
a232478f35 Break up cmd_debug.c into multiple files
In the future, let's have one cmd_foo.c file per subcommand.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:25:19 -04:00
Kent Overstreet
319abbc653 Update bcachefs sources to 2f4e24d856 bcachefs: Split out dev_buckets_free() 2022-06-15 14:58:36 -04:00
Kent Overstreet
3a0ae34333 Update bcachefs sources to c76f7e91e8 bcachefs: Fix btree node read retries 2022-06-14 01:44:59 -04:00
Kent Overstreet
ffbf806d5c Update bcachefs sources to 3704d0779c bcachefs: Improved human readable integer parsing 2022-06-11 18:14:06 -04:00
Kent Overstreet
6ac37db841 Update bcachefs sources to 24f7e08cd8 bcachefs: shrinker.to_text() methods 2022-06-09 15:07:25 -04:00
Kent Overstreet
bec3a26565 cmd_list_journal: Add -v (verbose)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-08 21:52:14 -04:00
Kent Overstreet
b6fc4864a7 Update bcachefs sources to c68fda3e8f bcachefs: Fix btree node read error path 2022-06-07 02:16:44 -04:00
Kent Overstreet
f682263a73 Update bcachefs sources to 600598598b bcachefs: Also log overwrites in journal 2022-06-05 17:42:24 -04:00
Kent Overstreet
46b2c553aa Update bcachefs sources to fad6d13aa5 fixup! bcachefs: Add persistent counters 2022-05-30 23:24:10 -04:00
Daniel B. Hill
962390c0b2 Simplify Nix(OS) development
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-05-30 22:26:27 -04:00
Kent Overstreet
03ed64edc8 Update bcachefs sources to 969fbff4ef bcachefs: Print message on btree node read retry success 2022-05-26 17:47:22 -04:00
Kent Overstreet
e142c4ca01 New subcommand: set-option
This is for setting superblock options on existing filesystems, either
online or offline.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 16:37:13 -04:00
Kent Overstreet
fa7a74fcc8 Delete some dead code
printf_pad() has been superseded by printbuf tabstops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 16:30:57 -04:00
Kent Overstreet
62839683e8 Update email address
This changes linux-bcache@vger.kernel.org references to the correct
mailing list (linux-bcachefs@vger.kernel.org).

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 15:40:08 -04:00
Kent Overstreet
8cc7d49281 cmd_unlock: Add -k argument to specify keyring
This adds a new argument (-k) to cmd_unlock for specifying the keyring
to add to. The default is user, but user_session and session can also be
specified.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-19 16:01:51 -04:00
Kent Overstreet
0766bee8fd Update bcachefs sources to c4ca278a54 bcachefs: Delete bch_writepage 2022-05-09 12:40:49 -04:00
Kent Overstreet
6f5afc0c12 Update bcachefs sources to bdf6d7c135 fixup! bcachefs: Kill journal buf bloom filter 2022-05-02 18:42:06 -04:00
Igor Velkov
88b27bd794 Fix man for device set-state command
Signed-off-by: Igor Velkov <iav@iav.lv>
2022-04-17 00:50:01 +03:00
Kent Overstreet
c25cc1b531 list_journal: Add -n for number of entries to print
The entire journal can be too big to fit in memory in textual form,
making grep difficult: this adds an option to print a specific number of
journal entries.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-04-12 16:38:10 -04:00
Kent Overstreet
ca4bb4155a Update bcachefs sources to 4c2d3669b1 bcachefs: In fsck, pass BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE when deleting dirents 2022-04-12 13:15:53 -04:00
Kent Overstreet
51d44e575c Update bcachefs sources to 7a06c01fa3 bcachefs: Fix for getting stuck in journal replay 2022-04-12 12:52:50 -04:00
Kent Overstreet
f89eb5a288 Update bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion to error message 2022-04-11 23:03:41 -04:00
Kent Overstreet
04ad4ade4c Update bcachefs sources to fb8a27f6d4 bcachefs: Delete a redundant tracepoint 2022-04-11 22:40:16 -04:00
Kent Overstreet
7923c2ee06 Update bcachefs sources to e67d924a90 bcachefs: Introduce bch2_journal_keys_peek_(upto|slot)() 2022-04-11 20:32:28 -04:00
Kent Overstreet
74b88aa9be Update bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time[READ] set 2022-04-10 22:29:14 -04:00
Kent Overstreet
2668cb95d9 Update bcachefs sources to 202b20c48f bcachefs: Ensure buckets have io_time[READ] set 2022-04-10 20:02:24 -04:00
Kent Overstreet
d256ebaa81 Update bcachefs sources to 1e6618c45d bcachefs: Improve bch2_open_buckets_to_text() 2022-04-10 18:07:55 -04:00
Kent Overstreet
14aaa25ff2 Update bcachefs sources to 1ff261b014 bcachefs: Fix CPU usage in journal read path 2022-04-10 16:29:14 -04:00
Kent Overstreet
5ee3f4d7b2 Update bcachefs sources to ad72553649 bcachefs: Fix a null ptr deref 2022-04-10 14:41:57 -04:00
Kent Overstreet
8b23ea867a Update bcachefs sources to ac53c8857f fixup! bcachefs: Use a genradix for reading journal entries 2022-04-09 14:02:54 -04:00
Kent Overstreet
986533d8d5 Update bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading journal entries 2022-04-08 19:26:30 -04:00
Kent Overstreet
7f77afa955 Update bcachefs sources to d3da360412 bcachefs: Fold bucket_state in to BCH_DATA_TYPES() 2022-04-07 20:56:33 -04:00
Kent Overstreet
58867de5bd New tool for killing btree nodes on a filesystem
To be used by error injection tests.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-04-07 19:25:50 -04:00
Kent Overstreet
e05755a9fc Update bcachefs sources to 98a1bff393 bcachefs: Topology repair fixes 2022-04-07 17:52:51 -04:00