{"action":"created","issue":{"url":"https://api.github.com/repos/jceel/py-libzfs/issues/19","repository_url":"https://api.github.com/repos/jceel/py-libzfs","labels_url":"https://api.github.com/repos/jceel/py-libzfs/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jceel/py-libzfs/issues/19/comments","events_url":"https://api.github.com/repos/jceel/py-libzfs/issues/19/events","html_url":"https://github.com/jceel/py-libzfs/pull/19","id":228503928,"number":19,"title":"Optionally auto-create ancestors of nested datasets","user":{"login":"gronke","id":473924,"avatar_url":"https://avatars0.githubusercontent.com/u/473924?v=3","gravatar_id":"","url":"https://api.github.com/users/gronke","html_url":"https://github.com/gronke","followers_url":"https://api.github.com/users/gronke/followers","following_url":"https://api.github.com/users/gronke/following{/other_user}","gists_url":"https://api.github.com/users/gronke/gists{/gist_id}","starred_url":"https://api.github.com/users/gronke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gronke/subscriptions","organizations_url":"https://api.github.com/users/gronke/orgs","repos_url":"https://api.github.com/users/gronke/repos","events_url":"https://api.github.com/users/gronke/events{/privacy}","received_events_url":"https://api.github.com/users/gronke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-13T22:18:15Z","updated_at":"2017-05-13T22:43:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jceel/py-libzfs/pulls/19","html_url":"https://github.com/jceel/py-libzfs/pull/19","diff_url":"https://github.com/jceel/py-libzfs/pull/19.diff","patch_url":"https://github.com/jceel/py-libzfs/pull/19.patch"},"body":"Allows the creation of nested datasets including missing ancestors. \r\nThis behavior is known as the [zfs create -p flag](https://github.com/freebsd/freebsd/blob/master/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c#L688).\r\n\r\n```\r\n# zfs list | grep -c foo\r\n0\r\n\r\nPython 3.6.1 (default, Apr 17 2017, 19:51:49) \r\n[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] on freebsd11\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import libzfs\r\n>>> zfs = libzfs.ZFS()\r\n>>> pool = zfs.get('tank')\r\n>>> pool.create('tank/foo/bar', {}, libzfs.DatasetType.FILESYSTEM, 0, True)\r\n>>>\r\n\r\n# zfs list | grep -c foo\r\n2\r\n\r\n# zfs list | grep foo\r\ntank/foo                              176K  128M     88K  /tank/foo\r\ntank/foo/bar                           88K  128M     88K  /tank/foo/bar\r\n```\r\n\r\nThe default remains not to auto-create ancestor datasets."},"comment":{"url":"https://api.github.com/repos/jceel/py-libzfs/issues/comments/301279208","html_url":"https://github.com/jceel/py-libzfs/pull/19#issuecomment-301279208","issue_url":"https://api.github.com/repos/jceel/py-libzfs/issues/19","id":301279208,"user":{"login":"gronke","id":473924,"avatar_url":"https://avatars0.githubusercontent.com/u/473924?v=3","gravatar_id":"","url":"https://api.github.com/users/gronke","html_url":"https://github.com/gronke","followers_url":"https://api.github.com/users/gronke/followers","following_url":"https://api.github.com/users/gronke/following{/other_user}","gists_url":"https://api.github.com/users/gronke/gists{/gist_id}","starred_url":"https://api.github.com/users/gronke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gronke/subscriptions","organizations_url":"https://api.github.com/users/gronke/orgs","repos_url":"https://api.github.com/users/gronke/repos","events_url":"https://api.github.com/users/gronke/events{/privacy}","received_events_url":"https://api.github.com/users/gronke/received_events","type":"User","site_admin":false},"created_at":"2017-05-13T22:43:53Z","updated_at":"2017-05-13T22:43:53Z","body":"@jceel thanks for your review! Your feedback is addressed now."}}
{"actor":{"display_login":"gronke"}}