win32: add debug code in disk_get_sector_size_win32

This commit is contained in:
Christophe Grenier 2008-08-28 00:01:16 +02:00
parent d5d0a9a74f
commit b04cfd531a

View file

@ -155,7 +155,12 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
geom->heads_per_cylinder=geometry_ex.Geometry.TracksPerCylinder;
geom->sectors_per_head= geometry_ex.Geometry.SectorsPerTrack;
if(geom->sectors_per_head!=0)
{
if(verbose>1)
log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY_EX %s Ok (%u, %u, %u)\n",
device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
}
}
}
{
@ -168,7 +173,12 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
geom->heads_per_cylinder=geometry.TracksPerCylinder;
geom->sectors_per_head= geometry.SectorsPerTrack;
if(geom->sectors_per_head!=0)
{
if(verbose>1)
log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY %s Ok (%u, %u, %u)\n",
device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
}
}
}
geom->cylinders=0;