

That means that some data can be stored in a Linux® environment and some can be stored in a Windows unit.īlock storage is often configured to decouple the data from the user’s environment and spread it across multiple environments that can better serve the data. Each block of data is given a unique identifier, which allows a storage system to place the smaller pieces of data wherever is most convenient. File-based storage systems must scale out by adding more systems, rather than scale up by adding more capacity.īlock storage chops data into blocks-get it?-and stores them as separate pieces. The problem is, just like with your filing cabinet, that virtual drawer can only open so far. It’s great for storing an array of complex files and is fairly fast for users to navigate.

File storage has broad capabilities and can store just about anything. Any time you access documents saved in files on your personal computer, you use file storage. It is the oldest and most widely used data storage system for direct and network-attached storage systems, and it’s one that you’ve probably been using for decades. This is where the term hierarchical storage comes from, and this is file storage. Every document is arranged in some type of logical hierarchy-by cabinet, by drawer, by folder, then by piece of paper. It’s like a library card catalog for data files.

(Beware-It can be a long, winding path.) Data stored in files is organized and retrieved using a limited amount of metadata that tells the computer exactly where the file itself is kept. When you need to access that piece of data, your computer needs to know the path to find it. Note that you can place this file anywhere that supports class autoloading in Moodle, you'll just need to adjust the $CFG var in the next step appropriately.File storage, also called file-level or file-based storage, is exactly what you think it might be: Data is stored as a single piece of information inside a folder, just like you’d organize pieces of paper inside a manila folder. dirpermissions = $CFG -> directorypermissions $this -> filepermissions = $CFG -> filepermissions $this -> cachedir = make_request_directory () $this -> check_root_files_exist () } protected function check_root_files_exist () The remote file is seen as canonical and this system is *not* designed to be used to cater to a split brain solution where some files are present in one place, and some files are present in another.Īll files accessed via the standard File Storage API is processed using this API, however the existing tempdir, cachedir, and localcachedir parameters remain separate.Īll file system implementations must extend the Please note that the file *must* exist remotely and a local file is *optional*. These are easy to setup and configure, and allow for greater scalability which does not depends so heavily upon traditional network file systems. Since Moodle 3.3 it is possible to use alternative file systems, including remote file systems. The standard file system implementation uses the Moodle filedir, which is a locally available directory on disk, and which can be shared between clustered servers via network file systems such as NFS. Moodle ships with a file system API which enables the internal Moodle File Storage system to set, and retrieve files, and file content. 2.1.3 Distinction between local and remote file paths.
