moved rescan call to vfs_mount_boot_file_system() as suggested by axeld :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18738 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d564275ba7
commit
4c3702d42a
@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright 2006, Jerome Duval. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
*/
|
||||
#ifndef _KERNEL_DDM_H
|
||||
#define _KERNEL_DDM_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
status_t ddm_init_post_modules(struct kernel_args *args);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL_DDM_H */
|
@ -3,7 +3,6 @@
|
||||
#include <KernelExport.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ddm.h"
|
||||
#include "disk_device_manager.h"
|
||||
#include "KDiskDevice.h"
|
||||
#include "KDiskDeviceJob.h"
|
||||
@ -274,10 +273,3 @@ update_disk_device_job_interrupt_properties(disk_job_id jobID,
|
||||
return B_DISK_DEVICE_JOB_CONTINUE;
|
||||
}
|
||||
|
||||
status_t
|
||||
ddm_init_post_modules(kernel_args *args)
|
||||
{
|
||||
KDiskDeviceManager *manager = KDiskDeviceManager::Default();
|
||||
return manager->RescanDiskSystems();
|
||||
}
|
||||
|
||||
|
@ -351,6 +351,11 @@ vfs_mount_boot_file_system(kernel_args *args)
|
||||
}
|
||||
|
||||
file_cache_init_post_boot_device();
|
||||
|
||||
// search for other disk systems
|
||||
KDiskDeviceManager *manager = KDiskDeviceManager::Default();
|
||||
manager->RescanDiskSystems();
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include <cbuf.h>
|
||||
#include <cpu.h>
|
||||
#include <debug.h>
|
||||
#include <ddm.h>
|
||||
#include <elf.h>
|
||||
#include <int.h>
|
||||
#include <kdevice_manager.h>
|
||||
@ -228,7 +227,6 @@ main2(void *unused)
|
||||
cpu_init_post_modules(&sKernelArgs);
|
||||
vm_init_post_modules(&sKernelArgs);
|
||||
debug_init_post_modules(&sKernelArgs);
|
||||
ddm_init_post_modules(&sKernelArgs);
|
||||
|
||||
// start the init process
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user