Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::filesystem::format::Fat32FileSystem Class Referencefinal

Handles the FAT32 filesystem operations. More...

#include <fat32.h>

Inheritance diagram for MaxOS::filesystem::format::Fat32FileSystem:
MaxOS::filesystem::FileSystem

Public Member Functions

 Fat32FileSystem (drivers::disk::Disk *disk, uint32_t partition_offset)
 Construct a new Fat32 File System object.
 
- 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)
 
Directoryroot_directory ()
 Get the directory at "/".
 
Directoryget_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
Directorym_root_directory = nullptr
 The fist directory in the file system (not be confused with the system root)
 

Detailed Description

Handles the FAT32 filesystem operations.

Definition at line 286 of file fat32.h.

Constructor & Destructor Documentation

◆ Fat32FileSystem()

Fat32FileSystem::Fat32FileSystem ( drivers::disk::Disk disk,
uint32_t  partition_offset 
)

Construct a new Fat32 File System object.

Parameters
diskThe disk to mount the filesystem from
partition_offsetThe partition offset on the disk

Definition at line 989 of file fat32.cpp.

990 : m_volume(disk, partition_offset) {
991
992 // Create the root directory
993 m_root_directory = new Fat32Directory(&m_volume, m_volume.bpb.root_cluster, "/");
995
996}
virtual void read_from_disk()
read the directory from the disk
Directory * m_root_directory
The fist directory in the file system (not be confused with the system root)
Definition filesystem.h:98
Handles the directory operations on the FAT32 filesystem.
Definition fat32.h:235
bpb32_t bpb
The BIOS Parameter Block for the FAT32 volume.
Definition fat32.h:176

References MaxOS::filesystem::format::Fat32Volume::bpb, MaxOS::filesystem::FileSystem::m_root_directory, and MaxOS::filesystem::Directory::read_from_disk().


The documentation for this class was generated from the following files: