LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-13-2019, 12:14 AM   #1
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Rep: Reputation: 11
ext3/4 file size limit


Hi,
how is the max filesize limit determined in a ext 3/4 partition.
As per wiki, https://en.wikipedia.org/wiki/Ext3#Size_limits
I understand the relationship between filesystem size and the block size. But not really getting the relationsip between block size and the max size limit of an individual file.
 
Old 11-13-2019, 01:30 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The larger a block, the more pointers to indirect blocks fit in a block. With the diagram at https://en.m.wikipedia.org/wiki/Ext2#Inodes, you should be able to do the math.
 
Old 11-13-2019, 11:29 PM   #3
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
Thanks for the reply. But even if the block is not large enough, it can still contain multiple levels to indirect pointers to hold any size of file rite ? It can have indirect, double indirect, triple indirect, so on.....
 
Old 11-13-2019, 11:35 PM   #4
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
Ok, I think there is restriction on the no. of indirect block pointers (1..128) in each level.
So if the block size if large, can the inode hold more block pointers than just 3 as show in the diagram ?
 
Old 11-14-2019, 12:40 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by joemon83 View Post
Ok, I think there is restriction on the no. of indirect block pointers (1..128) in each level.
So if the block size if large, can the inode hold more block pointers than just 3 as show in the diagram ?
The inode size is not configurable, as far as I know. An inode always has the same number of block pointers, 10 direct, 3 indirect according to the diagram.

There are direct blocks, indirect blocks, double indirect blocks and triple indirect blocks. That's it. No quadruple and so on.
 
Old 11-15-2019, 10:36 PM   #6
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
Ok, so I think the summary is..the no. of indirect pointers are fixed.
The larger the block size, the bigger the file size it can support.
 
  


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
Postfix complaining that "message size exceeds limit" even when below limit size psycroptic Linux - Server 12 03-27-2019 10:21 PM
Linux Virtual Memory size; Page size; Resident Data Size; DB2Database; Explanation ANanalanalyzer Linux - Newbie 1 09-28-2018 04:50 PM
dd block size limit on ext3? skubik Linux - Software 3 03-15-2009 01:01 PM
Extend ext2/ext3 file size limit npuetz Linux - General 2 10-12-2004 09:31 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:52 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