3 ms·
What are you trying to achieve? If you want to store data for your own application, you'd use something higher-level than a filesystem (e.g. a database); those
by lmm 9y ago
What are you trying to achieve? If you want to store data for your own application, you'd use something higher-level than a filesystem (e.g. a database); those exist and offer sane semantics. The only reason to interact with the OS-level filesystem is to use it to communicate with other programs, in which case the insanity is necessary: if you want to e.g. read files created by other programs, you have to be prepared to deal with malformed names, because other programs will create files with malformed names.
- fiedzia 9y ago> you'd use something higher-level than a filesystem (e.g. a database); those exist and offer sane semantics In many cases they offer the exact same semantics (damn you, mysql). Also they store data in files, and those files have to be named, so... back to square one.
- lmm 9y ago> In many cases they offer the exact same semantics (damn you, mysql). I mean bad databases exist, sure, but the solution to that is to not use those. > Also they store data in files, and those files have to be named, so... back to square one. Not really - the database developers have handled the fsync, buffering and what-have-you for you, so you don't have to deal with them. (And FWIW serious databases generally offer the option of storing data on raw partitions).