diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-06-26 19:07:18 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-06-26 19:14:45 +0200 |
commit | 7a17d429d552fd955bfdd3e83869a0b57db9fd6f (patch) | |
tree | 2cd7544b7930bd6616aa013170d032e342e47540 /c_src/libbcachefs/journal_seq_blacklist.h | |
parent | ee5f3719d33ae3ff227aaeda686c7faba33b847d (diff) |
feat(key): make `UnlockPolicy::Fail` more useful
We already can check if an fs is encrypted with `bcachefs unlock -c`.
With this option we can now instead check if we have a key but not
actually mount by not specifying a mount point. e.g.
```sh
if bcachefs mount -k fail "$blkdev"`; then
echo "device is unlocked!"
fi
```
Not sure what the original intent for this was. For scenarios where
encryption is simply not supported on principle?
Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
Diffstat (limited to 'c_src/libbcachefs/journal_seq_blacklist.h')
0 files changed, 0 insertions, 0 deletions