Module Name: src Committed By: haad Date: Fri Mar 12 16:26:26 UTC 2010
Modified Files: src/sys/dev/dm: device-mapper.c Log Message: Disable disk_ioctl_switch fo device-mapper control device. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/device-mapper.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dm/device-mapper.c diff -u src/sys/dev/dm/device-mapper.c:1.19 src/sys/dev/dm/device-mapper.c:1.20 --- src/sys/dev/dm/device-mapper.c:1.19 Sat Feb 27 00:31:57 2010 +++ src/sys/dev/dm/device-mapper.c Fri Mar 12 16:26:26 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: device-mapper.c,v 1.19 2010/02/27 00:31:57 jakllsch Exp $ */ +/* $NetBSD: device-mapper.c,v 1.20 2010/03/12 16:26:26 haad Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -424,6 +424,10 @@ { dm_dev_t *dmv; + /* disk ioctls make sense only on block devices */ + if (minor(dev) == 0) + return ENOTTY; + switch(cmd) { case DIOCGWEDGEINFO: {