Lines Matching defs:error
944 static void complete_journal_io(unsigned long error, void *context)
947 if (unlikely(error != 0))
1399 static void flush_notify(unsigned long error, void *fr_)
1402 if (unlikely(error != 0))
1620 goto error;
1639 goto error;
1689 goto error;
1724 goto error;
1734 error:
2303 static void complete_copy_from_journal(unsigned long error, void *context)
2310 if (unlikely(error != 0))
3486 static int get_alg_and_key(const char *arg, struct alg_spec *a, char **error, char *error_inval)
3513 *error = error_inval;
3516 *error = "Out of memory for an argument";
3520 static int get_mac(struct crypto_shash **hash, struct alg_spec *a, char **error,
3528 *error = error_alg;
3537 *error = error_key;
3541 *error = error_key;
3549 static int create_journal(struct dm_integrity_c *ic, char **error)
3566 *error = "Journal doesn't fit into memory";
3574 *error = "Could not allocate memory for journal";
3585 *error = "Invalid journal cipher";
3597 *error = "Error setting encryption key";
3606 *error = "Could not allocate memory for journal io";
3616 *error = "Could not allocate crypt request";
3623 *error = "Could not allocate iv";
3630 *error = "Could not allocate memory for journal xor";
3639 *error = "Unable to allocate sg list";
3660 *error = "Unable to encrypt journal";
3672 *error = "Could not allocate crypt request";
3679 *error = "Could not allocate iv";
3686 *error = "Unable to allocate crypt data";
3693 *error = "Unable to allocate sg list";
3699 *error = "Unable to allocate sg list";
3707 *error = "Unable to allocate sk requests";
3729 *error = "Unable to generate iv";
3735 *error = "Unable to allocate crypt request";
3743 *error = "Unable to allocate iv";
3769 *error = "Journal doesn't fit into memory";
3775 *error = "Could not allocate memory for journal tree";
3832 ti->error = "Invalid argument count";
3838 ti->error = "Cannot allocate integrity context";
3856 ti->error = "Device lookup failed";
3861 ti->error = "Invalid starting offset";
3869 ti->error = "Invalid tag size";
3879 ti->error = "Invalid mode (expecting J, B, D, R)";
3893 r = dm_read_arg_group(_args, &as, &extra_args, &ti->error);
3904 ti->error = "Not enough feature arguments";
3925 ti->error = "Device lookup failed";
3933 ti->error = "Invalid block_size argument";
3942 ti->error = "Invalid bitmap_flush_interval argument";
3947 r = get_alg_and_key(opt_string, &ic->internal_hash_alg, &ti->error,
3952 r = get_alg_and_key(opt_string, &ic->journal_crypt_alg, &ti->error,
3957 r = get_alg_and_key(opt_string, &ic->journal_mac_alg, &ti->error,
3971 ti->error = "Invalid argument";
3991 r = get_mac(&ic->internal_hash, &ic->internal_hash_alg, &ti->error,
3996 r = get_mac(&ic->journal_mac, &ic->journal_mac_alg, &ti->error,
4003 ti->error = "Unknown tag size";
4010 ti->error = "Too big tag size";
4021 ti->error = "Bitmap mode can be only used with internal hash";
4027 ti->error = "Discard can be only used with internal hash";
4039 ti->error = "Cannot allocate dm io";
4045 ti->error = "Cannot allocate mempool";
4052 ti->error = "Cannot allocate workqueue";
4063 ti->error = "Cannot allocate workqueue";
4071 ti->error = "Cannot allocate workqueue";
4078 ti->error = "Cannot allocate workqueue";
4087 ti->error = "Cannot allocate workqueue";
4097 ti->error = "Cannot allocate superblock area";
4103 ti->error = "Error reading superblock";
4111 ti->error = "The device is not initialized";
4118 ti->error = "Could not initialize superblock";
4127 ti->error = "Unknown version";
4132 ti->error = "Tag size doesn't match the information in superblock";
4137 ti->error = "Block size doesn't match the information in superblock";
4142 ti->error = "Corrupted superblock, journal_sections is 0";
4150 ti->error = "Invalid interleave_sectors in the superblock";
4156 ti->error = "Invalid interleave_sectors in the superblock";
4162 ti->error = "Journal mac mismatch";
4169 ti->error = "The device is too small";
4182 ti->error = "The device is too small";
4211 ti->error = "Not enough provided sectors for requested mapping size";
4247 ti->error = "Cannot allocate workqueue";
4254 ti->error = "Cannot allocate buffer for recalculating";
4263 ti->error = "Cannot allocate tags for recalculating";
4269 ti->error = "Recalculate can only be specified with internal_hash";
4278 ti->error = "Recalculating with HMAC is disabled for security reasons - if you really need it, use the argument \"legacy_recalculate\"";
4287 ti->error = "Cannot initialize dm-bufio";
4294 r = create_journal(ic, &ti->error);
4342 ti->error = "Error initializing journal";
4347 ti->error = "Error initializing superblock";