@@ -51,11 +51,11 @@ static int crypt_storage_backend_init(struct crypt_device *cd,
5151 /* iv_start, sector_size */
5252 r = crypt_storage_init (& s , sector_size , cipher , cipher_mode ,
5353 crypt_volume_key_get_key (vk ),
54- crypt_volume_key_length (vk ), flags & LARGE_IV );
54+ crypt_volume_key_length (vk ), flags & CSW_LARGE_IV );
5555 if (r )
5656 return r ;
5757
58- if ((flags & DISABLE_KCAPI ) && crypt_storage_kernel_only (s )) {
58+ if ((flags & CSW_DISABLE_KCAPI ) && crypt_storage_kernel_only (s )) {
5959 log_dbg (cd , "Could not initialize userspace block cipher and kernel fallback is disabled." );
6060 crypt_storage_destroy (s );
6161 return - ENOTSUP ;
@@ -159,7 +159,7 @@ int crypt_storage_wrapper_init(struct crypt_device *cd,
159159 if (crypt_parse_name_and_mode (cipher , _cipher , NULL , mode ))
160160 return - EINVAL ;
161161
162- open_flags = O_CLOEXEC | ((flags & OPEN_READONLY ) ? O_RDONLY : O_RDWR );
162+ open_flags = O_CLOEXEC | ((flags & CSW_OPEN_READONLY ) ? O_RDONLY : O_RDWR );
163163
164164 w = malloc (sizeof (* w ));
165165 if (!w )
@@ -202,7 +202,7 @@ int crypt_storage_wrapper_init(struct crypt_device *cd,
202202
203203 log_dbg (cd , "Failed to initialize userspace block cipher." );
204204
205- if ((r != - ENOTSUP && r != - ENOENT ) || (flags & DISABLE_DMCRYPT ))
205+ if ((r != - ENOTSUP && r != - ENOENT ) || (flags & CSW_DISABLE_DMCRYPT ))
206206 goto err ;
207207
208208 r = crypt_storage_dmcrypt_init (cd , w , device , data_offset >> SECTOR_SHIFT , iv_start ,
0 commit comments