public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* Use case for EXT4_INODE_HUGE_FILE / EXT4_HUGE_FILE_FL?
@ 2020-04-06 22:45 Josh Triplett
  2020-04-07  3:30 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2020-04-06 22:45 UTC (permalink / raw)
  To: linux-ext4

Under what circumstances can an inode ever end up with EXT4_HUGE_FILE_FL
set? (Other than in an artificially constructed filesystem.)

As far as I can tell, extents don't allow a file to get bigger than
2**32 filesystem blocks (because they store block offsets in an le32),
which with the maximum filesystem block size of 65536 would be 2**48
bytes.

That's lower than the file size limit that EXT4_HUGE_FILE_FL seems to
exist to surpass; even without EXT4_HUGE_FILE_FL, the 48-bit "block"
count in the inode would allow a file to have 2**48 512-byte "blocks" in
it, or 2**57 bytes.

Was EXT4_HUGE_FILE_FL just added for future extensibility, in case a
future file storage mechanism allows storing files bigger than 2**32
blocks?

How extensively has it been tested?

(Related: are there any plans or discussions regarding a future extent
format? Not necessarily just for that reason, but there are other limits
in the existing extent format, such as the limit of 32768 contiguous
blocks in one extent.)

Thanks,
Josh Triplett

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-07  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 22:45 Use case for EXT4_INODE_HUGE_FILE / EXT4_HUGE_FILE_FL? Josh Triplett
2020-04-07  3:30 ` Theodore Y. Ts'o
2020-04-07  8:09   ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox