* 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>
* cygthread.cc (cygthread::terminate_thread): Wait briefly for

View File

@ -1,6 +1,6 @@
/* 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.
@ -1012,8 +1012,7 @@ format_proc_partitions (char *destbuf, size_t maxsize)
DRIVE_LAYOUT_INFORMATION *dli = (DRIVE_LAYOUT_INFORMATION *) buf;
for (unsigned partition = 0; partition < dli->PartitionCount; partition++)
{
if (!dli->PartitionEntry[partition].PartitionLength.QuadPart
|| !dli->PartitionEntry[partition].PartitionType)
if (!dli->PartitionEntry[partition].PartitionLength.QuadPart)
continue;
device dev;
dev.parsedisk (drive_number, partition + 1);