metaslab.c revision 30beaff42d8240ebf5386e8b7a14e3d137a1631f