bcachefs-tools/rust-src
Alexander Fougner fbad1bfdf3 rust: fix MSRV build
- downgrade clap_completion to 4.3.x (1.65 compatible)
- dependency updates
- remove unused imports

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
2023-11-23 19:29:43 +01:00
..
bch_bindgen rust: fix MSRV build 2023-11-23 19:29:43 +01:00
src rust: fix MSRV build 2023-11-23 19:29:43 +01:00
.gitignore Rust now integrated into bcachefs binary 2023-02-21 01:03:08 -05:00
Cargo.lock rust: fix MSRV build 2023-11-23 19:29:43 +01:00
Cargo.toml rust: fix MSRV build 2023-11-23 19:29:43 +01:00
README.md Rust now integrated into bcachefs binary 2023-02-21 01:03:08 -05:00
rustfmt.toml Rust now integrated into bcachefs binary 2023-02-21 01:03:08 -05:00

Usage

bcachefs-mount 0.1.0
Mount a bcachefs filesystem by its UUID

USAGE:
    bcachefs-mount [OPTIONS] <uuid> <mountpoint>

FLAGS:
    -h, --help       
            Prints help information

    -V, --version    
            Prints version information


OPTIONS:
    -o <options>                 
            Mount options [default: ]

    -p, --password <password>    
            Where the password would be loaded from.
            
            Possible values are: "fail" - don't ask for password, fail if filesystem is encrypted; "wait" - wait for
            password to become available before mounting; "ask" -  prompt the user for password; [default: fail]

ARGS:
    <uuid>          
            External UUID of the bcachefs filesystem

    <mountpoint>    
            Where the filesystem should be mounted

Caveats

  • --password ask is not yet implemented, but you can use --password wait, and load the key with bcachefs unlock.

Build

$ git submodule update --init --recursive
$ cargo build --release

Binary will be built in target/release/bcachefs-mount

Dependencies:

  • rust
  • blkid
  • uuid
  • liburcu
  • libsodium
  • zlib
  • liblz4
  • libzstd
  • libkeyutils