{"action":"closed","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3892","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3892/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3892/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3892/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3892","id":110214404,"number":3892,"title":"Mimic BSD behavior when importing pools","user":{"login":"FireDrunk","id":6359704,"avatar_url":"https://avatars.githubusercontent.com/u/6359704?v=3","gravatar_id":"","url":"https://api.github.com/users/FireDrunk","html_url":"https://github.com/FireDrunk","followers_url":"https://api.github.com/users/FireDrunk/followers","following_url":"https://api.github.com/users/FireDrunk/following{/other_user}","gists_url":"https://api.github.com/users/FireDrunk/gists{/gist_id}","starred_url":"https://api.github.com/users/FireDrunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FireDrunk/subscriptions","organizations_url":"https://api.github.com/users/FireDrunk/orgs","repos_url":"https://api.github.com/users/FireDrunk/repos","events_url":"https://api.github.com/users/FireDrunk/events{/privacy}","received_events_url":"https://api.github.com/users/FireDrunk/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"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/11","html_url":"https://github.com/zfsonlinux/zfs/milestones/0.7.0","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/11/labels","id":7013,"number":11,"title":"0.7.0","description":"ZFS on Linux v0.7.0 - Memory management\r\n\r\n","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":155,"closed_issues":156,"state":"open","created_at":"2011-05-03T17:38:46Z","updated_at":"2016-03-09T18:42:10Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-10-07T12:25:58Z","updated_at":"2016-03-09T18:42:10Z","closed_at":"2016-03-09T18:42:10Z","body":"Recently i've helped out some guys that had problems with a pool that was imported in a corrupt state.\r\nIt looked like the pool was imported with the wrong device links because the user had swapped out cables with different disks that belonged to different ZFS pools.\r\n\r\nIn BSD this action (swapping cables) doesn't result in a corrupt imported pool, but it rather falls back on the /dev/diskid/ device links. It looks like it doesn't use the zpool.cache as 'strictly'  as ZoL does.\r\nAfter import/export the zpool.cache still contains the old /dev/ada0 links but it still imports the pool thrue the /dev/diskid/ links.\r\n\r\nIs it possible to mimic this behavior in ZoL?\r\n\r\nI don't know where to look exactly in the code to find the spot where the exact 'recognition' code is for this behaviour, otherwise i would have looked deeper into the issue."}}