-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zfs-import: Use cache file to reimport pools at boot
This change modifies the import service to use the default cache file to reimport pools at boot. This fixes code that exhaustively searched the entire system and imported all visible pools. Using the cache file is in keeping with the way ZFS has always worked, and is how it is written in the man page (zpool(1M,8)): All pools in this cache are automatically imported when the system boots. Importantly, the cache contains important information for importing multipath devices, and helps control which pools get imported in more dynamic environments like SANs, which may have thousands of visible and constantly changing pools, which the ZFS_POOL_EXCEPTIONS variable is not equipped to handle. The change also stops the service from exporting pools at shutdown. Exporting pools is only meant to be performed by the administrator of the system. Closes #3777 Closes #3526
- Loading branch information
1 parent
7a27ad0
commit 2a9c6b8
Showing
2 changed files
with
12 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters