An empty BFS file system for the boot loader for testing purposes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-09-09 02:22:37 +00:00
parent 16885aac6f
commit b5711c8173
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,3 @@
SubDir OBOS_TOP src kernel boot loader file_systems ;
SubInclude OBOS_TOP src kernel boot loader file_systems bfs ;

View File

@ -0,0 +1,11 @@
SubDir OBOS_TOP src kernel boot loader file_systems bfs ;
UsePrivateHeaders [ FDirName kernel boot platform $(OBOS_BOOT_PLATFORM) ] ;
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
UsePrivateHeaders [ FDirName storage ] ;
SubDirHdrs $(OBOS_TOP) src add-ons kernel file_systems bfs ;
KernelStaticLibrary boot_bfs :
bfs.cpp
;

View File

@ -0,0 +1,33 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <boot/partitions.h>
#include <boot/vfs.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
// #pragma mark -
static status_t
bfs_get_file_system(Node *device, Directory **_root)
{
int fd = open_node(device, O_RDONLY);
if (fd >= 0)
close(fd);
return B_ERROR;
}
file_system_module_info gBFSFileSystemModule = {
kPartitionTypeBFS,
bfs_get_file_system
};