summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_error.c
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2009-06-05 19:56:40 +0000
committerhaad <haad@NetBSD.org>2009-06-05 19:56:40 +0000
commit62e994ce9603e863ae6d9a2bbbe8aa35680d2e7c (patch)
tree81f57723f2115ad75e4da1513a144b0889ee67ab /sys/dev/dm/dm_target_error.c
parent57b5269dadf2793c8fbd645371798c39920070e7 (diff)
Parse dm param string in libdevmapper and not in a dm target init function.
Create proplib param dictionary entry in libdevmapper and pass it to dm in dm_ioctl dict. Param target is then passed to target init function, where is parse. I like this aproach much better than passing char **argv and trusting to user input. I have bumped minor lib/driver version. XXX. Add more sanity checks in kernel.
Diffstat (limited to 'sys/dev/dm/dm_target_error.c')
-rw-r--r--sys/dev/dm/dm_target_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_target_error.c b/sys/dev/dm/dm_target_error.c
index ce5b4def93b..a6ab9bfc023 100644
--- a/sys/dev/dm/dm_target_error.c
+++ b/sys/dev/dm/dm_target_error.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_target_error.c,v 1.7 2009/02/19 23:07:33 haad Exp $ */
+/* $NetBSD: dm_target_error.c,v 1.8 2009/06/05 19:56:40 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@ dm_target_error_modcmd(modcmd_t cmd, void *arg)
/* Init function called from dm_table_load_ioctl. */
int
-dm_target_error_init(dm_dev_t *dmv, void **target_config, char *argv)
+dm_target_error_init(dm_dev_t *dmv, void **target_config, prop_dictionary_t dict)
{
printf("Error target init function called!!\n");