From eae045c4a17b8fc0ad8ff2ffe00d8ce19a911d2d Mon Sep 17 00:00:00 2001 From: tkusumi Date: Sun, 22 Dec 2019 12:28:54 +0000 Subject: dm: Add missing "ioctl called" debug prints --- sys/dev/dm/device-mapper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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); -- cgit