Age | Commit message (Collapse) | Author |
|
This moves the Rust sources out of rust_src/ and into the top level.
Running the bcachefs executable out of the development tree is now:
$ ./target/release/bcachefs command
or
$ cargo run --profile release -- command
instead of "./bcachefs command".
Building and installing is still:
$ make && make install
Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
|
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
btree node split
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
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>
|
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
direct assignment
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Upcoming patch will add device benchmarking at format time, which needs
the bio API.
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
|
|
buckets on device resize
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
|
|
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>
|
|
This correctly prints out our private error codes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
|
|
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>
|
|
bloom filter
|
|
|
|
Instead, we now have a -v option
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
Initializing the freespace btree may take some time, so let's make that
visible.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
|
|
|
|
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>
|
|
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>
|
|
|
|
Also, add the format attribute so we get warnings about this.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
Found with -fsanitize=leak
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
Also - add an option to bcachefs format for specifying it,
--superblock_size
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
These are only to be used for tests.
|
|
Signed-off-by: Justin Husted <sigstop@gmail.com>
|
|
makes it possible to mount ro for the first mount, helps with some
xfstests tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|