Added some devfs functions to let the DiskDeviceManager test build again.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-06-21 12:41:19 +00:00
parent 424a9bc81d
commit 89d57c315b
@@ -15,6 +15,8 @@
#include <Path.h>
#include <String.h>
#include <devfs.h>
#ifdef TRACE
#undef TRACE
#endif
@@ -662,6 +664,25 @@ spawn_kernel_thread(thread_func func, const char *name, int32 priority, void *da
}
extern "C" status_t
devfs_unpublish_partition(const char *path)
{
printf("unpublish partition: %s\n", path);
return B_OK;
}
extern "C" status_t
devfs_publish_partition(const char *path, const partition_info *info)
{
if (info == NULL)
return B_BAD_VALUE;
printf("publish partition: %s (device \"%s\", size %Ld)\n", path, info->device, info->size);
return B_OK;
}
void
panic(const char *format, ...)
{