summaryrefslogtreecommitdiff
path: root/debug-tree.c
Commit message (Collapse)AuthorAge
* btrfs-progs: cast u64 to long long to avoid printf warningsAnton Blanchard2011-10-25
| | | | | | | | | | | | When building on ppc64 I hit a number of warnings in printf: btrfs-map-logical.c:69: error: format ‘%Lu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’ Fix them. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
* Fix unused-but-set errors in gcc-4.6Chris Ball2011-10-25
| | | | | | | | | | | | | | | | gcc-4.6 (as shipped in Fedora) turns on -Wunused-but-set-variable by default, which breaks the build when combined with -Wall, e.g.: debug-tree.c: In function ‘print_extent_leaf’: debug-tree.c:45:13: error: variable ‘last_len’ set but not used [-Werror=unused-but-set-variable] debug-tree.c:44:13: error: variable ‘last’ set but not used [-Werror=unused-but-set-variable] debug-tree.c:41:21: error: variable ‘item’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors This patch fixes the errors by removing the unused variables. Signed-off-by: Chris Ball <cjb@laptop.org> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
* btrfs-progs: fix wrong extent buffer size when reading tree blockMiao Xie2011-10-25
| | | | | | | | the root extent buffer of a tree may not be a leaf, so we must get the right size by its level when reading it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* btrfs-debug-tree: add -d option to print only the device mappingChris Mason2010-10-06
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: add btrfs-debug-tree -b <block number> to print a single blockChris Mason2010-04-06
|
* Mixed back reference (FORWARD ROLLING FORMAT CHANGE)Chris Mason2009-06-08
| | | | | | | | | | | | | | | | | This commit introduces a new kind of back reference for btrfs metadata. Once a filesystem has been mounted with this commit, IT WILL NO LONGER BE MOUNTABLE BY OLDER KERNELS. The new back ref provides information about pointer's key, level and in which tree the pointer lives. This information allow us to find the pointer by searching the tree. The shortcoming of the new back ref is that it only works for pointers in tree blocks referenced by their owner trees. This is mostly a problem for snapshots, where resolving one of these fuzzy back references would be O(number_of_snapshots) and quite slow. The solution used here is to use the fuzzy back references in the common case where a given tree block is only referenced by one root, and use the full back references when multiple roots have a reference
* Update btrfs-debug-tree to output more readable strings.Shen Feng2009-06-03
| | | | | | | | | | output objectid in btrfs_disk_key with human readable strings. Other updates are included for more readable output. Thanks Fengguang's fix to this patch. Signed-off-by: Shen Feng <shen@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add scan of the btrfs log tree to btrfs-debug-treeChris Mason2009-04-15
|
* debug-tree output tree/key type instead of idShen Feng2009-01-07
| | | | | | | This makes the tree name and key type output more readable. Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
* Remove offset field from struct btrfs_extent_refYan Zheng2008-10-09
| | | | | | | | | | | | | | The offset field in struct btrfs_extent_ref records the position inside file that file extent is referenced by. In the new back reference system, tree leaves holding reference to file extent are recorded explicitly. We can quickly scan these tree leaves, so the offset field is not required. This patch also makes the back reference system check the objectid when extents are being deleted Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
* Full back reference supportZheng Yan2008-09-23
| | | | | | | | This patch makes the back reference system to explicit record the location of parent node for all types of extents. The location of parent node is placed into the offset field of backref key. Every time a tree block is balanced, the back references for the affected lower level extents are updated.
* Print the version string in a few programsChris Mason2008-07-24
|
* Pass down the expected generation number when reading tree blocksChris Mason2008-05-12
|
* Add a readonly flag open_ctree to force RO opensChris Mason2008-05-05
|
* Add support for multiple devices per filesystemChris Mason2008-03-24
|
* Add debug-tree -e to print all allocated extents, and show-blocks to graph themChris Mason2008-03-03
|
* Update btrfs-progs to match kernel sourcesYan2008-01-04
|
* Switch to byte granular allocationsChris Mason2007-10-15
|
* Allow large blocksChris Mason2007-10-15
|
* add GPLv2Chris Mason2007-06-12
|
* printf cleanupsChris Mason2007-06-12
|
* remove device treeChris Mason2007-06-09
|
* early support for multiple devicesChris Mason2007-04-11
|
* drop the inode map treeChris Mason2007-04-10
|
* btrfsctlChris Mason2007-04-10
|
* uuidsChris Mason2007-04-05
|
* Better block record keeping, real mkfsChris Mason2007-03-20
|
* Add inode map, and the start of file extent itemsChris Mason2007-03-20
|
* transaction handles everywhereChris Mason2007-03-16
|
* Change the super to point to a tree of trees to enable persistent snapshotsChris Mason2007-03-13
|
* rename funcs and structs to btrfsChris Mason2007-03-13
|
* Add sparse checking to MakefileChris Mason2007-02-28
|
* Add fsx-style randomized tree testerChris Mason2007-02-26
Add debug-tree command to print the tree Add extent-tree.c to the repo Comment ctree.h