Displaying 5 results from an estimated 5 matches for "search_tree".
Did you mean:
search_term
2015 Dec 27
1
[PATCH v2] btrfs: Fix logical to physical block address mapping
...rtions(+), 16 deletions(-)
>
> diff --git a/core/fs/btrfs/btrfs.c b/core/fs/btrfs/btrfs.c
> index 53e1105..ca611db 100644
> --- a/core/fs/btrfs/btrfs.c
> +++ b/core/fs/btrfs/btrfs.c
> @@ -371,16 +386,21 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
> search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
> do {
> do {
> + /* skip information about underlying block
> + * devices.
> + */
> +...
2015 Dec 24
4
[PATCH] btrfs: Fix logical to physical block address mapping
...key;
+ struct btrfs_disk_key ignore_key;
struct btrfs_chunk *chunk;
- struct btrfs_chunk_map_item item;
struct btrfs_path path;
if (!(bfs->sb.flags & BTRFS_SUPER_FLAG_METADUMP)) {
@@ -370,17 +381,24 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
clear_path(&path);
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
+ ignore_key.objectid = BTRFS_DEV_ITEMS_OBJECTID;
+ ignore_key.type = BTRFS_DEV_ITEM_KEY;
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+...
2015 Dec 24
0
[PATCH v2] btrfs: Fix logical to physical block address mapping
...key.objectid = BTRFS_DEV_ITEMS_OBJECTID;
+ ignore_key.type = BTRFS_DEV_ITEM_KEY;
+
/* read chunk from chunk_tree */
search_key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;
search_key.type = BTRFS_CHUNK_ITEM_KEY;
@@ -371,16 +386,21 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+ &path.item.key))
+ goto skip_dev_item;
if (btrfs_comp_keys_type(&search_key,...
2015 Dec 27
0
[PATCH v3] btrfs: Fix logical to physical block address mapping
...key.objectid = BTRFS_DEV_ITEMS_OBJECTID;
+ ignore_key.type = BTRFS_DEV_ITEM_KEY;
+
/* read chunk from chunk_tree */
search_key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;
search_key.type = BTRFS_CHUNK_ITEM_KEY;
@@ -371,16 +386,18 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+ &path.item.key))
+ continue;
if (btrfs_comp_keys_type(&search_key,
- &a...
2013 Aug 16
4
How btrfs resize should work ?
Hi,
I am working on system storage manager (ssm) trying to implement
btrfs resize correctly, however I have some troubles with it.
# mkfs.btrfs /dev/sda /dev/sdb
# mount /dev/sda /mnt/test
# btrfs filesystem show
failed to open /dev/sr0: No medium found
Label: none uuid: 8dce5578-a2bc-416e-96fd-16a2f4f770b7
Total devices 2 FS bytes used 28.00KB
devid 2 size 50.00GB used 2.01GB path