Added our preliminary mount replacements.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
da87ac8c9a
commit
2c4f728f7e
@ -7,6 +7,17 @@ KernelObjects
|
||||
: -fPIC -DPIC
|
||||
;
|
||||
|
||||
# kernel libroot os files
|
||||
|
||||
KernelMergeObject kernel_os_main.o :
|
||||
driver_settings.c
|
||||
: -fno-pic
|
||||
;
|
||||
|
||||
SEARCH on [ FGristFiles
|
||||
driver_settings.c
|
||||
] = [ FDirName $(OBOS_TOP) src kernel libroot os ] ;
|
||||
|
||||
# kernel libroot posix files
|
||||
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) posix ] ;
|
||||
|
@ -3,23 +3,24 @@ SubDir OBOS_TOP src kernel libroot os ;
|
||||
SubDirHdrs [ FCurrentObjectsDir ] ;
|
||||
|
||||
KernelMergeObject os_main.o :
|
||||
<$(SOURCE_GRIST)>area.c
|
||||
<$(SOURCE_GRIST)>atomic.c
|
||||
<$(SOURCE_GRIST)>debug.c
|
||||
<$(SOURCE_GRIST)>driver_settings.c
|
||||
<$(SOURCE_GRIST)>fs_attr.c
|
||||
<$(SOURCE_GRIST)>fs_index.c
|
||||
<$(SOURCE_GRIST)>fs_info.c
|
||||
<$(SOURCE_GRIST)>fs_query.cpp
|
||||
<$(SOURCE_GRIST)>image.c
|
||||
<$(SOURCE_GRIST)>parsedate.cpp
|
||||
<$(SOURCE_GRIST)>port.c
|
||||
<$(SOURCE_GRIST)>sem.c
|
||||
<$(SOURCE_GRIST)>system_info.c
|
||||
<$(SOURCE_GRIST)>team.c
|
||||
<$(SOURCE_GRIST)>thread.c
|
||||
<$(SOURCE_GRIST)>time.c
|
||||
<$(SOURCE_GRIST)>syscalls.S
|
||||
area.c
|
||||
atomic.c
|
||||
debug.c
|
||||
driver_settings.c
|
||||
fs_attr.c
|
||||
fs_index.c
|
||||
fs_info.c
|
||||
fs_query.cpp
|
||||
fs_volume.c
|
||||
image.c
|
||||
parsedate.cpp
|
||||
port.c
|
||||
sem.c
|
||||
system_info.c
|
||||
team.c
|
||||
thread.c
|
||||
time.c
|
||||
syscalls.S
|
||||
:
|
||||
-fPIC -DPIC
|
||||
;
|
||||
@ -27,8 +28,4 @@ KernelMergeObject os_main.o :
|
||||
# We need to specify the dependency on the generated syscalls file explicitly.
|
||||
Depends [ FGristFiles syscalls.o ] : <syscalls>syscalls.S.inc ;
|
||||
|
||||
MergeObjectFromObjects kernel_os_main.o :
|
||||
<$(SOURCE_GRIST)>driver_settings.o
|
||||
;
|
||||
|
||||
SubInclude OBOS_TOP src kernel libroot os arch ;
|
||||
|
32
src/kernel/libroot/os/fs_volume.c
Normal file
32
src/kernel/libroot/os/fs_volume.c
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
|
||||
|
||||
#include <fs_volume.h>
|
||||
#include <syscalls.h>
|
||||
|
||||
|
||||
status_t
|
||||
fs_mount_volume(const char *fileSystem, const char *where,
|
||||
const char *device, uint32 flags, const char *parameters)
|
||||
{
|
||||
return _kern_mount(where, device, fileSystem, flags, (void *)parameters);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
fs_unmount_volume(const char *path, uint32 flags)
|
||||
{
|
||||
return _kern_unmount(path/*, flags*/);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
fs_initialize_volume(const char *fileSystem, const char *volumeName,
|
||||
const char *device, uint32 flags, const char *parameters)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user