]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix btrfs bus error on sparc on snapshot delete
authorThomas Tanaka <thomas.tanaka@oracle.com>
Thu, 14 Jan 2016 22:42:31 +0000 (14:42 -0800)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Jan 2016 10:58:57 +0000 (11:58 +0100)
commit21e019c29aaf433884c9ee19e9ec6857bac963f1
tree01509dcbd15e91e315dfd319c4fd3adf8d0a7096
parent9a09badcf580aed1ef9e3b502730f34f387fa21c
Fix btrfs bus error on sparc on snapshot delete

The following patch fixes memory alignment and endianness
issue while doing a snapshot deletion with btrfs as a
backing store on platform such as sparc.

The implementation is taken from btrfs-progs.

Changes since v1:
- include <byteswap.h> for bswap definition
- include defined function name as a comment above BTRFS_SETGET_STACK_FUNCS

Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev/lxcbtrfs.c
src/lxc/bdev/lxcbtrfs.h