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:
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>
|
2005-02-01 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* cygthread.cc (cygthread::terminate_thread): Wait briefly for
|
* cygthread.cc (cygthread::terminate_thread): Wait briefly for
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user