2004-11-30 01:42:01 +03:00
|
|
|
/*
|
2006-05-19 17:05:56 +04:00
|
|
|
* Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2004-11-30 01:42:01 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-10-28 21:00:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
#include <fs_volume.h>
|
|
|
|
#include <syscalls.h>
|
|
|
|
|
2006-05-19 17:05:56 +04:00
|
|
|
#include <string.h>
|
|
|
|
|
2004-10-28 21:00:29 +04:00
|
|
|
|
2005-10-20 17:03:50 +04:00
|
|
|
dev_t
|
2004-11-01 04:03:04 +03:00
|
|
|
fs_mount_volume(const char *where, const char *device,
|
|
|
|
const char *fileSystem, uint32 flags, const char *parameters)
|
2004-10-28 21:00:29 +04:00
|
|
|
{
|
2006-05-19 17:05:56 +04:00
|
|
|
return _kern_mount(where, device, fileSystem, flags, (void *)parameters,
|
|
|
|
parameters ? strlen(parameters) : 0);
|
2004-10-28 21:00:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
status_t
|
|
|
|
fs_unmount_volume(const char *path, uint32 flags)
|
|
|
|
{
|
2004-11-30 01:42:01 +03:00
|
|
|
return _kern_unmount(path, flags);
|
2004-10-28 21:00:29 +04:00
|
|
|
}
|
|
|
|
|