Unix Programming - how to calculate max file / partition size

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2007 > how to calculate max file / partition size





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to calculate max file / partition size
Jason Maur

2007-11-25, 1:26 pm

Consider the following:

- 12 direct block pointers
- a single, double, and a triple indirect point in each inode
- system block size: 8K
- disk sector size: 8K
- disk block pointer: 32 bits (8 bits for the physical disk
and 24 bits for the physical block)

What is the calculation to find out the max file size and the
max partition size given these numbers?

What about calculating the number of disk accesses required for
accessing a random byte of a file? How many disk accesses
to access the byte at position 25,321,456, for example.

Thanks,

-Jason

Måns Rullgård

2007-11-25, 1:26 pm

Jason Maur <jmaumau@yahoo.com> writes:

> Consider the following:
>
> - 12 direct block pointers
> - a single, double, and a triple indirect point in each inode
> - system block size: 8K
> - disk sector size: 8K
> - disk block pointer: 32 bits (8 bits for the physical disk
> and 24 bits for the physical block)
>
> What is the calculation to find out the max file size and the
> max partition size given these numbers?
>
> What about calculating the number of disk accesses required for
> accessing a random byte of a file? How many disk accesses
> to access the byte at position 25,321,456, for example.


If nothing else, the outrageous disk sector size is a clear giveaway
that this is a homework question. I suggest you read your textbook
again.

--
Måns Rullgård
mans@mansr.com
Jason Maur

2007-11-25, 1:26 pm

Måns Rullgård wrote:
>
> If nothing else, the outrageous disk sector size is a clear giveaway
> that this is a homework question. I suggest you read your textbook
> again.
>


MÃ¥ns,

You're both right and wrong: it's a homework question,
but it's not my homework. I'm trying to help a girl out
and maybe get in her pants ;)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com