summaryrefslogtreecommitdiff
path: root/cmd_debug.c
AgeCommit message (Collapse)Author
2022-06-18Break up cmd_debug.c into multiple filesKent Overstreet
In the future, let's have one cmd_foo.c file per subcommand. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-09Update bcachefs sources to 24f7e08cd8 bcachefs: shrinker.to_text() methodsKent Overstreet
2022-06-08cmd_list_journal: Add -v (verbose)Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-30Update bcachefs sources to fad6d13aa5 fixup! bcachefs: Add persistent countersKent Overstreet
2022-05-26Update email addressKent Overstreet
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-02Update bcachefs sources to bdf6d7c135 fixup! bcachefs: Kill journal buf ↵Kent Overstreet
bloom filter
2022-04-12list_journal: Add -n for number of entries to printKent Overstreet
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-08Update bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading ↵Kent Overstreet
journal entries
2022-04-07New tool for killing btree nodes on a filesystemKent Overstreet
To be used by error injection tests. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-30cmd_list_journal: Tweak for new log entriesKent Overstreet
We use entry->level to denote which log entries indicate the start of a transaction - this updates cmd_list_journal to format them correctly. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-30Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()Kent Overstreet
2022-03-29cmd_list_journal: Make output more readableKent Overstreet
This puts a blank line before log entries, which are used to denote the start of a transaction commit. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-20cmd_debug: Add -j for dumping entire journalKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-02cmd_list_journal: Indicate which journal entries are blacklistedKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-26Heap-allocate printbufsAleksei Kharlamov
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2022-02-22Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufsKent Overstreet
2022-02-19list_journal: tell recovery to only read the journalKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19list_journal: Improve formattingKent Overstreet
log journal entries denote the start of a transaction commit - let's indent them differently Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19list_journal: also print where entries were writtenKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-16Use printbuf_indent_pushKent Overstreet
This properly indents multi-line printbuf output Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01Improve the list_journal subcommandKent Overstreet
This updates list_journal to use the new bch2_journal_entry_to_text() pretty-printer. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-25Update bcachefs sources to aa540d47ab bcachefs: Option improvementsKent Overstreet
2021-11-15Fix uninitialized varsKent Overstreet
This fixes crashes when listing btree nodes. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-10-20Update bcachefs sources to d9d1235f3c bcachefs: Handle transaction restarts ↵Kent Overstreet
in bch2_blacklist_entries_gc()
2021-09-26Update bcachefs sources to 386f00b639 bcachefs: Snapshot creation, deletionKent Overstreet
2021-09-09Update bcachefs sources to 3f3f969859 bcachefs: Fix some compiler warningsKent Overstreet
2021-05-06Fix a missing free in dump_one_device()Kent Overstreet
Hopefully this will fix some OOMs Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-24Change cmd_dump to use FSCK_OPT_NOKent Overstreet
We just want cmd_dump to walk metadata, not fix errors - the mark and sweep code is being fixed to make sure it continues on error.
2021-04-24cmd_list improvementsKent Overstreet
- update helptext - add -l (level) parameter Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-29Update bcachefs sources to 18686af684 bcachefs: Inode backpointersv0.13Kent Overstreet
2021-03-16New data job commandKent Overstreet
This adds a new subcommand, bcachefs data job, that gives more direct access to the data job/ioctl functionality, and hooks up the new rewrite old nodes data job.
2021-02-20Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enumsKent Overstreet
2021-02-02Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usageKent Overstreet
2020-11-13Improve some log messagesKent Overstreet
2020-08-24Assorted debug and fsck improvementsKent Overstreet
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-06-15Add an option to list_journal to list entire contents of journalKent Overstreet
2020-05-25Improved functionality for cmd_listKent Overstreet
2020-05-08Improve list_journal commandKent Overstreet
2020-03-25Add a command for dumping contents of journalKent Overstreet
2020-03-02Change cmd_dump to not read in leaf nodesKent Overstreet
2020-01-04Fix dump command for btree ptr key type changeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2019-08-29Have cmd_dump fix errorsKent Overstreet
Some errors can't be ignored, and fsck and thus dump will only complete if we're fixing errors.
2019-05-24Update bcachefs sources to f38382c574 bcachefs: Improve key marking interfaceKent Overstreet
2019-04-17Update bcachefs sources to 6f603b8d79 bcachefs: some improvements to startup ↵Kent Overstreet
messages and options
2019-03-28Update bcachefs sources to d868a87c67 bcachefs: fix initial gcKent Overstreet
2018-12-19Update bcachefs sources to 2724e115d2 bcachefs: Lots of option handling ↵Kent Overstreet
improvements
2018-11-30Update bcachefs sources to 62de7539dc bcachefs: Make bkey types globally uniqueKent Overstreet
2018-11-09Update bcachefs sources to d7dbddc450 bcachefs: revamp to_text methodsKent Overstreet
2018-10-12Update bcachefs sources to d7f6da1d60 bcachefs: fix missing includeKent Overstreet
2018-08-15Update bcachefs sources to 15f6e66e86 bcachefs: pass around bset_tree lessKent Overstreet