From 4ef110f1f3dd6308d88e951aa89dc426d32ad6f1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 17 Sep 2023 16:38:50 +0200 Subject: fsck: print "Checking filesystem..." From https://github.com/rfjakob/gocryptfs/issues/779 / @jroovy > When using `-fsck`, the command line output looks like this: > > ``` > $ gocryptfs -fsck ENCRYPTED_DIRECTORY > Password: > Decrypting master key > ``` > > However, the user might think it's stuck at decrypting the master > key. Adding extra text showing that fsck is working would be nice, > something like: > > ``` > $ gocryptfs -fsck ENCRYPTED_DIRECTORY > Password: > Decrypting master key > Checking filesystem... > ``` Fixes https://github.com/rfjakob/gocryptfs/issues/779 --- fsck.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fsck.go b/fsck.go index 4978fdd..6c2cc92 100644 --- a/fsck.go +++ b/fsck.go @@ -305,6 +305,7 @@ func fsck(args *argContainer) (exitcode int) { } }() // Recursively check the root dir + tlog.Info.Println(tlog.ColorGreen + "Checking filesystem..." + tlog.ColorReset) ck.dir("") // Report results wipeKeys() -- cgit v1.2.3