summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2020-02-28 16:04:19 +0300
committerDavid Sterba <dsterba@suse.com>2020-03-23 19:01:54 +0300
commit05a5a7621ce66c142e081ffc24dd6ade6e912061 (patch)
treeb325bd212c891ed21aa772ab6432e0870351f408 /.gitignore
parenta61e1e0df9f321955e3b03b7432e6d65f9f1a223 (diff)
downloadlinux-05a5a7621ce66c142e081ffc24dd6ade6e912061.tar.xz
Btrfs: implement full reflink support for inline extents
There are a few cases where we don't allow cloning an inline extent into the destination inode, returning -EOPNOTSUPP to user space. This was done to prevent several types of file corruption and because it's not very straightforward to deal with these cases, as they can't rely on simply copying the inline extent between leaves. Such cases require copying the inline extent's data into the respective page of the destination inode. Not supporting these cases makes it harder and more cumbersome to write applications/libraries that work on any filesystem with reflink support, since all these cases for which btrfs fails with -EOPNOTSUPP work just fine on xfs for example. These unsupported cases are also not documented anywhere and explaining which exact cases fail require a bit of too technical understanding of btrfs's internal (inline extents and when and where can they exist in a file), so it's not really user friendly. Also some test cases from fstests that use fsx, such as generic/522 for example, can sporadically fail because they trigger one of these cases, and fsx expects all operations to succeed. This change adds supports for cloning all these cases by copying the inline extent's data into the respective page of the destination inode. With this change test case btrfs/112 from fstests fails because it expects some clone operations to fail, so it will be updated. Also a new test case that exercises all these previously unsupported cases will be added to fstests. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions