Moved vfs_bootstrap_file_systems() and vfs_mount_boot_file_system() out of vfs.cpp

and into its own file vfs_boot.cpp.

Added basic support for booting from CD - it doesn't give CDs a higher priority,
so you could end up booting from HD when you didn't explicetly select "CD-ROM"
in the boot loader. Eventually, it should only boot from HD in this case, if
booting from CD failed (because of a missing boot partition or whatever).

fs_mount(), _kern_mount(), and _user_mount() will now return the dev_t of the
mounted device, and not just B_OK. Maybe we should have fs_unmount() work on
a dev_t instead of a path as well...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14403 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-10-17 14:01:04 +00:00
parent 94caf40a8e
commit 2db3fced5f
5 changed files with 214 additions and 140 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ extern status_t _kern_get_image_info(image_id id, image_info *info, size_t size
extern status_t _kern_get_next_image_info(team_id team, int32 *cookie, image_info *info, size_t size);
// VFS functions
extern status_t _kern_mount(const char *path, const char *device,
extern dev_t _kern_mount(const char *path, const char *device,
const char *fs_name, uint32 flags, const char *args);
extern status_t _kern_unmount(const char *path, uint32 flags);
extern status_t _kern_read_fs_info(dev_t device, struct fs_info *info);