* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check since
it could skip over partitions that are actually interesting.
This commit is contained in:
parent
74d8e12e16
commit
8c96f3fac2
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue