Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/lvm2/dist/lib/filters Add logical drive device...
details: https://anonhg.NetBSD.org/src/rev/1db49fb6b8a3
branches: trunk
changeset: 772466:1db49fb6b8a3
user: mhitch <mhitch%NetBSD.org@localhost>
date: Wed Jan 04 16:37:45 2012 +0000
description:
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.
diffstat:
external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 1d7869267594 -r 1db49fb6b8a3 external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c
--- a/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c Wed Jan 04 16:36:49 2012 +0000
+++ b/external/gpl2/lvm2/dist/lib/filters/filter_netbsd.c Wed Jan 04 16:37:45 2012 +0000
@@ -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 @@
{"cgd", 1},
{"ccd", 1},
{"xbd", 64},
+ {"ld", 64},
{NULL, -1}
};
@@ -221,9 +222,9 @@
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;
}
}
Home |
Main Index |
Thread Index |
Old Index