summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authortkusumi <tkusumi@NetBSD.org>2019-12-22 12:28:54 +0000
committertkusumi <tkusumi@NetBSD.org>2019-12-22 12:28:54 +0000
commiteae045c4a17b8fc0ad8ff2ffe00d8ce19a911d2d (patch)
tree1e27b0cbac073c7c8fbaeeadfa6f513104985a6b /sys
parent271e6da9d9d647c6b432157aaae0c1f2642c0cfb (diff)
dm: Add missing "ioctl called" debug prints
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/dm/device-mapper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/dm/device-mapper.c b/sys/dev/dm/device-mapper.c
index a86ffaa9a4b..4214742d7de 100644
--- a/sys/dev/dm/device-mapper.c
+++ b/sys/dev/dm/device-mapper.c
@@ -1,4 +1,4 @@
-/* $NetBSD: device-mapper.c,v 1.57 2019/12/19 15:57:46 tkusumi Exp $ */
+/* $NetBSD: device-mapper.c,v 1.58 2019/12/22 12:28:54 tkusumi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -456,6 +456,8 @@ disk_ioctl_switch(dev_t dev, unsigned long cmd, void *data)
if ((dmv = dm_dev_lookup(NULL, NULL, minor(dev))) == NULL)
return ENODEV;
+ aprint_debug("DIOCGDISKINFO ioctl called\n");
+
if (dmv->diskp->dk_info == NULL) {
dm_dev_unbusy(dmv);
return ENOTSUP;
@@ -474,6 +476,8 @@ disk_ioctl_switch(dev_t dev, unsigned long cmd, void *data)
if ((dmv = dm_dev_lookup(NULL, NULL, minor(dev))) == NULL)
return ENODEV;
+ aprint_debug("DIOCCACHESYNC ioctl called\n");
+
/* Select active table */
tbl = dm_table_get_entry(&dmv->table_head, DM_TABLE_ACTIVE);