vfs: check userland buffers before reading them.
[haiku.git] / headers / os / kernel / fs_volume.h
blob3bae387b58ee496df127cfa5f17c22efd3ac3347
1 /*
2 * Copyright 2003-2008, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _FS_VOLUME_H
6 #define _FS_VOLUME_H
8 //! File System volume functions
10 #include <OS.h>
13 /* mount flags */
14 #define B_MOUNT_READ_ONLY 1
15 #define B_MOUNT_VIRTUAL_DEVICE 2
17 /* unmount flags */
18 #define B_FORCE_UNMOUNT 1
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 extern dev_t fs_mount_volume(const char *where, const char *device,
26 const char *filesystem, uint32 flags,
27 const char *parameters);
28 extern status_t fs_unmount_volume(const char *path, uint32 flags);
30 #ifdef __cplusplus
32 #endif
34 #endif /* _FS_VOLUME_H */