diff options
author | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
commit | e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1 (patch) | |
tree | 197a579049ddab74d8944939a45f8e0d46b6c3cf /lib/mm/memlock.c | |
parent | d35188058be01bd29128dcf1f5b79220fbcb135b (diff) | |
download | lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.gz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.xz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.zip |
Move the core of the lib/config/config.c functionality into libdevmapper,
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
Diffstat (limited to 'lib/mm/memlock.c')
-rw-r--r-- | lib/mm/memlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index bdda2ca5..8bf9f22d 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -146,10 +146,10 @@ static void _release_memory(void) * mlock/munlock memory areas from /proc/self/maps * format described in kernel/Documentation/filesystem/proc.txt */ -static int _maps_line(const struct config_node *cn, lvmlock_t lock, +static int _maps_line(const struct dm_config_node *cn, lvmlock_t lock, const char* line, size_t* mstats) { - const struct config_value *cv; + const struct dm_config_value *cv; long from, to; int pos; unsigned i; @@ -188,7 +188,7 @@ static int _maps_line(const struct config_node *cn, lvmlock_t lock, } } else { for (cv = cn->v; cv; cv = cv->next) { - if ((cv->type != CFG_STRING) || !cv->v.str[0]) + if ((cv->type != DM_CFG_STRING) || !cv->v.str[0]) continue; if (strstr(line + pos, cv->v.str)) { log_debug("mlock_filter '%s' matches '%s': Skipping.", @@ -228,7 +228,7 @@ static int _maps_line(const struct config_node *cn, lvmlock_t lock, static int _memlock_maps(struct cmd_context *cmd, lvmlock_t lock, size_t *mstats) { - const struct config_node *cn; + const struct dm_config_node *cn; char *line, *line_end; size_t len; ssize_t n; |