HomeFreeBSD

Illumos #3639 zpool.cache should skip over readonly pools

Description

Illumos #3639 zpool.cache should skip over readonly pools

3639 zpool.cache should skip over readonly pools
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Basil Crow <basil.crow@delphix.com>
Approved by: Gordon Ross <gwr@nexenta.com>

References:

illumos/illumos-gate@fb02ae025247e3b662600e5a9c1b4c33ecab7d72
https://www.illumos.org/issues/3639

Normally we don't list pools that are imported read-only in the cache
file, however you can accidentally get one into the cache file by
importing and exporting a read-write pool while a read-only pool is
imported:

$ zpool import -o readonly test1
$ zpool import test2
$ zpool export test2
$ zdb -C

This is a problem because if the machine reboots we import all pools in
the cache file as read-write.

Ported-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
George Wilson <george.wilson@delphix.com>Authored on Jul 5 2013, 7:14 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 7 2013, 11:13 PM
Parents
rG78d7a5d780d4: Write dirty inodes on close
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc61f97f426b7: Illumos #3639 zpool.cache should skip over readonly pools (authored by George Wilson <george.wilson@delphix.com>).Aug 7 2013, 11:13 PM