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:
@@ -15,6 +15,8 @@
|
|||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
|
#include <devfs.h>
|
||||||
|
|
||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
#undef TRACE
|
#undef TRACE
|
||||||
#endif
|
#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
|
void
|
||||||
panic(const char *format, ...)
|
panic(const char *format, ...)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user