Enhance comment about the 3 levels of file system support

Add a little extra explaining how the file systems' supported actions
are determined.
This commit is contained in:
Mike Fleetwood 2018-11-11 13:50:22 +00:00 committed by Curtis Gedak
parent a0f97bfa19
commit dfb7d3e581
1 changed files with 5 additions and 3 deletions

View File

@ -4167,11 +4167,13 @@ void GParted_Core::init_filesystems()
// File system support falls into 3 categories determined by their entry in
// FILESYSTEM_MAP:
// 1) Fully supported file systems have an entry pointing to the instance of
// their derived FileSystem object.
// their derived FileSystem object, which determines and implements their
// supported actions.
// supported_filesystem() -> true
// 2) Basic supported file systems have a NULL pointer entry.
// 2) Basic supported file systems have a NULL pointer entry, with
// find_supported_filesystems() creating a basic set of supported actions.
// supported_filesystem() -> false
// 3) Unsupported file systems have no entry.
// 3) Unsupported file systems have no entry, and no supported actions.
// supported_filesystem() -> false
FILESYSTEM_MAP[FS_UNKNOWN] = NULL;
FILESYSTEM_MAP[FS_OTHER] = NULL;