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
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
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
07ec713e05
Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAX
2021-07-04 23:33:54 -04:00
Kent Overstreet
fe1bb39aa5
Fix format args to die()
...
Also, add the format attribute so we get warnings about this.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-06-14 20:28:26 -04:00
Kent Overstreet
ea750088b0
Write a backup superblock at the end of the disk
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-27 21:12:17 -04:00
Brett Holman
9c0dc7b8d4
minor fixes for clang support
2021-05-19 23:26:13 -04:00
Kent Overstreet
8ba5e814fd
Fix some small memory leaks
...
Found with -fsanitize=leak
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-16 17:28:40 -04:00
Kent Overstreet
08e14f84d9
Add compatible feature bits to bch2_sb_print()
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-04 22:18:01 -04:00
Kent Overstreet
f46437f06e
bcaachefs device set-state can now work by id
2021-04-02 23:35:05 -04:00
Kent Overstreet
bb6eccc2ec
Increase default superblock size to 1MB
...
Also - add an option to bcachefs format for specifying it,
--superblock_size
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-24 22:40:25 -04:00
Kent Overstreet
1f0d52aa06
Set features in format
...
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-22 17:24:13 -04:00
Kent Overstreet
d3dc47271b
Add format options for --no-initialize and specifying the metadata version
...
These are only to be used for tests.
2021-03-21 16:21:51 -04:00
Kent Overstreet
8a69e01aeb
Add the version_min field to cmd_show_super
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-21 15:59:21 -04:00
Kent Overstreet
9e5d774875
Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enums
2021-02-20 22:34:09 -05:00
jpsollie
3c7db5cec4
Add metadata_target functionality
...
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-12 07:14:36 +01:00
Kent Overstreet
4064aa126e
Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usage
2021-02-02 16:07:59 -05:00
Kent Overstreet
0e05fa6dfe
Add device index to show-super
2021-01-26 20:48:58 -05:00
Kent Overstreet
4915b450e2
Improve some log messages
2020-11-13 16:45:21 -05:00
Kent Overstreet
a9a46467e6
Assorted debug and fsck improvements
...
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-24 16:26:22 -04:00
Kent Overstreet
cd9892e543
Update bcachefs sources to 10ab39f2fa bcachefs: Improvements to the journal read error paths
2020-08-24 16:25:05 -04:00
Kent Overstreet
b867ddadb3
print out sequence number in show-super
2020-07-08 15:58:35 -04:00
Kent Overstreet
b87ed383d3
Flush stdout when displaying progress bar
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-04-24 19:08:39 -04:00
Kent Overstreet
50de96f5b2
show-super now lists superblock features
2019-12-28 20:31:41 -05:00
Kent Overstreet
f0d907189f
Update bcachefs sources to 86a99a7b7f bcachefs: Convert some enums to x-macros
2019-12-28 20:31:39 -05:00
Kent Overstreet
c58f66878f
Fix bchu_fs_get_devices()
2019-12-27 14:04:16 -05:00
Kent Overstreet
7d2baabdb1
Redo cmd_fs_usage for new ioctls
2019-12-18 16:11:11 -05:00
Kent Overstreet
b540b170c9
Update bcachefs sources to cddca21efc bcachefs: Don't use sha256 for siphash str hash key
2019-10-04 16:22:37 -04:00
Kent Overstreet
d13bbb2955
Update bcachefs sources to d83b992f65 bcachefs: Rewrite journal_seq_blacklist machinery
2019-04-04 22:25:40 -04:00
Kent Overstreet
e45b8acdc1
Fix a divide by zero
2018-12-19 18:27:57 -05:00
Kent Overstreet
0e9822571c
Use opts.h for format options
2018-12-19 18:27:57 -05:00
Kent Overstreet
0c7db4eca3
Update bcachefs sources to 62de7539dc bcachefs: Make bkey types globally unique
2018-11-30 12:51:13 -05:00
Kent Overstreet
cc6479303f
Update bcachefs sources to a9f14c773f bcachefs: More btree gc refactorings
2018-11-12 19:22:36 -05:00
Kent Overstreet
bdba182d10
Update bcachefs sources to d7dbddc450 bcachefs: revamp to_text methods
2018-11-09 04:06:53 -05:00
Tim Schlueter
f431cc9c95
Improved the show-super group and target printing
...
Disks without a group no longer prints uninitialized data.
Foreground, background, and promote targets now print what they are, not just
a single number. E.g.
Foreground write target: none
Background write target: Group 0 (slow)
Promote target: Device 2 (b5d2aa58-9cc5-4ff0-a7ff-407216d27d7d)
2018-11-04 23:31:35 -08:00
Tim Schlueter
25dac4021f
Print the filesystem creation time in show-super
2018-11-04 21:02:51 -08:00
Tim Schlueter
03c79a9a25
Added ktime_get_real_seconds() wrapper
...
Also, changed the last_mount print so it no longer prints out two newlines.
2018-11-04 21:00:33 -08:00
Kent Overstreet
db8cffeaed
Update bcachefs sources to 8bf4b038d4 bcachefs: Assorted fixes for running on very small devices
2018-11-04 22:21:00 -05:00
Kent Overstreet
2ab2ab0f78
Update bcachefs sources to b12d1535f3 bcachefs: fix bounds checks in bch2_bio_map()
2018-11-03 20:19:25 -04:00
Kent Overstreet
e288c9f1de
fix a (spurious) gcc warning
2018-11-03 16:58:41 -04:00
Kent Overstreet
cecf7e05e1
fix rereplicate command
2018-07-21 04:38:02 -04:00
Kent Overstreet
17e2f2775b
Update bcachefs sources to 2cb70a82bc bcachefs: delete some debug code
2018-06-27 14:50:43 -04:00
Kent Overstreet
800408be11
bcachefs fs usage improvements
2018-05-04 14:48:00 -04:00
Kent Overstreet
c598d91dcb
Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code
2018-04-10 19:23:58 -04:00
Kent Overstreet
6aabc97dc9
Add --durability to format
2018-03-13 03:23:27 -04:00
Kent Overstreet
8a57b1f1d5
minor disk group fixes;, add background_compression option
2018-02-28 17:57:55 -05:00
Kent Overstreet
cdf17bffad
disk groups
2018-02-19 19:01:07 -05:00
Kent Overstreet
7875b82630
New data rereplicate command
2018-02-08 15:33:43 -05:00
Kent Overstreet
6976570d67
Update bcachefs sources to d5e561b3cc bcachefs: BCH_DATA ioctl
2018-02-08 15:33:42 -05:00