xref: /haiku/headers/private/fs_shell/fssh_fs_volume.h (revision a38a92c955f46ea3dbd3929ad1398c2b418e80cb)
1*a38a92c9SIngo Weinhold /* File System volume functions
2*a38a92c9SIngo Weinhold  *
3*a38a92c9SIngo Weinhold  * Copyright 2004-2005, Haiku Inc. All Rights Reserved.
4*a38a92c9SIngo Weinhold  * Distributed under the terms of the MIT License.
5*a38a92c9SIngo Weinhold  */
6*a38a92c9SIngo Weinhold #ifndef _FSSH_FS_VOLUME_H
7*a38a92c9SIngo Weinhold #define	_FSSH_FS_VOLUME_H
8*a38a92c9SIngo Weinhold 
9*a38a92c9SIngo Weinhold #include "fssh_os.h"
10*a38a92c9SIngo Weinhold 
11*a38a92c9SIngo Weinhold 
12*a38a92c9SIngo Weinhold /* mount flags */
13*a38a92c9SIngo Weinhold #define FSSH_B_MOUNT_READ_ONLY		1
14*a38a92c9SIngo Weinhold #define FSSH_B_MOUNT_VIRTUAL_DEVICE	2
15*a38a92c9SIngo Weinhold 
16*a38a92c9SIngo Weinhold /* unmount flags */
17*a38a92c9SIngo Weinhold #define FSSH_B_FORCE_UNMOUNT		1
18*a38a92c9SIngo Weinhold 
19*a38a92c9SIngo Weinhold 
20*a38a92c9SIngo Weinhold #ifdef  __cplusplus
21*a38a92c9SIngo Weinhold extern "C" {
22*a38a92c9SIngo Weinhold #endif
23*a38a92c9SIngo Weinhold 
24*a38a92c9SIngo Weinhold extern fssh_dev_t		fssh_fs_mount_volume(const char *where,
25*a38a92c9SIngo Weinhold 							const char *device, const char *filesystem,
26*a38a92c9SIngo Weinhold 							uint32_t flags, const char *parameters);
27*a38a92c9SIngo Weinhold extern fssh_status_t	fssh_fs_unmount_volume(const char *path,
28*a38a92c9SIngo Weinhold 							uint32_t flags);
29*a38a92c9SIngo Weinhold 
30*a38a92c9SIngo Weinhold #ifdef  __cplusplus
31*a38a92c9SIngo Weinhold }
32*a38a92c9SIngo Weinhold #endif
33*a38a92c9SIngo Weinhold 
34*a38a92c9SIngo Weinhold #endif	/* _FSSH_FS_VOLUME_H */
35