On Tue, Jun 12, 2012 at 06:53:00AM +0000, Santosh Hosamani wrote: > > Hi btrfs folks, > I am working on btrfs filesystem on how it manages the free > space. And found out btrfs maintain a ctree which manages the physical > location of the chunks and stripes of the filesystem. > Btrfs-debug-tree also gives the information on the chunk tree > > I created btrfs on single device and two device.I have attached the output of > both on running btrfs-debug-tree. > For single device sum of all the length in the chunks will add upto the total > used bytes which is expected behavior. > > But for two devices sum of all lengths in the chunks does not add to the > total bytes .Am I missing something . > Also I notice that for the second device the superblock location 0x10000 is > not considered as used . > > I would be really grateful if you folks can answer my query. > > I hav run these tests on SLES11-sp2-x86 > Kernel 3.0.13.0.27-default
Your observation about non-excluded superblock is correct and this is a known bug fixed in following maintenance update of SLES. If you're using a distribution kernel, please file a bug at the distro bug tracker (http://bugzilla.novell.com). The SLES kernel receives regular backports of btrfs fixes and features from upstream, but keeps the version at 3.0.x which confuses the upstream community ready to point you to the latest kernel released. thanks, david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html