1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00

Fix function name in previous patch.

This commit is contained in:
Milan Broz 2011-11-11 15:14:05 +00:00
parent 07113beea3
commit d1b36fbe7f
2 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ int target_present(struct cmd_context *cmd, const char *target_name,
{ {
return 0; return 0;
} }
int dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix) int lvm_dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix)
{ {
return 0; return 0;
} }
@ -443,14 +443,14 @@ int target_version(const char *target_name, uint32_t *maj,
return r; return r;
} }
int dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix) int lvm_dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix)
{ {
struct dm_task *dmt; struct dm_task *dmt;
const char *uuid; const char *uuid;
int r; int r;
if (!(dmt = dm_task_create(DM_DEVICE_STATUS))) if (!(dmt = dm_task_create(DM_DEVICE_STATUS)))
return 0; return_0;
if (!dm_task_set_minor(dmt, minor) || if (!dm_task_set_minor(dmt, minor) ||
!dm_task_set_major(dmt, major) || !dm_task_set_major(dmt, major) ||
@ -463,7 +463,7 @@ int dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *pre
r = strncasecmp(uuid, prefix, strlen(prefix)); r = strncasecmp(uuid, prefix, strlen(prefix));
dm_task_destroy(dmt); dm_task_destroy(dmt);
return (r == 0) ? 1 : 0; return r ? 0 : 1;
} }
int module_present(struct cmd_context *cmd, const char *target_name) int module_present(struct cmd_context *cmd, const char *target_name)

View File

@ -53,7 +53,7 @@ int target_present(struct cmd_context *cmd, const char *target_name,
int use_modprobe); int use_modprobe);
int target_version(const char *target_name, uint32_t *maj, int target_version(const char *target_name, uint32_t *maj,
uint32_t *min, uint32_t *patchlevel); uint32_t *min, uint32_t *patchlevel);
int dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix); int lvm_dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix);
int list_segment_modules(struct dm_pool *mem, const struct lv_segment *seg, int list_segment_modules(struct dm_pool *mem, const struct lv_segment *seg,
struct dm_list *modules); struct dm_list *modules);
int list_lv_modules(struct dm_pool *mem, const struct logical_volume *lv, int list_lv_modules(struct dm_pool *mem, const struct logical_volume *lv,