Project

General

Profile

Bug #3543 » fix-spa-assertions.patch

Updated patch - Richard Yao, 2013-02-11 09:08 PM

View differences:

module/zfs/spa.c
5770 5770
	 */
5771 5771
	ASSERT(tx->tx_txg != TXG_INITIAL);
5772 5772

  
5773
	ASSERT(version <= SPA_VERSION);
5773
	ASSERT(SPA_VERSION_IS_SUPPORTED(version));
5774 5774
	ASSERT(version >= spa_version(spa));
5775 5775

  
5776 5776
	spa->spa_uberblock.ub_version = version;
......
6294 6294
	 * future version would result in an unopenable pool, this shouldn't be
6295 6295
	 * possible.
6296 6296
	 */
6297
	ASSERT(spa->spa_uberblock.ub_version <= SPA_VERSION);
6297
	ASSERT(SPA_VERSION_IS_SUPPORTED(spa->spa_uberblock.ub_version));
6298 6298
	ASSERT(version >= spa->spa_uberblock.ub_version);
6299 6299

  
6300 6300
	spa->spa_uberblock.ub_version = version;
(2-2/2)