summaryrefslogtreecommitdiff
path: root/check/mode-original.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-03-20 14:42:26 +0800
committerDavid Sterba <dsterba@suse.com>2018-03-30 22:15:54 +0200
commit9708f0d54e0381017114c0a4ca1f48e7aa8a8bbc (patch)
tree9890b347f62029b041c374ce4cdcd40ba64c7eb5 /check/mode-original.h
parent51667947e435444d9e125189b2a07e3966ac145c (diff)
btrfs-progs: check: original mode: Check inline extent size
For inline compressed file extent, kernel doesn't allow inline extent ram size larger than sector size and on-disk inline extent size should not exceed BTRFS_MAX_INLINE_DATA_SIZE(). For inline uncompressed file extent, kernel doesn't allow inline extent ram and on-disk size larger than either BTRFS_MAX_INLINE_DATA_SIZE() or sector size. Check it in original mode. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check/mode-original.h')
-rw-r--r--check/mode-original.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/check/mode-original.h b/check/mode-original.h
index f859af47..368de692 100644
--- a/check/mode-original.h
+++ b/check/mode-original.h
@@ -185,6 +185,7 @@ struct file_extent_hole {
#define I_ERR_SOME_CSUM_MISSING (1 << 12)
#define I_ERR_LINK_COUNT_WRONG (1 << 13)
#define I_ERR_FILE_EXTENT_ORPHAN (1 << 14)
+#define I_ERR_FILE_EXTENT_TOO_LARGE (1 << 15)
struct inode_record {
struct list_head backrefs;