summaryrefslogtreecommitdiff
path: root/c_src/posix_to_bcachefs.c
AgeCommit message (Collapse)Author
10 daysUpdate bcachefs sources to 292344971769 bcachefs: Read retries are after ↵Kent Overstreet
checksum errors now REQ_FUA Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-08-28posix_to_bcachefs.c: Use rhashtable for tracking hardlinksKent Overstreet
bcachefs uses 64 bit inode numbers by default, which overflow genradix keys when we multiply the inode number by the object size for the actual genradix lookup. Switch to a rhashtable, and only index files that actually have hardlinks. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-17Fix clang build errorsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-15posix_to_bcachefs: plumb verbosityKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-15posix_to_bcachefs: fix inode.bi_sectors updatesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: create_or_update_link()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: cleanupKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: sync file data, not just copyKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: create_or_update_file()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-07-12posix_to_bcachefs: delete_non_matching_dirents()Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-26copy_data should be staticKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-21fixup! posix_to_bcachefs: Process dirents in sorted orderKent Overstreet
2025-04-21fd fixesKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13xclose()Kent Overstreet
Add a helper to check for close errrors - especially bad file descriptors, that can be a fun source of heisenbugs. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-04-13posix_to_bcachefs: Process dirents in sorted orderKent Overstreet
This improves reproducability when producing images. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-25Update bcachefs sources to 1392e502d48b bcachefs: Add an "ignore unknown" ↵Kent Overstreet
option to bch2_parse_mount_opts() Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-24Migrate tool fixesKent Overstreet
Migrate now works: there is an inconsequential free space inconsistency after marking the new superblock (in migrate_superblock), which we're hacking around with a fsck. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-02-03Update bcachefs sources to 63bbe0ca4167 bcachefs: ScrubKent Overstreet
2024-10-20Update bcachefs sources to 1dbc147a6eb0 bcachefs: Add version check for ↵Kent Overstreet
bch_btree_ptr_v2.sectors_written validate Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-09-29Update bcachefs sources to 438696e03da7 bcachefs: rename version -> bversion ↵Kent Overstreet
for big endian builds
2024-08-20posix_to_bcachefs: fix missing copy_xattrs() error checkingKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-07-15Update bcachefs sources to 4a7a003763f5 bcachefs: Opt_durability can now be ↵Kent Overstreet
set via bch2_opt_set_sb()
2024-06-16Preserve directory {a,m,c} times by calling copy_times() after the recursionAriel Miculas
Otherwise the directory {a,m,c} times will be modified by the recursive copy of the directory tree. Signed-off-by: Ariel Miculas <ariel.miculas@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-16Fix incomplete file copy due to copy_data misuseAriel Miculas
The copy_data function takes a start and an end parameter as the range of bytes to copy, but it was called with a start and a length parameter. This resulted in incomplete file copies. Fix it by passing the end of the range instead of the length. Signed-off-by: Ariel Miculas <ariel.miculas@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-16Fix performance regression of update_inodeAriel Miculas
This kernel commit: 65bd442397274347e721a89c2c4882a392bae982 removes BTREE_ITER_cached from bch2_btree_insert_trans, which causes the update_inode function to take a long time (~20s). Add this flag back in the update_inode function. Signed-off-by: Ariel Miculas <ariel.miculas@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-16bcachefs: allow initializing a bcachefs filesystem from a source directoryAriel Miculas
Add a new source command line argument which specifies the directory tree that will be copied onto the newly formatted bcachefs filesystem. This commit also fixes an issue in copy_link where uninitialized data is copied into the symlink because of a round_up of the buffer size. Signed-off-by: Ariel Miculas <ariel.miculas@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>