Kent Overstreet
bcee0320dc
cmd_dump: Also set read_only
...
In nochanges mode, without read_only, we can go into a fake rw mode
where we allow writes but hold them in memory.
That's not what we want for the dump tool - this fixes a bug where btree
nodes don't always get dumped correctly.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-08-11 18:32:23 -04:00
Kent Overstreet
15b24c7327
Update bcachefs sources to 717b356d1d bcachefs: Convert journal validation to bkey_invalid_flags
...
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-08-06 13:08:36 -04:00
Kent Overstreet
8885dbe8df
cmd_dump: Making dumping the entire journal the default
...
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-08-03 17:20:13 -04:00
Kent Overstreet
c8bec83e30
Update bcachefs sources to e14d7c7195 bcachefs: Compression levels
...
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-15 17:36:15 -04:00
Kent Overstreet
c99a444c5c
Update bcachefs sources to 25de2b00dc bcachefs: Change check for invalid key types
...
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-07 04:25:07 -04:00
Kent Overstreet
1eae1d718c
Use bch2_err_str() instead of strerror()
...
This correctly prints out our private error codes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19 16:05:54 -05: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