3 ms·
Tandem Computers actually did implement files on top of a database. Their OS didn't have files. Their system was a replicated database running directly on the
by Animats 12y ago
Tandem Computers actually did implement files on top of a database.
Their OS didn't have files. Their system was a replicated database running directly on the hard disk, with no file system.
There's something to be said for this. Your files get ACID properties. If we were serious about file integrity, we'd have file systems that worked like this:
- Unit files. The unit of data is the entire file. Files are written once, and when closed successfully, the file transaction commits and others can read the file. Any update replaces the entire file as an atomic operation. (Many applications need this, and try to do it with various move and rename operations, usually leaving files behind if things fail at the wrong moment.)
- Log files. You can only add at the end. Writes are atomic. In the event of a crash, the file is valid up to some recently completed write. (On many systems, log files can tail off into junk or contain truncated records.)
- Temporary files. When the process or process group exits, they're gone. Random access is OK. (You shouldn't have to clean up junk temporary files.)
- Managed files. These support a database or something with complex structure. There are extra I/O functions for locking, flushing and being sure a write has been committed to disk.
That covers most of the use cases for files. There have been file systems which did some of this, but not in recent years.
- Alupis 12y agoOS/400 systems (by IBM, also called AS/400, System i, iSeries, iOS, etc)are a database operating system, there are no files, only "libraries". The entire thing sits on top of a customized DB2 database.