4

I'm currently writing a hobby file-system for fun. I was wondering if anyone knows why or where I could get information on the design philosophy of ext2.

Specifically, I was wondering why each inode has only 12 direct blocks? Why not 13, or 100?

  • 3
    In order to fit a struct ext2_inode in 128 bytes? – mosvy Apr 17 at 23:16
  • Oh, right... that's a pretty good proposition, I guess you could get rid of some reserved fields but fitting it into 128 bytes makes a lot of sense. – Joe Thomas Apr 18 at 1:59
  • As for close votes: this question explicitly asks for documentation. U&L is probably the best place to put this question (maybe with the exception of retrocomputing SE). – peterph Apr 21 at 9:46
  • To add to what @peterph said, that Close reason was created specifically for non-canon learning resources such as tutorials, how-tos, etc. as opposed to official documentation. In this case, the questioner has not explicitly asked for official documentation but I would say that it’s implicit. While it’s possible that there’s no official reason, meaning answers could be “primarily opinion-based”, that’s a wholly different Close reason. See unix.meta.stackexchange.com/q/2642/22812 and unix.meta.stackexchange.com/q/3892/22812 – Anthony Geoghegan Apr 23 at 14:44
  • By the way, Joe, be careful with writing hobby systems for fun: groups.google.com/forum/#!msg/comp.os.minix/dlNtH7RRrGA/… – Anthony Geoghegan Apr 23 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.