LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2009, 07:34 PM   #1
icebreaker_81
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 09-08-2009, 08:47 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing free blocks in ext3 sabarishr Programming 1 05-15-2008 04:25 PM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
Need a tool to tell me the last *used* sector of a filesystem jgombos Linux - Software 9 11-11-2006 10:39 PM
mkfs.ext3 nearly stops at about 61% of blocks ejkeebler Linux - Newbie 1 04-27-2006 06:23 PM
Noncontiguous blocks in ext2 filesystem kwisi Red Hat 3 04-27-2005 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration