Internal
Protected
Optional
Internal
_disableWhether the sync cache should be disabled. Only affects async things.
Protected
storeProtected
_findINodeHelper function for findINode.
The parent directory of the file we are attempting to find.
The filename of the inode we are attempting to find, minus the parent.
string The ID of the file's inode in the file system.
Protected
addCreates a new node under a random ID. Retries before giving up in the exceedingly unlikely chance that we try to reuse a random ino.
The ino that the data was stored under.
Protected
commitCommits a new file (well, a FILE or a DIRECTORY) to the file system with mode
.
Note: This will commit the transaction.
The path to the new file.
The type of the new file.
The mode to create the new file with.
The data to store at the file's data node.
The Inode for the new file.
Protected
findINodeFinds the Inode of path
.
The path to look up.
The Inode of the path p.
Protected
getProtected
getINodeGiven the ID of a node, retrieves the corresponding Inode.
The transaction to use.
The ID to look up.
The corresponding path to the file (used for error messages).
Get metadata about the current file system
Protected
removeUpdated the inode and data node at path
Updated the inode and data node at path
A file system which uses a key-value store.
We use a unique ID for each node in the file system. The root node has a fixed ID.
Todo
Introduce Node ID caching.
Todo
Check modes.