Skip to content

Commit

Permalink
fsck: print "Checking filesystem..."
Browse files Browse the repository at this point in the history
From #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 #779
  • Loading branch information
rfjakob committed Sep 17, 2023
1 parent 3a65627 commit 4ef110f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsck.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4ef110f

Please sign in to comment.