1 /* 2 * Copyright 2004-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 7 8 //! File System volume functions 9 10 #include <OS.h> 11 12 13 /* mount flags */ 14 #define B_MOUNT_READ_ONLY 1 15 #define B_MOUNT_VIRTUAL_DEVICE 2 16 17 /* unmount flags */ 18 #define B_FORCE_UNMOUNT 1 19 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 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); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* _FS_VOLUME_H */ 35