180fb0607SAxel Dörfler /* 2*d37f15ebSAxel Dörfler * Copyright 2003-2008, Haiku Inc. All Rights Reserved. 3da6d1a70SAxel Dörfler * Distributed under the terms of the MIT License. 4ee478c02SAxel Dörfler */ 5ee478c02SAxel Dörfler #ifndef _FS_VOLUME_H 6ee478c02SAxel Dörfler #define _FS_VOLUME_H 7ee478c02SAxel Dörfler 880fb0607SAxel Dörfler //! File System volume functions 980fb0607SAxel Dörfler 10ee478c02SAxel Dörfler #include <OS.h> 11ee478c02SAxel Dörfler 12ee478c02SAxel Dörfler 13ee478c02SAxel Dörfler /* mount flags */ 14ee478c02SAxel Dörfler #define B_MOUNT_READ_ONLY 1 15ee478c02SAxel Dörfler #define B_MOUNT_VIRTUAL_DEVICE 2 16ee478c02SAxel Dörfler 17ee478c02SAxel Dörfler /* unmount flags */ 18ee478c02SAxel Dörfler #define B_FORCE_UNMOUNT 1 19ee478c02SAxel Dörfler 20ee478c02SAxel Dörfler 21ee478c02SAxel Dörfler #ifdef __cplusplus 22ee478c02SAxel Dörfler extern "C" { 23ee478c02SAxel Dörfler #endif 24ee478c02SAxel Dörfler 25da6d1a70SAxel Dörfler extern dev_t fs_mount_volume(const char *where, const char *device, 2680fb0607SAxel Dörfler const char *filesystem, uint32 flags, 2780fb0607SAxel Dörfler const char *parameters); 28ee478c02SAxel Dörfler extern status_t fs_unmount_volume(const char *path, uint32 flags); 29ee478c02SAxel Dörfler 30ee478c02SAxel Dörfler #ifdef __cplusplus 31ee478c02SAxel Dörfler } 32ee478c02SAxel Dörfler #endif 33ee478c02SAxel Dörfler 34ee478c02SAxel Dörfler #endif /* _FS_VOLUME_H */ 35