Use memcmp when checking magic

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Implement block annotations

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Test block annotations

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>