Wessel Dankers
7b15324de1
Fix heap corruption in bcachefs format
...
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-13 00:08:52 +01:00
Daniel B. Hill
2c0d0c4b7b
Makefile: We need to exclude hidden folders
...
Sometimes user-specific apps create .c files in hidden folders breaking make.
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-01-12 17:31:04 +13:00
Kent Overstreet
74a7c3ff57
Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation
2022-01-10 21:41:51 -05:00
Kent Overstreet
b3984515eb
Fix makefile for building docs
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-10 21:38:14 -05:00
Kent Overstreet
47c554c31a
Update bcachefs sources to 5242db9aec bcachefs: Fix bch2_check_fix_ptrs()
2022-01-05 19:39:57 -05:00
Kent Overstreet
931ed5a709
Update bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variable
2022-01-04 19:56:40 -05:00
Kent Overstreet
69529e3136
Update bcachefs sources to 90d824456e bcachefs: Improve path for when btree_gc needs another pass
2022-01-02 18:40:44 -05:00
Kent Overstreet
c50379128b
Update bcachefs sources to aa439f3b94 bcachefs: btree_gc no longer uses main in-memory bucket array
2022-01-01 21:22:41 -05:00
Kent Overstreet
8a632ea60d
Update bcachefs sources to 42284b8b2b bcachefs: Fix race between btree updates & journal replay
2022-01-01 21:14:28 -05:00
Kent Overstreet
a5bd96ff58
Improve the list_journal subcommand
...
This updates list_journal to use the new bch2_journal_entry_to_text()
pretty-printer.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01 21:14:28 -05:00
Kent Overstreet
d08291637f
Update bcachefs sources to 9d28e4a535 bcachefs: bch2_journal_entry_to_text()
2022-01-01 21:14:28 -05:00
Kent Overstreet
12fe5797ad
Update bcachefs sources to 916d92b6b4 bcachefs: Add error messages for memory allocation failures
2022-01-01 21:14:28 -05:00
Kent Overstreet
617dc6dd68
Retry memory allocation failures
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01 21:14:28 -05:00
Daniel B. Hill
a6390a8012
fix labels not applying
...
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-01-01 21:14:28 -05:00
Kent Overstreet
9cc3b7debb
Unit handling cleanups
...
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>
2022-01-01 21:14:22 -05:00
Kent Overstreet
38f8daa2b1
Update bcachefs sources to 078a1a596a bcachefs: Optimize bucket reuse
2021-12-28 15:03:54 -05:00
Igor Velkov
be490d2732
Update manpage to follow --label and --compression updates
2021-12-28 21:19:19 +02:00
Kent Overstreet
07b18011cc
Update bcachefs sources to f9d2e809a8 bcachefs: Turn encoded_extent_max into a regular option
2021-12-25 18:48:46 -05:00
Kent Overstreet
ad03173172
Update bcachefs sources to aa540d47ab bcachefs: Option improvements
2021-12-25 18:48:46 -05:00
Kent Overstreet
00f49f23b4
Update bcachefs sources to d3422f9b18 bcachefs: Journal initialization fixes
2021-12-21 21:53:07 -05:00
Kent Overstreet
11e4e302de
Fix migrate tool for snapshots
...
This updates cmd_migrate.c for the snapshot field & subvolumes.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-20 15:49:32 -05:00
Kent Overstreet
1388212eb8
Delete old bcachefs.5 from makefile
2021-12-20 15:24:22 -05:00
Kent Overstreet
6a4f458a48
fix init_layout()
...
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-19 21:55:09 -05:00
Kent Overstreet
d06f5690fa
Update bcachefs sources to ff3a76e1af bcachefs: Change need_whiteout_for_snapshot() to clone iterator
2021-12-19 19:37:29 -05:00
Kent Overstreet
b19d9f92e1
Update bcachefs sources to 635ca475f4 bcachefs: Fix debug build in userspace
2021-12-14 16:15:21 -05:00
Kent Overstreet
57f6402131
Rename group to label in show-super output
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-13 17:14:44 -05:00
Kent Overstreet
39a6bf885d
Update bcachefs sources to 6bb1ba5c94 bcachefs: Improve alloc_mem_to_key()
2021-12-11 17:26:14 -05:00
Kent Overstreet
2fc5a50bd6
Fix device add for kernel sysfs changes
...
Also slightly improve some error messages
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-10 14:07:31 -05:00
Kent Overstreet
55e3496d06
Rename --group to --label
...
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-12-10 13:32:35 -05:00
Kent Overstreet
99b12cd3a4
Update bcachefs sources to 50d6a25d9c bcachefs: Erasure coding fixes
2021-11-30 15:27:52 -05:00
Kent Overstreet
1d2315ca0a
Update bcachefs sources to 4c24a1cf56 bcachefs: Fix BCH_FS_ERROR flag handling
2021-11-21 16:26:39 -05:00
Kent Overstreet
50bc63a6ce
Update bcachefs sources to 2152e671d8 bcachefs: Add a bit of missing repair code
2021-11-21 14:55:54 -05:00
Kent Overstreet
837b76ce95
Merge https://github.com/YellowOnion/bcachefs-tools
2021-11-16 18:56:44 -05:00
Daniel B. Hill
179ac9ba56
Fix sub commands not triggering without arguments
...
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2021-11-17 12:46:05 +13:00
Kent Overstreet
9a058f1428
Update bcachefs sources to 70b5fb5daf bcachefs: Fix error reporting from bch2_journal_flush_seq
2021-11-16 09:12:15 -05:00
Kent Overstreet
8d86f9c15d
Fix uninitialized vars
...
This fixes crashes when listing btree nodes.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-11-15 15:19:44 -05:00
Kent Overstreet
abd9d5ba97
Update bcachefs sources to 6afa1fcb13 bcachefs: Clean up error reporting in the startup path
2021-11-06 12:46:36 -04:00
Kent Overstreet
5b84952401
Update bcachefs sources to 6d9ff21de7 bcachefs: Kill journal buf bloom filter
2021-11-05 15:08:36 -04:00
Daniel B. Hill
e87deba8e4
fix version and show-super not working
2021-11-04 17:38:58 +13:00
Kent Overstreet
42ba8b5a75
Update bcachefs sources to 5fd0c70102 bcachefs: Fix __remove_dirent()
2021-11-03 21:28:23 -04:00
Brett Holman
9a649545a3
Add more specific subcommand usage messages
...
The device, data, fs, and subvolume subcommands currently print out a
generic usage message. Make these more specific.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-11-01 08:12:35 -06:00
Kent Overstreet
0da2d968eb
Update bcachefs sources to 043cfba30c fixup! bcachefs: Improve transaction restart handling in fsck code
2021-11-01 06:39:12 -04:00
Kent Overstreet
a315a3f664
Update bcachefs sources to 82c5cc8f00 bcachefs: Improve transaction restart handling in fsck code
2021-10-28 16:50:03 -04:00
Kent Overstreet
6f8750c30e
Update bcachefs sources to b1899a0bd9 bcachefs: Move bch2_evict_subvolume_inodes() to fs.c
2021-10-28 16:27:01 -04:00
Kent Overstreet
72a9f1015d
Update bcachefs sources to 4c58f10d48 bcachefs: More general fix for transaction paths overflow
2021-10-25 18:32:51 -04:00
Kent Overstreet
1ce6454cfe
Update bcachefs sources to cdf89ca564 bcachefs: Fix fsck path for refink pointers
2021-10-24 21:24:05 -04:00
Chris Webb
f5c0b67603
Cosmetic fixes for device resize-journal
...
Correct the operation name from 'journal-resize' to 'resize-journal' in the
bcachefs usage summary, matching the command that is actually implemented.
Fix the size argument so it isn't optional. Defaulting to the entire device
makes sense for 'device resize', to automatically expand the fs to fill the
block device. However, it is never meaningful (or possible) to expand the
journal to the full disk.
Signed-off-by: Chris Webb <chris@arachsys.com>
2021-10-24 11:39:36 -04:00
Chris Webb
49923376d1
Use scrypt from libsodium
...
bcachefs-tools has both libscrypt and libsodium as build dependencies,
but libsodium already includes the same scrypt implementation as libscrypt,
originally written by Colin Percival.
Use the libsodium copy, dropping the extra libscrypt dependency.
Explicitly adopt the default scrypt N, r and p values from libscrypt to
avoid unintended changes in the default work parameters for bcachefs.
Signed-off-by: Chris Webb <chris@arachsys.com>
2021-10-23 12:16:08 -04:00
Kent Overstreet
f9f57789de
Update bcachefs sources to 6d1f979bc5 bcachefs: Subvol dirents are now only visible in parent subvol
2021-10-21 14:20:03 -04:00
Kent Overstreet
a2b0239593
Update bcachefs sources to 718df3f7c2 bcachefs: Fix restart handling in for_each_btree_key()
2021-10-21 13:09:39 -04:00