summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 7ca669c84..86cafba46 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1193,17 +1193,6 @@ format_proc_partitions (void *, char *&destbuf)
pi = (PARTITION_INFORMATION *) ioctl_buf;
size = pi->PartitionLength.QuadPart;
}
- else if (DeviceIoControl (devhdl, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0,
- ioctl_buf, NT_MAX_PATH, &bytes_read, NULL))
- {
- /* NT4 doesn't support to call IOCTL_DISK_GET_PARTITION_INFO for the
- entire drive. */
- DISK_GEOMETRY *dg = (DISK_GEOMETRY *) ioctl_buf;
- size = (unsigned long long) dg->Cylinders.QuadPart
- * dg->TracksPerCylinder
- * dg->SectorsPerTrack
- * dg->BytesPerSector;
- }
else
{
debug_printf ("DeviceIoControl (%S, "