2003-02-24 16:14:54 +03:00
|
|
|
/* File System volume functions
|
2005-10-20 17:03:50 +04:00
|
|
|
*
|
|
|
|
* Copyright 2004-2005, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2003-02-24 16:14:54 +03:00
|
|
|
#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
|
|
|
|
|
2005-10-20 17:03:50 +04:00
|
|
|
extern dev_t fs_mount_volume(const char *where, const char *device,
|
2004-11-01 04:01:21 +03:00
|
|
|
const char *filesystem, uint32 flags, const char *parameters);
|
2003-02-24 16:14:54 +03:00
|
|
|
extern status_t fs_unmount_volume(const char *path, uint32 flags);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _FS_VOLUME_H */
|