Article Title: ReiserFS File System in Linux Server Operating System. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
ReiserFS is a very good file system, and its developers are very energetic. The entire file system is completely designed from scratch. At present, ReiserFS can easily manage file systems of hundreds of GB, which is very important in enterprise applications. The ReiserFS is designed based on object-oriented thinking and consists of the semantic layer and storage layer. The Semantic layer mainly manages object namespaces and defines object interfaces to determine object functions. The storage layer manages disk space. The Semantic layer is associated with the storage layer through keys. The Semantic layer parses the object name to generate a key. The storage layer uses the key to locate the storage space of the object on the disk. The key value is globally unique.
Main semantic layer Interfaces
1) Each file of the file interface has an interface ID, which identifies a method set. This method set contains all interfaces for accessing the ReiserFS file.
2) The property interface ReiserFS implements a new interface that treats each property of a file as a file. The property value is the content of this file, to implement directory-based access to file properties.
3) the hash Interface directory is the ing table from the file name to the file, and the ReiserFS implements this ing table through the B + tree. Because the file name is variable and sometimes the file name will be long, the file name is not suitable as the key value, so the Hash function is introduced to generate the key value.
4) The security interface handles all security checks, usually triggered by the file interface. The following uses the read File as an example: the read method of the file interface will call the read chech method of the security interface to check the security before reading the file data, the latter will call the read method of the property file to read the file property for inspection.
5) The Item interface is mainly used to balance items, including splitting items, evaluating items, overwriting items, and appending items, item deletion, insertion, and search.
6) The key Assignment interface is triggered when a key is assigned to an item. Each item has a key allocation method.
[1] [2] Next page