Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm dm: Add missing "ioctl called" debug prints



details:   https://anonhg.NetBSD.org/src/rev/db82117c0200
branches:  trunk
changeset: 466436:db82117c0200
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Sun Dec 22 12:28:54 2019 +0000

description:
dm: Add missing "ioctl called" debug prints

diffstat:

 sys/dev/dm/device-mapper.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 740c881ea808 -r db82117c0200 sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c        Sun Dec 22 12:21:45 2019 +0000
+++ b/sys/dev/dm/device-mapper.c        Sun Dec 22 12:28:54 2019 +0000
@@ -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 @@
                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 @@
                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);
 



Home | Main Index | Thread Index | Old Index