Thread: filesystem creation

  1. #1
    Registered User
    Join Date
    Oct 2004

    filesystem creation


    I'm designing my own little filesystem(system independent) but I have a big problem. I don't know how to calculate the maximum number of inodes and blocks on the filesystem. Becose of that, I cannot make my format tool.

    Does someone know that?


  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    >>I don't know how to calculate the maximum number of inodes
    There is a fixed amount of space for inodes but there are secondary to n-ary levels for additional inodes should more be required. So the maximum number of inodes is limited by the space on the disk available to store them.

    >>blocks on the filesystem.
    amountOfFreeSpace / blockSize; (?)

  3. #3
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    I haven't really messed with making my own file system yet, and I am not good with messing with the kernel interface to it yet. I have been learning, a good resource for learning about files systems, mainly ext2:
    Help populate a c/c++ help irc channel
    server: irc://
    channel: #c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Filesystem questions
    By Drogin in forum Tech Board
    Replies: 4
    Last Post: 04-13-2009, 11:59 AM
  2. Replies: 2
    Last Post: 12-16-2008, 02:43 PM
  3. Need to know the filesystem on /dev/sda1
    By amit_sahrawat in forum Linux Programming
    Replies: 7
    Last Post: 12-13-2007, 05:29 AM
  4. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 10:33 PM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of
    Replies: 64
    Last Post: 12-14-2004, 02:24 PM