Re: [PATCH] libmount: define BTRFS_TEST_MAGIC if missing

Karel Zak
2014-03-05T11:27:10Z

On Wed, Mar 05, 2014 at 11:55:34AM +0100, Bernhard Voelker wrote:
> * libmount/src/utils.c (BTRFS_TEST_MAGIC): Conditionally add define
> which is used since commit v2.24-243-g6a52473.

Applied, thanks.

Unfortunately, this is not end of the statfs f_type horror -- all
depends on kernel headers version, stuff in linux/magic.h, etc. And
the list of the filesystems is also not complete.

So I guess we will see more reports...

Maybe the best would be to create our private include/statfs_magic.h
with ifndef-define for all filesystems.

I'm trying to cleanup this thing in kernel tree, but the result is
doubtful

http://www.spinics.net/lists/linux-fsdevel/threads.html#73297

and we still need compatibility with already released kernels.

Karel

--
Karel Zak <kzak@redhat.com>