Posted Jul 23, 2009 11:42 UTC (Thu) by MisterIO (guest, #36192)
Parent article: A short history of btrfs
So it's not exact to say(like it's said in the wikipedia page http://en.wikipedia.org/wiki/Btrfs) that the max number of files is 2^64, because on that space(objectid) you need to put metadata info too, am I right? Isn't objectid an upperbound on the number of inodes?
Posted Jul 23, 2009 13:12 UTC (Thu) by masoncl (subscriber, #47138)
[Link]
Thanks for writing this up Val!
Almost all of the metadata goes in under the objectid of a given file or directory. There are
exceptions like file data checksums and the records about which extents are allocated, but they
go into their own dedicated btree.
The end result is that almost all of the 2^64 space can be used for inodes. There are a few
special inodes, like one that is used to prevent orphan inodes after a crash, so we carve out the
last 256 inode numbers for specialized metadata. We also carve out the first 256 inode numbers
for special use by the backref code.
A short history of btrfs
Posted Jul 23, 2009 13:17 UTC (Thu) by MisterIO (guest, #36192)
[Link]