Bug 199071
Summary: | btrfs-progs: compilation fails with --enable-convert when e2fsprogs-1.44.0 is installed | ||
---|---|---|---|
Product: | File System | Reporter: | Lars W. (polynomial-c) |
Component: | btrfs | Assignee: | Josef Bacik (josef) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | alexander198961, devurandom, dsterba, sandalle |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.14.24 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Lars W.
2018-03-09 17:38:05 UTC
Might be related to this change in e2fsprogs: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=6a081f6d2a5cff0f5a077065aab39901d54bfb61 i will try to fix There is change https://github.com/kdave/btrfs-progs/pull/105 Is this still backwards compatible with older e2fsprogs? i will try to fix this to make it backwards I will try to calculate offset this code: __u32 *ptr_e_value_block= (__u32*)((size_t)entry + offsetof(struct ext2_ext_attr_entry,e_value_size) - offsetof(struct ext2_ext_attr_entry,e_value_offs)); but still need add tests for this I've opened https://github.com/kdave/btrfs-progs/issues/110 as it's for btrfs-progs. For a quick fix we might do a simple version check of e2fsprogs and slap an ifdef to the code. The backward compatibility with older e2fsprogs is desired, as there are long term distros using btrfs-progs. Fix added to devel, will be in the next release. Closing. |