Figured I would write this here, but I would scratch the concept of a file system and replace it with a database.
CREATE TABLE filesystem(inode AS BIGINT UNIQUE NOT NULL PRIMARY KEY, is_dir AS BIT(1) NOT NULL, name AS VARCHAR(4096) UNIQUE NOT NULL, in_this_dir_inode AS INT NOT NULL, bloblist_ptr AS INT NOT NULL, metadata_ptr AS BIGINT),
CREATE TABLE bloblist(blob_id AS INT UNIQUE NOT NULL, onwer_inode_ptr AS INT, thisblob AS LONGBLOB, prev_blob_ptr AS INT NOT NULL, next_blob_ptr AS INT NOT NULL)
CREATE TABLE file_metadata(metadata_record_id AS BIGINT UNIQUE NOT NULL, created_at AS DATETIME NOT NULL, last_accessed at AS DATETIME, last_modified_at AS DATETIME, owner_uid AS INT NOT NULL, owner_gid AS INT NOT NULL, mode AS BIT(4) NOT NULL)
or similar.The latter has a single level storage system where disks and memory are part of single address space, and a variant of DB2 database is part of core OS thus making it common to use SQL for many things people wouldn't expect.
If an operationg system was built today for tomorrow it would certainly be built on/as a database.