Renamed fs_device.h to fs_volume.h, renamed functions from *_device() to
*_volume(). Added a "volumeName" parameter to the fs_initialize_volume() call. Introduced a "flags" field to the fs_unmount_volume() call - I have only defined one flag, B_FORCE_UNMOUNT, right now. But the unmount behaviour should be discussed anyway first (always force unmount?). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2828 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
/* File System device functions
|
|
||||||
**
|
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
|
||||||
*/
|
|
||||||
#ifndef _FS_DEVICE_H
|
|
||||||
#define _FS_DEVICE_H
|
|
||||||
|
|
||||||
#include <OS.h>
|
|
||||||
|
|
||||||
|
|
||||||
/* mount flags */
|
|
||||||
#define B_MOUNT_READ_ONLY 1
|
|
||||||
#define B_MOUNT_VIRTUAL_DEVICE 2
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern status_t fs_mount_device(const char *filesystem, const char *where, const char *device,
|
|
||||||
uint32 flags, const char *parameters);
|
|
||||||
extern status_t fs_unmount_device(const char *path);
|
|
||||||
|
|
||||||
extern status_t fs_initialize_device(const char *filesystem, const char *device, uint32 flags,
|
|
||||||
const char *parameters);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _FS_DEVICE_H */
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/* File System volume functions
|
||||||
|
**
|
||||||
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
|
*/
|
||||||
|
#ifndef _FS_VOLUME_H
|
||||||
|
#define _FS_VOLUME_H
|
||||||
|
|
||||||
|
#include <OS.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* mount flags */
|
||||||
|
#define B_MOUNT_READ_ONLY 1
|
||||||
|
#define B_MOUNT_VIRTUAL_DEVICE 2
|
||||||
|
|
||||||
|
/* unmount flags */
|
||||||
|
#define B_FORCE_UNMOUNT 1
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern status_t fs_mount_volume(const char *filesystem, const char *where,
|
||||||
|
const char *device, uint32 flags, const char *parameters);
|
||||||
|
extern status_t fs_unmount_volume(const char *path, uint32 flags);
|
||||||
|
|
||||||
|
extern status_t fs_initialize_volume(const char *filesystem, const char *volumeName,
|
||||||
|
const char *device, uint32 flags, const char *parameters);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _FS_VOLUME_H */
|
||||||
Reference in New Issue
Block a user