diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-10-03 17:55:20 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-10-03 17:55:20 +0000 |
commit | 6c81ed26f0621c8ea8da4d0712a7a7883023fcb2 (patch) | |
tree | 51245d30bc544abf73996ad825dc1b75cd5a4b4b /lib/zero | |
parent | 1baed0e1aef0e62af6437fe2ba040ff28a836988 (diff) | |
download | lvm2-6c81ed26f0621c8ea8da4d0712a7a7883023fcb2.tar.gz |
Add LV column to reports listing kernel modules needed for activation.
Diffstat (limited to 'lib/zero')
-rw-r--r-- | lib/zero/zero.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/zero/zero.c b/lib/zero/zero.c index f577cb67f..943ca2691 100644 --- a/lib/zero/zero.c +++ b/lib/zero/zero.c @@ -63,6 +63,18 @@ static int _zero_target_present(void) } #endif +static int _zero_modules_needed(struct dm_pool *mem, + const struct lv_segment *seg, + struct list *modules) +{ + if (!str_list_add(mem, modules, "zero")) { + log_error("zero module string list allocation failed"); + return 0; + } + + return 1; +} + static void _zero_destroy(const struct segment_type *segtype) { dm_free((void *) segtype); @@ -75,6 +87,7 @@ static struct segtype_handler _zero_ops = { .add_target_line = _zero_add_target_line, .target_present = _zero_target_present, #endif + .modules_needed = _zero_modules_needed, .destroy = _zero_destroy, }; |