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