summaryrefslogtreecommitdiff
path: root/libbcachefs.c
AgeCommit message (Collapse)Author
2023-11-06Avoiding picking different bucket sizes for different devicesKent Overstreet
Erasure coding can't create stripes across devices with different bucket sizes - therefore, format shouldn't pick different bucket sizes for different devices. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-27Update bcachefs sources to 7250b2ee5574 bcachefs: Fix deleted inodes btree ↵Kent Overstreet
in snapshot deletion
2023-10-19Update bcachefs sources to 24bdb6fed91c bcachefs: bch2_btree_id_str()Kent 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-08deleted unused path to device in get_size, get_blocksizeHunter Shaffer
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>
2023-09-19libbcachefs: convert sb features mask to little endianBrian Foster
bch_sb.features is an array of __le64. Convert the native endian format of the features mask appropriately. This causes a bcachefs format to produce an unmountable fs when run from a big endian system. Signed-off-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-15Update bcachefs sources to e14d7c7195 bcachefs: Compression levelsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-02Update bcachefs sources to be2d60d948 bcachefs: New magic numberKent Overstreet
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-21Update bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor ↵Kent Overstreet
bch2_btree_node_mem_alloc()
2022-02-22Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufsKent Overstreet
2022-01-13Fix heap corruption in bcachefs formatWessel Dankers
In bch2_format(): recompute mi after each sb modification: its location in memory may have changed due to reallocation. This fixes an issue where labels were not assigned (because they were written to an undefined part of the heap instead of the superblock). Signed-off-by: Wessel Dankers <wsl@fruit.je>
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-28Update bcachefs sources to 078a1a596a bcachefs: Optimize bucket reuseKent Overstreet
2021-12-25Update bcachefs sources to f9d2e809a8 bcachefs: Turn encoded_extent_max into ↵Kent Overstreet
a regular option
2021-12-25Update bcachefs sources to aa540d47ab bcachefs: Option improvementsKent Overstreet
2021-12-19fix init_layout()Kent Overstreet
It was incorrectly failing when we did have enough space for the superblocks - >= should have been >. Also, give it a better error message. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-13Rename group to label in show-super outputKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
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-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-05-27Write a backup superblock at the end of the diskKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-19minor fixes for clang supportBrett Holman
2021-04-16Fix some small memory leaksKent Overstreet
Found with -fsanitize=leak Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-04Add compatible feature bits to bch2_sb_print()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-02bcaachefs device set-state can now work by idKent Overstreet
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-22Set features in formatKent Overstreet
This is a fixup for d3dc47271b Add format options for --no-initialize and specifying the metadata version 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.
2021-03-21Add the version_min field to cmd_show_superKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-02-20Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enumsKent Overstreet
2021-02-12Add metadata_target functionalityjpsollie
While metadata_target was an option in bcachefs and the fs driver knows about it, it was never parsed by the bcachefs format command. This commit fixes the issue
2021-02-02Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usageKent Overstreet
2021-01-26Add device index to show-superKent 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-08-24Update bcachefs sources to 10ab39f2fa bcachefs: Improvements to the journal ↵Kent Overstreet
read error paths
2020-07-08print out sequence number in show-superKent Overstreet
2020-04-24Flush stdout when displaying progress barKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2019-12-28show-super now lists superblock featuresKent Overstreet
2019-12-28Update bcachefs sources to 86a99a7b7f bcachefs: Convert some enums to x-macrosKent Overstreet
2019-12-27Fix bchu_fs_get_devices()Kent Overstreet
2019-12-18Redo cmd_fs_usage for new ioctlsKent Overstreet
2019-10-04Update bcachefs sources to cddca21efc bcachefs: Don't use sha256 for siphash ↵Kent Overstreet
str hash key
2019-04-04Update bcachefs sources to d83b992f65 bcachefs: Rewrite ↵Kent Overstreet
journal_seq_blacklist machinery
2018-12-19Fix a divide by zeroKent Overstreet