Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

how to allocate all hard disk blocks to a single file !

Aug 16, 2005 3:41PM PDT

i have created a simple file system in linux which allocate disk blocks to any file sequentially with the help of function get_block() which i have written accordingly.

PROBLEM:
i want to allocate all the disk blocks
to a single file

1) what steps i should follow?
2) how should i maintain the i_size field as it is
of 32 bits which shows the size of the file
associated with that inode (only 31 bit are
used so in this case file size can only be
at most 2 GB)

Discussion is locked

- Collapse -
That's easy.
Aug 19, 2005 6:44PM PDT

You stick the hoop-la up the doosey, turn it up-side down , flip it around, crack it open and take the prize you won. If it's gold, you won a trip to Willey-Wanka'a Chocolate Factory.

----**** HOLD ON ****----

I just figured out something. I have no idea what I, or you are talking about.

_________________________

Sorry for wasting mine and your time.

- Collapse -
LOL
Aug 22, 2005 5:13PM PDT

I do know what you're talking about, however I don't (yet) have the programming skills to help you, sorry about that. You should post this in a Linux programming forum, or on usenet (comp.os.lang.c maybe).