diff options
| author | haad <haad@NetBSD.org> | 2009-06-05 19:56:40 +0000 |
|---|---|---|
| committer | haad <haad@NetBSD.org> | 2009-06-05 19:56:40 +0000 |
| commit | 62e994ce9603e863ae6d9a2bbbe8aa35680d2e7c (patch) | |
| tree | 81f57723f2115ad75e4da1513a144b0889ee67ab /sys/dev/dm/dm_target_snapshot.c | |
| parent | 57b5269dadf2793c8fbd645371798c39920070e7 (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_snapshot.c')
| -rw-r--r-- | sys/dev/dm/dm_target_snapshot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_target_snapshot.c b/sys/dev/dm/dm_target_snapshot.c index e682265f45c..b2afcb4e4c1 100644 --- a/sys/dev/dm/dm_target_snapshot.c +++ b/sys/dev/dm/dm_target_snapshot.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_snapshot.c,v 1.8 2009/02/19 23:07:33 haad Exp $ */ +/* $NetBSD: dm_target_snapshot.c,v 1.9 2009/06/05 19:56:40 haad Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -178,7 +178,7 @@ dm_target_snapshot_modcmd(modcmd_t cmd, void *arg) * snapshot_origin device, cow device, persistent flag, chunk size */ int -dm_target_snapshot_init(dm_dev_t *dmv, void **target_config, char *params) +dm_target_snapshot_init(dm_dev_t *dmv, void **target_config, prop_dictionary_t dict) { dm_target_snapshot_config_t *tsc; dm_pdev_t *dmp_snap, *dmp_cow; |
