diff options
author | Milan Broz <gmazyland@gmail.com> | 2011-07-01 16:38:58 +0000 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2011-07-01 16:38:58 +0000 |
commit | d44d07c9eb88aa93e77f9cc69a83bad32a946f76 (patch) | |
tree | 23fbef8cc983d07b0bb7877fbefdf295fe48836c /lib/libcryptsetup.h | |
parent | 5b8fb6f135c273f2e0233d25f536aa3eb5786628 (diff) | |
download | cryptsetup-d44d07c9eb88aa93e77f9cc69a83bad32a946f76.tar.gz cryptsetup-d44d07c9eb88aa93e77f9cc69a83bad32a946f76.tar.bz2 cryptsetup-d44d07c9eb88aa93e77f9cc69a83bad32a946f76.zip |
* Add --shared option for creating non-overlapping crypt segments.
* Add shared flag to libcryptsetup api.
* Fix plain crypt format parameters to include size option (API change).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@559 36d66b0a-2a48-0410-832c-cd162a569da5
Diffstat (limited to 'lib/libcryptsetup.h')
-rw-r--r-- | lib/libcryptsetup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 08c45fe..5d6128a 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -161,6 +161,7 @@ struct crypt_params_plain { const char *hash; /* password hash function */ uint64_t offset; /* offset in sectors */ uint64_t skip; /* IV initilisation sector */ + uint64_t size; /* size of mapped device or 0 for autodetection */ }; struct crypt_params_luks1 { @@ -375,6 +376,7 @@ int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot); */ #define CRYPT_ACTIVATE_READONLY (1 << 0) #define CRYPT_ACTIVATE_NO_UUID (1 << 1) +#define CRYPT_ACTIVATE_SHARED (1 << 2) /** * Active device runtime attributes |