{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2557","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2557/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2557/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2557/events","html_url":"https://github.com/zfsonlinux/zfs/pull/2557","id":39187364,"number":2557,"title":"Add 'zpool version' command","user":{"login":"jvandertil","id":158879,"avatar_url":"https://avatars.githubusercontent.com/u/158879?v=3","gravatar_id":"","url":"https://api.github.com/users/jvandertil","html_url":"https://github.com/jvandertil","followers_url":"https://api.github.com/users/jvandertil/followers","following_url":"https://api.github.com/users/jvandertil/following{/other_user}","gists_url":"https://api.github.com/users/jvandertil/gists{/gist_id}","starred_url":"https://api.github.com/users/jvandertil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvandertil/subscriptions","organizations_url":"https://api.github.com/users/jvandertil/orgs","repos_url":"https://api.github.com/users/jvandertil/repos","events_url":"https://api.github.com/users/jvandertil/events{/privacy}","received_events_url":"https://api.github.com/users/jvandertil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Feature","name":"Feature","color":"02d7e1"}],"state":"open","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":91,"closed_issues":337,"state":"open","created_at":"2012-09-16T18:38:17Z","updated_at":"2015-01-23T18:15:57Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2014-07-31T11:58:56Z","updated_at":"2015-01-24T16:45:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zfsonlinux/zfs/pulls/2557","html_url":"https://github.com/zfsonlinux/zfs/pull/2557","diff_url":"https://github.com/zfsonlinux/zfs/pull/2557.diff","patch_url":"https://github.com/zfsonlinux/zfs/pull/2557.patch"},"body":"Currently uses the /sys/module/zfs/version file to determine running kernel module version. I am not sure how portable this is.\r\n\r\nImplements #2501\r\n\r\nTested on Ubuntu Server 14.04.\r\n\r\nOutput:\r\n```\r\njos@zfsbox:~/zfs$ sudo zpool version\r\nzfs 0.6.3-31_g04f118d\r\nzfs-kms 0.6.3-30_g672692c\r\n```\r\n\r\n```\r\njos@zfsbox:~/zfs$ modinfo zfs | grep version\r\nversion:        0.6.3-31_g04f118d\r\nsrcversion:     B35693A5781A8C38BEB91F8\r\nvermagic:       3.13.0-32-generic SMP mod_unload modversions\r\n```"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/71326280","html_url":"https://github.com/zfsonlinux/zfs/pull/2557#issuecomment-71326280","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2557","id":71326280,"user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T16:45:20Z","updated_at":"2015-01-24T16:45:20Z","body":"There is also a corresponding SPL commit adding kstat type string here: https://github.com/openzfsonosx/spl/commit/8c7da6084ac2100578f3c948e6f014d2263c3379"}}