Re: Retrieving

2019-01-25 Thread Zygo Blaxell
On Sun, Jan 13, 2019 at 11:19:04AM +0100, Tobias Reinhard wrote: > I want to read the complete CSUM-Tree from userspace. I tried it via the > ioctl. This is what the code looks like: > > struct btrfs_sv2_args sv2_args; > int fd = open(filename, O_RDONLY); > sv2_args.key.tree_id = BTRFS_CSUM_TREE_O

Re: Retrieving CSUM-Tree

2019-01-25 Thread Hans van Kranenburg
On 1/25/19 9:45 PM, Tobias Reinhard wrote: > Am 25.01.2019 um 19:05 schrieb Hans van Kranenburg: >> On 1/25/19 5:59 PM, Tobias Reinhard wrote: >>> Am 13.01.2019 um 12:02 schrieb Qu Wenruo: On 2019/1/13 下午6:19, Tobias Reinhard wrote: > Hi, > > I want to read the complete CSUM-Tree f

Re: Retrieving CSUM-Tree

2019-01-25 Thread Tobias Reinhard
Am 25.01.2019 um 19:05 schrieb Hans van Kranenburg: On 1/25/19 5:59 PM, Tobias Reinhard wrote: Am 13.01.2019 um 12:02 schrieb Qu Wenruo: On 2019/1/13 下午6:19, Tobias Reinhard wrote: Hi, I want to read the complete CSUM-Tree from userspace. I tried it via the ioctl. This is what the code looks

Re: Retrieving CSUM-Tree

2019-01-25 Thread Hans van Kranenburg
On 1/25/19 5:59 PM, Tobias Reinhard wrote: > Am 13.01.2019 um 12:02 schrieb Qu Wenruo: >> >> On 2019/1/13 下午6:19, Tobias Reinhard wrote: >>> Hi, >>> >>> I want to read the complete CSUM-Tree from userspace. I tried it via the >>> ioctl. This is what the code looks like: >>> >>> struct btrfs_sv2_arg

Re: Retrieving CSUM-Tree

2019-01-25 Thread Tobias Reinhard
Am 13.01.2019 um 12:02 schrieb Qu Wenruo: On 2019/1/13 下午6:19, Tobias Reinhard wrote: Hi, I want to read the complete CSUM-Tree from userspace. I tried it via the ioctl. This is what the code looks like: struct btrfs_sv2_args sv2_args; int fd = open(filename, O_RDONLY); sv2_args.key.tree_id =

Re: Retrieving

2019-01-13 Thread Qu Wenruo
On 2019/1/13 下午6:19, Tobias Reinhard wrote: > Hi, > > I want to read the complete CSUM-Tree from userspace. I tried it via the > ioctl. This is what the code looks like: > > struct btrfs_sv2_args sv2_args; > int fd = open(filename, O_RDONLY); > sv2_args.key.tree_id = BTRFS_CSUM_TREE_OBJECTID; >

Retrieving

2019-01-13 Thread Tobias Reinhard
Hi, I want to read the complete CSUM-Tree from userspace. I tried it via the ioctl. This is what the code looks like: struct btrfs_sv2_args sv2_args; int fd = open(filename, O_RDONLY); sv2_args.key.tree_id = BTRFS_CSUM_TREE_OBJECTID; sv2_args.key.min_objectid = 0; sv2_args.key.max_objectid = -