[Btrfs-devel] [PATCH 1/4] btrfs-progs changes for xattr support

Zach Brown zach.brown at oracle.com
Thu Nov 8 09:55:10 PST 2007


> @@ -87,6 +86,10 @@ void btrfs_print_leaf(struct btrfs_root 
>  			print_dir_item(l->items + i, di);
>  			break;
>  		case BTRFS_DIR_INDEX_KEY:
> +			di = btrfs_item_ptr(l, i, struct btrfs_dir_item);
> +			print_dir_item(l->items + i, di);
> +			break;
> +		case BTRFS_XATTR_ITEM_KEY:
>  			di = btrfs_item_ptr(l, i, struct btrfs_dir_item);
>  			print_dir_item(l->items + i, di);
>  			break;

It seems like that should just add the new 'case BTRFS_XATTR_ITEM_KEY:'
to use the existing code for the DIR_INDEX instead of duplicating the code.

- z



More information about the Btrfs-devel mailing list