summaryrefslogtreecommitdiff
path: root/cmd_format.c
AgeCommit message (Collapse)Author
2023-12-18Update bcachefs sources to 1a739db0b256 bcachefs; guard against overflow in ↵Kent Overstreet
btree node split Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-06cmd_format: Check for device options after device argumentsKent Overstreet
It's a common user error to specify device specific options at the end of a format command, and then not have them apply to any devices - add a check for this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-02Update, slim down rust dependenciesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-18Update bcachefs sources to a180af9dd349 bcachefs: Refactor memcpy into ↵Kent Overstreet
direct assignment Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-08Change open_for_format to the block io apiHunter Shaffer
Upcoming patch will add device benchmarking at format time, which needs the bio API. Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
2023-10-08Update bcachefs sources to 7bf1ac0d46 bcachefs: Correctly initialize new ↵Kent Overstreet
buckets on device resize Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
2022-12-21Get current metadata version from sysfsKent Overstreet
This changes the default version for the format command to be the currently supported version, via /sys/modules/bcachefs/parameters/version. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19Use bch2_err_str() instead of strerror()Kent Overstreet
This correctly prints out our private error codes. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-06-09Update bcachefs sources to 24f7e08cd8 bcachefs: shrinker.to_text() methodsKent 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-03-30Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()Kent Overstreet
2022-03-22cmd_format: verbose no longer on by defaultKent Overstreet
Instead, we now have a -v option Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-10Make filesystem initialization verboseKent Overstreet
Initializing the freespace btree may take some time, so let's make that visible. 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-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-10Rename --group to --labelKent Overstreet
Disk labels used to be called groups - not all uses had been converted. This renames --group to --label, and --label to --fs_label Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-04Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAXKent Overstreet
2021-06-14Fix format args to die()Kent Overstreet
Also, add the format attribute so we get warnings about this. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-16Fix some small memory leaksKent Overstreet
Found with -fsanitize=leak Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-24Increase default superblock size to 1MBKent Overstreet
Also - add an option to bcachefs format for specifying it, --superblock_size Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-21Add format options for --no-initialize and specifying the metadata versionKent Overstreet
These are only to be used for tests.
2019-11-03Fix memory leak in cmd_format.cJustin Husted
Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-04-06initialize filesystem when formattingKent Overstreet
makes it possible to mount ro for the first mount, helps with some xfstests tests
2019-01-13Fix format -g to create a disk groupTim Schlueter
2019-01-13Fix target optionsKent Overstreet
2019-01-03readd -q (--quiet)Kent Overstreet
2018-12-19Use opts.h for format optionsKent Overstreet
2018-11-04Fixed format args and removed unnecessary strdup()sTim Schlueter
2018-03-13Add --durability to formatKent Overstreet
2018-02-28minor disk group fixes;, add background_compression optionKent Overstreet
2018-02-19disk groupsKent Overstreet
2018-02-09format: the error_action readonly is spelled remount_roLeah Neukirchen
2018-02-09format: document -U (used by many mkfs.*)Leah Neukirchen
2018-02-08New data rereplicate commandKent Overstreet
2018-01-11Update bcachefs sources to 02ae70070a bcachefs: Allocate new btree roots lazilyKent Overstreet
2017-12-29show-super can now print more stuffKent 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-12-02add --replicasKent Overstreet
2017-11-08Add commands for changing and removing passphraseKent Overstreet
2017-10-08Update for new superblock options; makefile improvementsKent Overstreet
2017-05-05fix sync writes - don't use O_EXCLKent Overstreet
2017-04-09Update bcachefs sources to da037866e6Kent Overstreet
2017-04-02More cmd_migrate improvementsKent Overstreet
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-03-19Rename from bcache-tools to bcachefs-toolsKent Overstreet
2017-03-14Add --quiet to cmd_formatKent Overstreet
2017-03-12Refactoring for device specific commandsKent Overstreet
2017-03-09cmd_device_add improvementsKent Overstreet
2017-03-09cmd_device_failKent Overstreet
Add a comamnd for setting a device as failed, update bcache sources