]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Make spa.c assertions catch unsupported pre-feature flag pool versions
authorRichard Yao <ryao@cs.stonybrook.edu>
Sun, 10 Feb 2013 00:25:55 +0000 (19:25 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Feb 2013 18:27:44 +0000 (10:27 -0800)
commit8dca0a9a386a7e435889e7d621e5029a15dad612
tree21fdeebec7420a3b1344b755008e1a1c30d396e4
parent9878a89d7ab05ffcdcdbf80233d02e30eea511be
Make spa.c assertions catch unsupported pre-feature flag pool versions

A couple of assertions in spa.c were designed to prevent the use of
invalid pool versions. They were written under the assumption
that all valid pools are less than SPA_VERSION. Since feature flags
jumped from 28 to 5000, any numbers in the range 28 to 5000
non-inclusive will fail to trigger them.  We switch to the new
SPA_VERSION_IS_SUPPORTED macro to correct this.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1282
module/zfs/spa.c