{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3800","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3800/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3800/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3800/events","html_url":"https://github.com/zfsonlinux/zfs/pull/3800","id":107286102,"number":3800,"title":"zfs-import: Use cache file to reimport pools at boot","user":{"login":"MrStaticVoid","id":646230,"avatar_url":"https://avatars.githubusercontent.com/u/646230?v=3","gravatar_id":"","url":"https://api.github.com/users/MrStaticVoid","html_url":"https://github.com/MrStaticVoid","followers_url":"https://api.github.com/users/MrStaticVoid/followers","following_url":"https://api.github.com/users/MrStaticVoid/following{/other_user}","gists_url":"https://api.github.com/users/MrStaticVoid/gists{/gist_id}","starred_url":"https://api.github.com/users/MrStaticVoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrStaticVoid/subscriptions","organizations_url":"https://api.github.com/users/MrStaticVoid/orgs","repos_url":"https://api.github.com/users/MrStaticVoid/repos","events_url":"https://api.github.com/users/MrStaticVoid/events{/privacy}","received_events_url":"https://api.github.com/users/MrStaticVoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2015-09-18T22:01:45Z","updated_at":"2015-10-02T19:55:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zfsonlinux/zfs/pulls/3800","html_url":"https://github.com/zfsonlinux/zfs/pull/3800","diff_url":"https://github.com/zfsonlinux/zfs/pull/3800.diff","patch_url":"https://github.com/zfsonlinux/zfs/pull/3800.patch"},"body":"This change modifies the import service to use the default cache file\r\nto reimport pools at boot.  This fixes code that exhaustively searched\r\nthe entire system and imported all visible pools.  Using the cache\r\nfile is in keeping with the way ZFS has always worked, and is how it is\r\nwritten in the man page (zpool(1M,8)):\r\n\r\n    All pools  in  this  cache  are  automatically imported when the\r\n    system boots.\r\n\r\nImportantly, the cache contains important information for importing\r\nmultipath devices, and helps control which pools get imported in more\r\ndynamic environments like SANs, which may have thousands of visible\r\nand constantly changing pools, which the ZFS_POOL_EXCEPTIONS variable\r\nis not equipped to handle.\r\n\r\nThe change also stops the service from exporting pools at shutdown.\r\nExporting pools is only meant to be performed by the administrator\r\nof the system.\r\n\r\nCloses #3777\r\nCloses #3526"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/145140214","html_url":"https://github.com/zfsonlinux/zfs/pull/3800#issuecomment-145140214","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3800","id":145140214,"user":{"login":"fearedbliss","id":628436,"avatar_url":"https://avatars.githubusercontent.com/u/628436?v=3","gravatar_id":"","url":"https://api.github.com/users/fearedbliss","html_url":"https://github.com/fearedbliss","followers_url":"https://api.github.com/users/fearedbliss/followers","following_url":"https://api.github.com/users/fearedbliss/following{/other_user}","gists_url":"https://api.github.com/users/fearedbliss/gists{/gist_id}","starred_url":"https://api.github.com/users/fearedbliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearedbliss/subscriptions","organizations_url":"https://api.github.com/users/fearedbliss/orgs","repos_url":"https://api.github.com/users/fearedbliss/repos","events_url":"https://api.github.com/users/fearedbliss/events{/privacy}","received_events_url":"https://api.github.com/users/fearedbliss/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T19:55:50Z","updated_at":"2015-10-02T19:55:50Z","body":"@ryao In bliss-initramfs, what it expects is the following from the bootloader:\r\n\r\nlinux <kernel> root=tank/gentoo/root \r\n\r\nSince I don't use the \"bootfs\" property and solely rely on the user passing their root dataset directly, would it handle the multipath/SPA stuff correctly?"}}