palainp / mirage-sshfs

ISC License
21 stars 1 forks source link

Fix error message when using block_ccm and the block key is not ok #7

Closed palainp closed 2 years ago

palainp commented 2 years ago

The current message does not really helps if the blockkey is wrong and does not permit to read the FS data:

$ ./dist/mirage_sshfs --port 22022 --user username --seed 111213 --blockkey 1234567890ABCDEF1234567890ABCDEE -l debug
2022-04-17 18:44:16 +02:00: INF [tcpip-stack-socket] Dual IPv4 and IPv6 socket stack: connect
Fatal error: exception Failure("error reading essential sectors: decrypt error")
Raised at Lwt.Miscellaneous.poll in file "duniverse/lwt/src/core/lwt.ml", line 3068, characters 20-29
Called from Unix_os__Main.run in file "duniverse/mirage-unix/lib/main.ml", line 5, characters 8-18
Called from Dune__exe__Main.run in file "main.ml", line 3, characters 12-30
Called from Dune__exe__Main in file "main.ml", line 139, characters 5-10
palainp commented 2 years ago

Fixed with da0e3b920f99e57186a5c94925a671bae8dfaa1a