btrfs-progs: update btrfs_read_sys_array to match kernel implementation
authorDavid Sterba <dsterba@suse.com>
Mon, 30 Nov 2015 14:57:36 +0000 (15:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Jan 2016 10:28:24 +0000 (11:28 +0100)
commit9c655bfc1cc73fcacb5d555855ff0199d314eb84
tree4cc9adff032e05d41f3ae060cdb4be024e8cbe18
parent16e240eca7a03515889678001e6c0559d40402a2
btrfs-progs: update btrfs_read_sys_array to match kernel implementation

There are some sanity checks missing on both sides, kernel/userspace.
Preparation to port the missing changes.

Sync code with parent of kernel commit
1ffb22cf8c322bbfea6b35fe23d025841b49fede ("btrfs: cleanup, rename a few
variables in btrfs_read_sys_array")

This effectively reverts progs commit
be96777126d283773e4397278a5662d90676ab88 ("btrfs-progs: Cleanup unneeded
extra variant in btrfs_read_sys_array") so we can apply more of the
kernel patches.

Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c