[PATCH] btrfs: fix a overflowing boundary writing in csum_tree_block

2014-09-09 Thread rongqing.li
From: Li RongQing roy.qing...@gmail.com It is impossible that csum_size is larger than sizeof(long), but the codes still add the handler for this condition, like allocate new memory, for extension. If it becomes true someday, copying csum_size size memory to local 32bit variable found and val

[PATCH] btrfs-progs: Add dependencies explicitly to fix a parallel build issue

2013-09-17 Thread rongqing.li
From: Roy Li rongqing...@windriver.com The dependencies of all: version.h or other similar ones can not fix the parallel build failure, only reduce the times; In fact, many *.o files require version.h file. #grep '#include version.h' ./ -r ./btrfs-corrupt-block.c:#include

[PATCH] btrfs-progs: fix parallel build

2013-09-02 Thread rongqing.li
From: Roy.Li rongqing...@windriver.com Parallel execution of make install may fail due to late creation of version.h, fix it by adding the dependence on version.h. The fix is similar to 7aaf00fc[btrfs-progs: fix parallel build] Signed-off-by: Roy.Li rongqing...@windriver.com --- Makefile |