LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   EXT3 filesystem blocks and Sector numbers (https://www.linuxquestions.org/questions/linux-software-2/ext3-filesystem-blocks-and-sector-numbers-753689/)

icebreaker_81 09-08-2009 07:34 PM

EXT3 filesystem blocks and Sector numbers
 
In EXT3, we have files using blocks. Depending on block size, each block consists of more than 1 sectors. If a file using a block has a filesize which is less than a sector, then does the rest of the block remain empty.

thanks

chrism01 09-08-2009 08:47 PM

The filesystem allocates (at least), the min num of blocks reqd to store the requested data.
If the reqd data is eg 2049 bytes and you had 1024 byte blocks, then the system will allocate 3 blocks.
(2049 = 1024 + 1024 + 1)
Actually, there will be some metadata overhead ie inode data:

http://en.wikipedia.org/wiki/Ext3
http://en.wikipedia.org/wiki/Inode
http://en.wikipedia.org/wiki/Sparse_file


All times are GMT -5. The time now is 04:10 PM.