4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check since

it could skip over partitions that are actually interesting.
This commit is contained in:
Christopher Faylor 2005-02-01 17:16:14 +00:00
parent 74d8e12e16
commit 8c96f3fac2
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-02-01 Christopher Faylor <cgf@timesys.com>
* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check
since it could skip over partitions that are actually interesting.
2005-02-01 Christopher Faylor <cgf@timesys.com> 2005-02-01 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::terminate_thread): Wait briefly for * cygthread.cc (cygthread::terminate_thread): Wait briefly for

View File

@ -1,6 +1,6 @@
/* fhandler_proc.cc: fhandler for /proc virtual filesystem /* fhandler_proc.cc: fhandler for /proc virtual filesystem
Copyright 2002, 2003, 2004 Red Hat, Inc. Copyright 2002, 2003, 2004, 2005 Red Hat, Inc.
This file is part of Cygwin. This file is part of Cygwin.
@ -1012,8 +1012,7 @@ format_proc_partitions (char *destbuf, size_t maxsize)
DRIVE_LAYOUT_INFORMATION *dli = (DRIVE_LAYOUT_INFORMATION *) buf; DRIVE_LAYOUT_INFORMATION *dli = (DRIVE_LAYOUT_INFORMATION *) buf;
for (unsigned partition = 0; partition < dli->PartitionCount; partition++) for (unsigned partition = 0; partition < dli->PartitionCount; partition++)
{ {
if (!dli->PartitionEntry[partition].PartitionLength.QuadPart if (!dli->PartitionEntry[partition].PartitionLength.QuadPart)
|| !dli->PartitionEntry[partition].PartitionType)
continue; continue;
device dev; device dev;
dev.parsedisk (drive_number, partition + 1); dev.parsedisk (drive_number, partition + 1);