summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_ioctl.c
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2008-12-19 16:30:41 +0000
committerhaad <haad@NetBSD.org>2008-12-19 16:30:41 +0000
commit78284dcaf12637bfbb20587a1462594b9f2b730a (patch)
tree2100fb14f4ebfd8ed671b082aa5a7ef354ba6957 /sys/dev/dm/dm_ioctl.c
parent210ce8a4644c8bbb37146181ab162e59738a52ec (diff)
Add infrastructure needed to load device-mapper targets as modules.
Targets wasn't converted yet and at least snapshot target will be converted in a near future.
Diffstat (limited to 'sys/dev/dm/dm_ioctl.c')
-rw-r--r--sys/dev/dm/dm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c
index e6c28f423df..43d81907ff3 100644
--- a/sys/dev/dm/dm_ioctl.c
+++ b/sys/dev/dm/dm_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.2 2008/12/19 15:24:03 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.3 2008/12/19 16:30:41 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -727,10 +727,10 @@ dm_table_load_ioctl(prop_dictionary_t dm_dict)
* If we want to deny table with 2 or more different
* target we should do it here
*/
- if ((target = dm_target_lookup_name(type)) == NULL)
+ if ((target = dm_target_lookup(type)) == NULL)
return ENOENT;
- if ((table_en=kmem_alloc(sizeof(dm_table_entry_t),
+ if ((table_en = kmem_alloc(sizeof(dm_table_entry_t),
KM_NOSLEEP)) == NULL)
return ENOMEM;