btrfs-progs: treat super.magic as an le64
authorZach Brown <zab@redhat.com>
Thu, 17 Jan 2013 19:54:47 +0000 (11:54 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:32 +0000 (16:09 -0800)
commit52162700bb59663add809a6465ce2769d80b3664
tree5cd021a31a6e098ee5e9b9c6b47b02f70f3f147d
parent2161e1b6f35d1c084fda49b479951219117c86e9
btrfs-progs: treat super.magic as an le64

The super block magic is a le64 whose value looks like an unterminated
string in memory.  The lack of null termination leads to clumsy use of
string functions and causes static analysis tools to warn that the
string will be unterminated.

So let's just treat it as the le64 that it is.  Endian wrappers are used
on the constant so that they're compiled into run-time constants.

Signed-off-by: Zach Brown <zab@redhat.com>
btrfs-show-super.c
ctree.h
disk-io.c
utils.c