File 0001-btrfs-progs-inspect-increase-logical-resolve-default.patch of Package btrfsprogs.23274

From 2cbddaba38d0d9b21ca563d8507ccad81f0fb96f Mon Sep 17 00:00:00 2001
From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Date: Tue, 26 Nov 2019 22:55:08 -0500
Subject: [PATCH] btrfs-progs: inspect: increase logical-resolve default buffer
 size to 64K

Filesystems with nontrivial snapshots or dedupe will easily overflow
a 4K buffer.  Bump the size up to the largest size supported by the
V1 ioctl.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Signed-off-by: David Sterba <dsterba@suse.com>
---
 cmds-inspect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/cmds-inspect.c
+++ b/cmds-inspect.c
@@ -147,7 +147,7 @@ static int cmd_inspect_logical_resolve(i
 	int bytes_left;
 	struct btrfs_ioctl_logical_ino_args loi;
 	struct btrfs_data_container *inodes;
-	u64 size = 4096;
+	u64 size = SZ_64K;
 	char full_path[PATH_MAX];
 	char *path_ptr;
 	DIR *dirstream = NULL;
openSUSE Build Service is sponsored by