{"action":"closed","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2080","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2080/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2080/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2080/events","html_url":"https://github.com/zfsonlinux/zfs/issues/2080","id":26292539,"number":2080,"title":"Inconsistent behaviour between zpool import -d and zpool import -c","user":{"login":"Lalufu","id":5759461,"avatar_url":"https://avatars.githubusercontent.com/u/5759461?v=3","gravatar_id":"","url":"https://api.github.com/users/Lalufu","html_url":"https://github.com/Lalufu","followers_url":"https://api.github.com/users/Lalufu/followers","following_url":"https://api.github.com/users/Lalufu/following{/other_user}","gists_url":"https://api.github.com/users/Lalufu/gists{/gist_id}","starred_url":"https://api.github.com/users/Lalufu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lalufu/subscriptions","organizations_url":"https://api.github.com/users/Lalufu/orgs","repos_url":"https://api.github.com/users/Lalufu/repos","events_url":"https://api.github.com/users/Lalufu/events{/privacy}","received_events_url":"https://api.github.com/users/Lalufu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Bug%20-%20Minor","name":"Bug - Minor","color":"e11d21"},{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Difficulty%20-%20Easy","name":"Difficulty - Easy","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/24","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/24/labels","id":175735,"number":24,"title":"0.6.4","description":"ZFS on Linux v0.6.4 - Functionality / Integration","creator":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"open_issues":89,"closed_issues":339,"state":"open","created_at":"2012-09-16T18:38:17Z","updated_at":"2015-01-28T19:14:56Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2014-01-25T13:01:58Z","updated_at":"2015-01-28T19:14:56Z","closed_at":"2015-01-28T19:14:56Z","body":"When importing pools with `zpool import -aN` there is inconsistent behaviour between `-d /dev/disk/by-id` (or another path) and `-c /etc/zfs/zpool.cache`.\r\n\r\nIf all pools existing in the system are already imported `zpool import -aN -c /etc/zfs/zpool.cache` will print \"no pools available to import\" and exit with RC 0. In the same situation `zpool import -aN -d /dev/disk/by-id` will print no message and exit with RC 1.\r\n\r\nIs this intentional behaviour? This is causing me some issues while working out the best way to build systemd start scripts for both methods, since the -d method will cause unit to fail, even though no real error occured."}}