Module Name: src Committed By: mhitch Date: Wed Jan 4 16:37:45 UTC 2012
Modified Files: src/external/gpl2/lvm2/dist/lib/filters: filter_netbsd.c Log Message: Add logical drive device ld - a number of raid controllers provide these. Also fix a typo/pasto when checking devices against devices/types in the configuration file: use value from configuration, not the end of the device_info table. Devices which aren't explicitly specified in the device_info table can now be used by adding a type entry in the config file. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c diff -u src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c:1.3 src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c:1.4 --- src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c:1.3 Wed Dec 2 01:53:25 2009 +++ src/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c Wed Jan 4 16:37:45 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: filter_netbsd.c,v 1.3 2009/12/02 01:53:25 haad Exp $ */ +/* $NetBSD: filter_netbsd.c,v 1.4 2012/01/04 16:37:45 mhitch Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. @@ -82,6 +82,7 @@ static const device_info_t device_info[] {"cgd", 1}, {"ccd", 1}, {"xbd", 64}, + {"ld", 64}, {NULL, -1} }; @@ -221,9 +222,9 @@ static int _scan_dev(const struct config if (!strncmp(name, kd[i].d_name, strlen(name))){ _char_device_major[kd[i].d_cmajor] = - device_info[j].max_partitions; + cv->v.i; _block_device_major[kd[i].d_bmajor] = - device_info[j].max_partitions; + cv->v.i; break; } }