Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more traces around DI interface #3

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions module/os/windows/zfs/zfs_vnops_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#include <sys/unistd.h>
#include <sys/zfs_windows.h>
#include <sys/kstat.h>
#include <sys/zvol_os.h>

PDEVICE_OBJECT ioctlDeviceObject = NULL;
PDEVICE_OBJECT fsDiskDeviceObject = NULL;
Expand Down Expand Up @@ -5587,6 +5588,12 @@ pnp_query_di(PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)
PCHAR vendorUniqueId = (PCHAR)IrpSp->Parameters.QueryInterface.InterfaceSpecificData;
zv = zvol_name2zvolState(&vendorUniqueId[8],
&openCount);
if (zv) {
zvol_state_t *pzv = (zvol_state_t *)zv;
TraceEvent(TRACE_INFO, "%s:%d: query DI interface for zvol:%s, size:%llu, lun_id:%d, target_id:%d",
__func__, __LINE__, pzv->zv_name, pzv->zv_volsize,
pzv->zv_zso->zso_lun_id, pzv->zv_zso->zso_target_id);
}
// check that the minor number is non-zero: that
// signifies the zvol has fully completed its
// bringup phase.
Expand Down Expand Up @@ -5616,5 +5623,8 @@ pnp_query_di(PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)
}
else
status = STATUS_NOT_IMPLEMENTED;

TraceEvent(TRACE_INFO, "%s:%d: Returning status 0x%x\n", __func__, __LINE__, status);

return (status);
}
3 changes: 3 additions & 0 deletions module/os/windows/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ zvol_os_attach(char *name)
if (error == 0) {
wzvol_assign_targetid(zv);
wzvol_announce_buschange();
dprintf("%s:%d returning zvol '%s', targetid:%d, lun_id:%d, open_count:%d, volsize:%llu, flags:%d\n",
__func__, __LINE__, zv->zv_name, zv->zv_zso->zso_target_id, zv->zv_zso->zso_lun_id,
zv->zv_open_count, zv->zv_volsize, zv->zv_flags);
}
}
}
Expand Down