#include <file-system.h>
Public Types | |
using | lockable_type = L |
using | value_type = T |
Public Member Functions | |
Constructors & Destructor | |
template<typename ... Args> | |
file_system_lockable (const char *name, block_device &device, lockable_type &locker, Args &&... args) | |
virtual | ~file_system_lockable () override |
Public Member Functions | |
virtual int | vmount (const char *path, unsigned int flags, std::va_list args) override |
Mount file system. | |
virtual int | umount (int unsigned flags=0) override |
Unmount file system. | |
virtual file * | vopen (const char *path, int oflag, std::va_list args) override |
virtual directory * | opendir (const char *dirpath) override |
virtual int | mkdir (const char *path, mode_t mode) override |
virtual int | rmdir (const char *path) override |
virtual void | sync (void) override |
virtual int | chmod (const char *path, mode_t mode) override |
virtual int | stat (const char *path, struct stat *buf) override |
virtual int | truncate (const char *path, off_t length) override |
virtual int | rename (const char *existing, const char *_new) override |
virtual int | unlink (const char *path) override |
virtual int | utime (const char *path, const utimbuf *times) override |
virtual int | statvfs (struct statvfs *buf) override |
value_type & | impl (void) const |
Public Member Functions | |
using | deferred_files_list_t = utils::intrusive_list< file, utils::double_list_links, &file::deferred_links_ > |
using | deferred_directories_list_t = utils::intrusive_list< directory, utils::double_list_links, &directory::deferred_links_ > |
int | mkfs (int options,...) |
virtual int | vmkfs (int options, std::va_list args) |
int | mount (const char *path=nullptr, unsigned int flags=0,...) |
file * | open (const char *path=nullptr, int oflag=0,...) |
const char * | mounted_path (void) |
const char * | name (void) const |
void | add_deferred_file (file *fil) |
void | add_deferred_directory (directory *dir) |
deferred_files_list_t & | deferred_files_list (void) |
deferred_directories_list_t & | deferred_directories_list (void) |
template<typename T > | |
T * | allocate_file (void) |
template<typename T , typename L > | |
T * | allocate_file (L &locker) |
template<typename T > | |
T * | allocate_directory (void) |
template<typename T , typename L > | |
T * | allocate_directory (L &locker) |
template<typename T > | |
void | deallocate_files (void) |
template<typename T > | |
void | deallocate_directories (void) |
block_device & | device (void) const |
static file_system * | identify_mounted (const char **path1, const char **path2=nullptr) |
Definition at line 633 of file file-system.h.
|
inherited |
Definition at line 314 of file file-system.h.
|
inherited |
Definition at line 311 of file file-system.h.
using os::posix::file_system_lockable< T, L >::lockable_type = L |
Definition at line 640 of file file-system.h.
using os::posix::file_system_lockable< T, L >::value_type = T |
Definition at line 639 of file file-system.h.
os::posix::file_system_lockable< T, L >::file_system_lockable | ( | const char * | name, |
block_device & | device, | ||
lockable_type & | locker, | ||
Args &&... | args | ||
) |
Definition at line 1036 of file file-system.h.
|
overridevirtual |
Definition at line 1056 of file file-system.h.
|
inlineinherited |
Definition at line 824 of file file-system.h.
|
inlineinherited |
Definition at line 818 of file file-system.h.
|
inherited |
Definition at line 942 of file file-system.h.
|
inherited |
Definition at line 914 of file file-system.h.
|
inherited |
Definition at line 870 of file file-system.h.
|
inherited |
Definition at line 843 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1151 of file file-system.h.
|
inherited |
Definition at line 970 of file file-system.h.
|
inherited |
Definition at line 897 of file file-system.h.
|
inlineinherited |
Definition at line 836 of file file-system.h.
|
inlineinherited |
Definition at line 830 of file file-system.h.
|
inlineinherited |
Definition at line 812 of file file-system.h.
|
staticinherited |
Definition at line 621 of file file-system.cpp.
file_system_lockable< T, L >::value_type & os::posix::file_system_lockable< T, L >::impl | ( | void | ) | const |
Definition at line 1224 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1119 of file file-system.h.
|
inherited |
Definition at line 470 of file file-system.cpp.
|
inherited |
Definition at line 504 of file file-system.cpp.
|
inherited |
|
inlineinherited |
Definition at line 792 of file file-system.h.
|
inherited |
Definition at line 672 of file file-system.cpp.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1107 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1181 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1129 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1161 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1214 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1139 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1171 of file file-system.h.
|
overridevirtual |
Unmount file system.
flags | File system specific flags. |
0 | if successful, |
-1 | otherwise and the variable errno is set to indicate the error. |
The root file system must be unmounted last, it cannot be unmounted if other mount points exists.
Reimplemented from os::posix::file_system.
Definition at line 1084 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1192 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1203 of file file-system.h.
|
virtualinherited |
Definition at line 482 of file file-system.cpp.
|
overridevirtual |
Mount file system.
path | Path, terminated in / . If / or nullptr, the file system is mounted as root, i.e. the default if no other mount point matches. |
flags | File system specific flags. |
args | Optional arguments. |
0 | if successful, |
-1 | otherwise and the variable errno is set to indicate the error. |
Reimplemented from os::posix::file_system.
Definition at line 1068 of file file-system.h.
|
overridevirtual |
Reimplemented from os::posix::file_system.
Definition at line 1096 of file file-system.h.