]> git.sesse.net Git - bcachefs-tools-debian/commit
cmd_mount: Fix test-only mount path
authorChristopher James Halse Rogers <raof@ubuntu.com>
Fri, 1 Sep 2023 06:51:32 +0000 (16:51 +1000)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 3 Sep 2023 22:27:10 +0000 (18:27 -0400)
commit28e6dea65319f425c922f59c8352c9a1969f92d4
tree7dfb25cd80287cbfcac77cf7f138e82c3e747acf
parente0e3032926d77ad424f5127ed8a5b4e44b6be476
cmd_mount: Fix test-only mount path

The comman line help claims that `bcachefs mount <DEV>` without a
mount point will do a dry-run mount - all the steps required to
mount the fs, but without actually doing the final real mount.

Make the code actually do this, rather than complain that you
haven't supplied a mountpoint if you don't provide a mountpoint

Signed-off-by: Christopher James Halse Rogers <raof@ubuntu.com>
rust-src/src/cmd_mount.rs