btrfs-progs: fix wrong max system array size check in user space
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 21 Apr 2014 12:13:31 +0000 (20:13 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 2 May 2014 15:04:09 +0000 (17:04 +0200)
commit4dbbcafd95f3371d9baef60fa3dd2083e4fb836a
treeb5c6b5d895f1855a62ed04d3b53194af172904e9
parentdae7456c7f3990d264d546e03375e4def3e646a6
btrfs-progs: fix wrong max system array size check in user space

For system chunk array,
We copy a "disk_key" and an chunk item each time,
so there should be enough space to hold both of them,
not only the chunk item.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
volumes.c