aboutsummaryrefslogtreecommitdiff
path: root/fsck.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-09-17 16:38:50 +0200
committerJakob Unterwurzacher2023-09-17 16:38:50 +0200
commit4ef110f1f3dd6308d88e951aa89dc426d32ad6f1 (patch)
treefda16c9cf16ca9ba89537ca60a20980a87b7c3b4 /fsck.go
parent3a65627316cb4d1c360ece87ec9a33e4c330d1aa (diff)
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
Diffstat (limited to 'fsck.go')
-rw-r--r--fsck.go1
1 files changed, 1 insertions, 0 deletions
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()