xref: /haiku/headers/os/kernel/fs_volume.h (revision 24159a0c7d6d6dcba9f2a0c1a7c08d2c8167f21b)
1 /* File System volume functions
2  *
3  * Copyright 2004-2005, Haiku Inc. All Rights Reserved.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _FS_VOLUME_H
7 #define	_FS_VOLUME_H
8 
9 #include <OS.h>
10 
11 
12 /* mount flags */
13 #define B_MOUNT_READ_ONLY		1
14 #define B_MOUNT_VIRTUAL_DEVICE	2
15 
16 /* unmount flags */
17 #define B_FORCE_UNMOUNT			1
18 
19 
20 #ifdef  __cplusplus
21 extern "C" {
22 #endif
23 
24 extern dev_t	fs_mount_volume(const char *where, const char *device,
25 					const char *filesystem, uint32 flags, const char *parameters);
26 extern status_t	fs_unmount_volume(const char *path, uint32 flags);
27 
28 #ifdef  __cplusplus
29 }
30 #endif
31 
32 #endif	/* _FS_VOLUME_H */
33