{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7397","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7397/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7397/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7397/events","html_url":"https://github.com/zfsonlinux/zfs/issues/7397","id":311913960,"number":7397,"title":"\"zpool import\" is altering a readonly device","user":{"login":"patatetom","id":14196171,"avatar_url":"https://avatars3.githubusercontent.com/u/14196171?v=4","gravatar_id":"","url":"https://api.github.com/users/patatetom","html_url":"https://github.com/patatetom","followers_url":"https://api.github.com/users/patatetom/followers","following_url":"https://api.github.com/users/patatetom/following{/other_user}","gists_url":"https://api.github.com/users/patatetom/gists{/gist_id}","starred_url":"https://api.github.com/users/patatetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatetom/subscriptions","organizations_url":"https://api.github.com/users/patatetom/orgs","repos_url":"https://api.github.com/users/patatetom/repos","events_url":"https://api.github.com/users/patatetom/events{/privacy}","received_events_url":"https://api.github.com/users/patatetom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-06T09:48:13Z","updated_at":"2018-04-11T07:25:57Z","closed_at":null,"author_association":"NONE","body":"### System information\r\n\r\nDistribution Name       | Archlinux\r\nLinux Kernel                 | 4.14.32-1-lts\r\nArchitecture                 | 64\r\nZFS Version                  | 0.7.0-403_g1724eb62d\r\nSPL Version                  | 0.7.0-31_g43983eb\r\n\r\n\r\n### Describe the problem you're observing\r\nFreeBSD boot on /dev/sdb1\r\nFreeBSD swap on /dev/sdb2\r\nFreeBSD ZFS on /dev/sdb3\r\n*(eg. pfSense on /dev/sdb)*\r\n\r\n```console\r\n# blockdev --setro /dev/sdb*\r\n# chmod 444 /dev/sdb*\r\n# dd if=/dev/zero of=/dev/sdb3 status=none\r\ndd: writing to '/dev/sdb3' : Operation not permitted\r\n```\r\n\r\n```console\r\n# sha1sum /dev/sdb3\r\nb0f8d6a60ecadac714aef18414a5ebf4eda0f812  /dev/sdb3\r\n# zpool import -R /test/ -N zroot\r\n# sha1sum /dev/sdb3\r\ne54f4b827af5127d29a298495e152b8d25407b48  /dev/sdb3\r\n```\r\n*(this does not happen if the option `-o readonly=on` is passed)*\r\n\r\nit's problematic because it bypasses the rules I've set on my drive and his partitions *(think forensic)...*\r\n\r\n### Describe how to reproduce the problem\r\n\r\n### Include any warning/errors/backtraces from the system logs"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/380354488","html_url":"https://github.com/zfsonlinux/zfs/issues/7397#issuecomment-380354488","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7397","id":380354488,"user":{"login":"patatetom","id":14196171,"avatar_url":"https://avatars3.githubusercontent.com/u/14196171?v=4","gravatar_id":"","url":"https://api.github.com/users/patatetom","html_url":"https://github.com/patatetom","followers_url":"https://api.github.com/users/patatetom/followers","following_url":"https://api.github.com/users/patatetom/following{/other_user}","gists_url":"https://api.github.com/users/patatetom/gists{/gist_id}","starred_url":"https://api.github.com/users/patatetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatetom/subscriptions","organizations_url":"https://api.github.com/users/patatetom/orgs","repos_url":"https://api.github.com/users/patatetom/repos","events_url":"https://api.github.com/users/patatetom/events{/privacy}","received_events_url":"https://api.github.com/users/patatetom/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T07:25:57Z","updated_at":"2018-04-11T07:25:57Z","author_association":"NONE","body":"the `readonly` option could be implicit (added automatically) from the moment the device is read-only..."}}
{"actor":{"display_login":"patatetom"}}