![]() |
Max OS 0.3
|
Handles the ext2 filesystem operations. More...
#include <ext2.h>
Public Member Functions | |
| Ext2FileSystem (drivers::disk::Disk *disk, uint32_t partition_offset) | |
| Construct a new Ext2 File System object. | |
| ~Ext2FileSystem () final | |
| Destroy the Ext2 File System object and free the root directory. | |
Public Member Functions inherited from MaxOS::filesystem::FileSystem | |
| virtual | ~FileSystem () |
| Destructor for FileSystem, frees the root directory (Which in turn frees all files and subdirectories) | |
| Directory * | root_directory () |
| Get the directory at "/". | |
| Directory * | get_directory (const string &path) |
| Get the directory at a given path. | |
| bool | exists (const string &path) |
| Check if a path exists on the filesystem. | |
Additional Inherited Members | |
Protected Attributes inherited from MaxOS::filesystem::FileSystem | |
| Directory * | m_root_directory = nullptr |
| The fist directory in the file system (not be confused with the system root) | |
| Ext2FileSystem::Ext2FileSystem | ( | drivers::disk::Disk * | disk, |
| uint32_t | partition_offset | ||
| ) |
Construct a new Ext2 File System object.
| disk | The disk the filesystem exists on |
| partition_offset | The partition offset on the disk (in sectors) |
Definition at line 1173 of file ext2.cpp.
References MaxOS::filesystem::FileSystem::m_root_directory, and MaxOS::filesystem::Directory::read_from_disk().
|
final |
Destroy the Ext2 File System object and free the root directory.
Definition at line 1185 of file ext2.cpp.
References MaxOS::filesystem::FileSystem::m_root_directory.