3 ms·
Unix files aren't quite an exokernel-style "just securely multiplex the disk" but in some ways they come closer than some other alternatives. No file types, ju
by kragen 7y ago
Unix files aren't quite an exokernel-style "just securely multiplex the disk" but in some ways they come closer than some other alternatives. No file types, just randomly accessible bytes (well, and an execute bit); no multiple streams; no ISAM, just bytes (except that you do have directories); no insertion (but you do have append and truncate).
You could make them more disk-like by making them fixed-size, with the size specified at creation time, and accessing them in blocks rather than in bytes. Would those be an improvement? I tend to think not. Certainly if those were the semantics provided by the kernel you would want userland filesystem processes to provide appendable files.
Copy-on-write file versioning and cross-file, cross-process transactions, on the other hand, could be real pluses. I'd be okay with those being provided by userland processes rather than the kernel, but I'd sure like to have them.