btrfs-progs: file: Introduce function to read out file content
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 23 Feb 2017 05:53:25 +0000 (13:53 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 16 Mar 2017 16:02:44 +0000 (17:02 +0100)
commit5613d32e75fe6f55e1c41f86389624b46a9ef5a7
treec719630163dae19f89f7bc84b434e67df44ded10
parente8d2163e06e82dcc0f0987006fc08ecea08bc896
btrfs-progs: file: Introduce function to read out file content

Introduce a new function, btrfs_read_file(), to read out data of a file
inode.

This function will iterate through EXTENT_DATA items and handle
inline/prealloc/hole file extents.

Compression is not supported yet.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
ctree.h
file.c