Module Name:    src
Committed By:   tkusumi
Date:           Sun Dec 22 12:28:54 UTC 2019

Modified Files:
        src/sys/dev/dm: device-mapper.c

Log Message:
dm: Add missing "ioctl called" debug prints


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 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.57 src/sys/dev/dm/device-mapper.c:1.58
--- src/sys/dev/dm/device-mapper.c:1.57	Thu Dec 19 15:57:46 2019
+++ src/sys/dev/dm/device-mapper.c	Sun Dec 22 12:28:54 2019
@@ -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 lo
 		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 lo
 		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);
 

Reply via email to