summaryrefslogtreecommitdiff
path: root/tools-util.c
AgeCommit message (Collapse)Author
2023-02-12cmd_list_journal: Add filter optionsKent Overstreet
Instead of having to use grep, this adds the ability to print out only transactions that update a particular key, or to filter out entirely keys except those updating certain btrees. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-05-26New subcommand: set-optionKent Overstreet
This is for setting superblock options on existing filesystems, either online or offline. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26Delete some dead codeKent Overstreet
printf_pad() has been superseded by printbuf tabstops. 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-03-30Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()Kent Overstreet
2022-02-22Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufsKent Overstreet
2022-01-01Unit handling cleanupsKent Overstreet
The option code has been switching to keeping things in display units - bytes - and this transitions more libbcachefs.c code to bytes as well, to match, and also fixes device add. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-25Update bcachefs sources to aa540d47ab bcachefs: Option improvementsKent Overstreet
2021-12-10Fix device add for kernel sysfs changesKent Overstreet
Also slightly improve some error messages Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-24add a blk_wipe function calljpsollie
Remove any possible filesystems left on the block device when formatting this makes sure the automounter does not accidentally mount it as another filesystem. one of the functionalities possibly wiped by accodent? Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-04Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAXKent Overstreet
2021-06-13Improve compiler compatibility + run blkid remove for all filesystemsjpsollie
add a blk_wipe function to remove any possible filesystems left on the block device this makes sure the automounter does not accidentally mount it as another filesystem. Signed-off by: Janpieter Sollie <janpieter.sollie@edpnet.be>
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.
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-01-03fs_usage cmd fixesKent Overstreet
- Sort devices by device name if they don't have a label - We were printing the wrong devices in the device list in the per-data entries
2019-12-29Make die exit using _exitJustin Husted
Exiting the standard way on error caused teardown in bad state problems. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-03-24check if fs is mounted before running fsckKent Overstreet
2018-12-19Use opts.h for format optionsKent Overstreet
2018-10-21improve dev_to_mount()Kent Overstreet
should fix a bug where resize does an offline resize when the fs was mounted because it thought it wasn't mounted
2018-06-01Update bcachefs sources to 9abf628c70 bcachefs: Fix a spurious error in fsckKent Overstreet
2018-05-17fixes for 32 bit builds/non x86 archsKent Overstreet
2018-02-09tools-util.c: define generic crc32c on non-x86_64 archLeah Neukirchen
2018-02-08New data rereplicate commandKent Overstreet
2018-02-07cmd_migrate fixesKent Overstreet
when linking existing data, we weren't creating alloc btree keys - also, we were calculating the wrong bucket...
2017-12-29show-super can now print more stuffKent Overstreet
2017-12-28ResizingKent Overstreet
2017-12-23Add bcachefs fs usageKent Overstreet
2017-12-10build: require explicit include paths for libbcachefs/Austin Seipp
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-10-08Update for new superblock options; makefile improvementsKent Overstreet
2017-10-08Faster crc32cKent Overstreet
2017-05-05fix sync writes - don't use O_EXCLKent Overstreet
2017-04-14cmd_list improvements; use %mKent Overstreet
2017-03-19Rename from bcache-tools to bcachefs-toolsKent Overstreet
2017-03-09cmd_device_add improvementsKent Overstreet
2017-03-09cmd_migrateKent Overstreet
2017-02-06Add a command to dump filesystem metadataKent Overstreet
2017-02-06update bcache code, fsck improvementsKent Overstreet
2017-01-20bcache in userspace; userspace fsckKent Overstreet