4 ms·
Is there a reason why mkfs is still in C?
by basementcat 3y ago
Is there a reason why mkfs is still in C?
- matt3210 3y agoC is a better language for this kind of stuff.
- afr0ck 3y ago"better" is subjective.
- worik 3y agoWhy?
- yjftsjthsd-h 3y agoSurely the same exact argument is equally true for mkfs and everything else in the repo? Or is there something special about it?
- rollcat 3y agoI would imagine "nobody got around to rewriting it yet" is the most likely reason? mkfs is a fairly simple procedure on the surface: you take a couple basic parameters, and bang out some bits onto a block device. The on-disk data structures likely come from a header file/crate shared with the kernel. The actual dragons live in the FS driver.