summaryrefslogtreecommitdiff
path: root/cmd_key.c
AgeCommit message (Collapse)Author
2023-10-18Update bcachefs sources to a180af9dd349 bcachefs: Refactor memcpy into ↵Kent Overstreet
direct assignment Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-09-08cmd_set_passphrase: revoke the invalidated keyColin Gillespie
After setting a new passphrase, the previous key is left untouched. This revokes the old key, preventing future actions from using it in error. Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
2022-12-19Use bch2_err_str() instead of strerror()Kent Overstreet
This correctly prints out our private error codes. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-05-26Update email addressKent Overstreet
This changes linux-bcache@vger.kernel.org references to the correct mailing list (linux-bcachefs@vger.kernel.org). Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-19cmd_unlock: Add -k argument to specify keyringKent Overstreet
This adds a new argument (-k) to cmd_unlock for specifying the keyring to add to. The default is user, but user_session and session can also be specified. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2018-04-10Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock codeKent Overstreet
2018-02-11add -c to cmd_unlock, to check if a device needs to be unlockedKent Overstreet
2018-01-11Update bcachefs sources to 02ae70070a bcachefs: Allocate new btree roots lazilyKent Overstreet
2017-12-10build: require explicit include paths for libbcachefs/Austin Seipp
This removes the implicit `-I libbcachefs` argument to $(CC), which in turn requires a set of minor changes throughout the tools. There are two advantages to this setup: 1) It is (arguably) easier to read, since the location of bcachefs includes are easier to understand at a glance ("where does util.h live?") 2) It removes the need for a hack to include glibc's copy of dirent.h explicitly via '/usr/include/dirent.h', because libbcachefs/ *also* has a dirent.h file and the compiler cannot disambiguate them. This has some ramifications on systems where /usr/include may not exist, such as NixOS. Signed-off-by: Austin Seipp <aseipp@pobox.com>
2017-11-08Add commands for changing and removing passphraseKent Overstreet
2017-04-02More cmd_migrate improvementsKent Overstreet
Factor out bch2_pick_bucket_size() from the format code, and pick the bucket size before picking the superblock location - that way we can ensure the superblock gets its own bucket and doesn't trigger warnings due to the allocation code noticing different types of data in the same bucket.
2017-03-19Rename from bcache-tools to bcachefs-toolsKent Overstreet
2017-03-09cmd_migrateKent Overstreet
2017-02-28New on disk format - encryptionKent Overstreet