Lines Matching defs:error_ptr

200  * @error_ptr: A pointer to return a error string in.
205 static int get_version_number(int argc, char **argv, char **error_ptr,
211 *error_ptr = "Unknown version number detected";
225 *error_ptr = "Incorrect number of arguments for version";
229 *error_ptr = "Incorrect number of arguments for version";
647 * @error_ptr: Pointer to a buffer to hold the error string.
660 static int parse_optional_arguments(struct dm_arg_set *arg_set, char **error_ptr,
669 *error_ptr = "Invalid thread-count configuration";
674 *error_ptr = "Odd number of optional arguments given but they should be <key> <value> pairs";
679 *error_ptr = "Invalid optional argument configuration";
689 * @error_ptr: A place to store a constant string about the error.
690 * @error_str: A constant string to store in error_ptr.
692 static void handle_parse_error(struct device_config *config, char **error_ptr,
696 *error_ptr = error_str;
714 char **error_ptr = &ti->error;
719 handle_parse_error(config, error_ptr,
725 handle_parse_error(config, error_ptr, "Incorrect number of arguments");
731 handle_parse_error(config, error_ptr,
743 handle_parse_error(config, error_ptr, "Could not populate string");
765 result = get_version_number(argc, argv, error_ptr, &config->version);
767 /* get_version_number sets error_ptr itself. */
768 handle_parse_error(config, error_ptr, *error_ptr);
778 handle_parse_error(config, error_ptr,
787 handle_parse_error(config, error_ptr,
796 handle_parse_error(config, error_ptr, "Invalid logical block size");
808 handle_parse_error(config, error_ptr,
816 handle_parse_error(config, error_ptr, "Invalid block map maximum age");
835 handle_parse_error(config, error_ptr,
843 result = parse_optional_arguments(&arg_set, error_ptr, config);
845 /* parse_optional_arguments sets error_ptr itself. */
846 handle_parse_error(config, error_ptr, *error_ptr);
859 handle_parse_error(config, error_ptr,
866 handle_parse_error(config, error_ptr,
876 handle_parse_error(config, error_ptr, "Unable to open storage device");
1759 * @error_ptr: A pointer to hold the reason for any error.
1765 char **error_ptr)
1768 *error_ptr = "Starting sector cannot change";
1773 *error_ptr = "Logical block size cannot change";
1778 *error_ptr = "Can't shrink VDO logical size";
1783 *error_ptr = "Block map cache size cannot change";
1788 *error_ptr = "Block map maximum age cannot change";
1794 *error_ptr = "Thread configuration cannot change";
1799 *error_ptr = "Removing physical storage from a VDO is not supported";
1804 *error_ptr = "VDO physical size may not grow in current state";