HomeFreeBSD

Make sure that POOL_IMPORTED is set, unset and checked where appropriate.

Description

Make sure that POOL_IMPORTED is set, unset and checked where appropriate.

  • If it's unset in find_rootfs(), no pool is imported so no point in looking for a rootfs.
  • If find_rootfs() couldn't find a rootfs, the pool is exported. Remember to unset POOL_IMPORTED after doing so.
  • Set POOL_IMPORTED if/when a pool have been imported in import_pool().
  • Improve backup import (the one using cache file).

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3636

Details

Provenance
Turbo Fredriksson <turbo@bayour.com>Authored on Jul 27 2015, 3:09 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 28 2015, 8:29 PM
Parents
rG48511ea64542: Fix some minor issues with the SYSV init and initramfs scripts.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG21d41d6806ed: Make sure that POOL_IMPORTED is set, unset and checked where appropriate. (authored by Turbo Fredriksson <turbo@bayour.com>).Jul 28 2015, 8:29 PM