Better than POSIX?
Posted Mar 17, 2009 18:03 UTC (Tue) by quotemstr
In reply to: Better than POSIX?
Parent article: Better than POSIX?
For example, I'm pretty sure one could put part of sqlite's atomic commit in the kernel.
Your ideas (like most ideas) have been brought up in the past. Down that road you propose lay record-oriented filesystems
. There's a reason every major filesystem today works with generic files: the alternative is absolutely horrible.
The other argument against trying to solve this in the kernel is that very few programs use the raw libc/POSIX interface; they're using the standard C++ library, Java, Python, Qt, GLib/Gio etc. So any changes have to be made at those levels.
There interfaces are as generic as the POSIX ones, and putting data integrity logic there will not alleviate any of the concerns that have already been raised. If you want to make file-format-specific optimizations, you have to modify file-format-specific libraries --- and most applications just roll their own. Fixing the problem in the kernel solves all these issues elegantly, and at once.
to post comments)