filesystem creation

This is a discussion on filesystem creation within the Linux Programming forums, part of the Platform Specific Boards category; Hello! I'm designing my own little filesystem(system independent) but I have a big problem. I don't know how to calculate ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    15

    filesystem creation

    Hello!

    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?

    Greets,
    Luka

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>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
    Posts
    501
    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:
    http://www.nondot.org/sabre/os/articles/FileSystems/
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    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, 01: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, 04:29 AM
  4. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 09:33 PM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of Cprogramming.com
    Replies: 64
    Last Post: 12-14-2004, 01:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21