[PATCH] fix unaligned memory accesses (Closes: #656955)

2012-07-06 Thread Shawn Landden
From: Shawn Landen shawnland...@gmail.com Fix creation of volumes using mkfs.btrfs on armv5. Signed-off-by: Shawn Landen shawnland...@gmail.com --- ctree.h | 26 -- volumes.c |5 +++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/ctree.h

[PATCH] Check for failure in open_ctree() call. (LP: #926186)

2012-07-02 Thread Shawn Landden
--- btrfstune.c |4 1 file changed, 4 insertions(+) diff --git a/btrfstune.c b/btrfstune.c index 47830c5..f746e14 100644 --- a/btrfstune.c +++ b/btrfstune.c @@ -107,6 +107,10 @@ int main(int argc, char *argv[]) } root = open_ctree(device, 0, 1); + if (!root) { +