From 518772739f9ef939beff1df7555c8b91c8caf46d Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Wed, 26 Dec 2007 15:25:05 +0000 Subject: [PATCH] dump all found devices and partitions to serial debug output git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23161 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs_boot.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp index f8ce00e7f5..0bee98cb16 100644 --- a/src/system/kernel/fs/vfs_boot.cpp +++ b/src/system/kernel/fs/vfs_boot.cpp @@ -370,6 +370,14 @@ dprintf("get_boot_partitions(): boot method type: %ld\n", bootMethodType); return status; } + if (1 /* dump devices and partitions */) { + KDiskDevice *device; + int32 cookie = 0; + while ((device = manager->NextDevice(&cookie)) != NULL) { + device->Dump(true, 0); + } + } + struct BootPartitionVisitor : KPartitionVisitor { BootPartitionVisitor(BootMethod* bootMethod, PartitionStack &stack) : fPartitions(stack),