bcachefs-tools/rust-src/mount
Alexander Fougner bdc290eee0 rust: suppress errors on fs probing
suppress errors for any non-bchfs blockdevs found during probing

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
2023-01-15 22:20:16 +01:00
..
src rust: suppress errors on fs probing 2023-01-15 22:20:16 +01:00
.gitignore split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04:00
Cargo.lock rust: support fstab style mount 2023-01-15 22:20:13 +01:00
Cargo.toml rust: support fstab style mount 2023-01-15 22:20:13 +01:00
default.nix nix: overhaul build system. 2023-01-03 16:58:55 +13:00
module.nix split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04:00
README.md split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04:00
rustfmt.toml split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04: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