{"action":"created","issue":{"url":"https://api.github.com/repos/pannon/iocage/issues/48","labels_url":"https://api.github.com/repos/pannon/iocage/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/pannon/iocage/issues/48/comments","events_url":"https://api.github.com/repos/pannon/iocage/issues/48/events","html_url":"https://github.com/pannon/iocage/issues/48","id":61117035,"number":48,"title":"iocage paths vs. mount","user":{"login":"jhriggs","id":82438,"avatar_url":"https://avatars.githubusercontent.com/u/82438?v=3","gravatar_id":"","url":"https://api.github.com/users/jhriggs","html_url":"https://github.com/jhriggs","followers_url":"https://api.github.com/users/jhriggs/followers","following_url":"https://api.github.com/users/jhriggs/following{/other_user}","gists_url":"https://api.github.com/users/jhriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/jhriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhriggs/subscriptions","organizations_url":"https://api.github.com/users/jhriggs/orgs","repos_url":"https://api.github.com/users/jhriggs/repos","events_url":"https://api.github.com/users/jhriggs/events{/privacy}","received_events_url":"https://api.github.com/users/jhriggs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-13T16:09:04Z","updated_at":"2015-03-15T19:15:06Z","closed_at":null,"body":"So, as I have started to use iocage more and more, I am starting to run up against a brick wall with some of the paths. Specifically, `mount` fails with mountpoint names > 88 characters. So, if I try to mount zfs or null file systems inside an iocage jail, I get failures depending on paths and names. For example:\r\n\r\n```\r\n# zfs create foo/my.too-long.mountpoint.name\r\ncannot mount 'foo/my.too-long.mountpoint.name': File name too long\r\nfilesystem successfully created, but not mounted\r\n```\r\n\r\n```\r\n# zfs get mountpoint foo/my.too-long.mountpoint.name\r\nNAME                             PROPERTY    VALUE                                                                                        SOURCE\r\nfoo/my.too-long.mountpoint.name  mountpoint  /iocage/jails/2c03abc0-c99b-11e4-a062-9193e3f0746d/root/mnt/foo/my.too-long.mountpoint.name  inherited from foo\r\n```\r\n\r\nThis particular mountpoint is 91 characters. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=161481 and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=167105 for FreeBSD bug reports.\r\n\r\nUnfortunately, I don't have any good answers as to the fix for this (until the 88-char limit gets lifted), so I am opening this for discussion. #9 could be a possibility (specifying a custom UUID...which may not be a UUID, but rather a name/tag/hostname/etc.). Or, mounting the jail file system at a different/shorter path would be an option, but I'm not sure what that looks like. One other thought I have had is doing something similar to how github has a short version of the commit ID, but again, I don't know exactly how that would work in this context.\r\n\r\nAny thoughts or ideas?"},"comment":{"url":"https://api.github.com/repos/pannon/iocage/issues/comments/81204132","html_url":"https://github.com/pannon/iocage/issues/48#issuecomment-81204132","issue_url":"https://api.github.com/repos/pannon/iocage/issues/48","id":81204132,"user":{"login":"pannon","id":7752363,"avatar_url":"https://avatars.githubusercontent.com/u/7752363?v=3","gravatar_id":"","url":"https://api.github.com/users/pannon","html_url":"https://github.com/pannon","followers_url":"https://api.github.com/users/pannon/followers","following_url":"https://api.github.com/users/pannon/following{/other_user}","gists_url":"https://api.github.com/users/pannon/gists{/gist_id}","starred_url":"https://api.github.com/users/pannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pannon/subscriptions","organizations_url":"https://api.github.com/users/pannon/orgs","repos_url":"https://api.github.com/users/pannon/repos","events_url":"https://api.github.com/users/pannon/events{/privacy}","received_events_url":"https://api.github.com/users/pannon/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T19:15:06Z","updated_at":"2015-03-15T19:15:06Z","body":"Modified further functions and short paths should work now with all actions. See output of `jls` below.\r\n\r\nTo use the short path:\r\n- create jail `iocage -c create tag=short-test` (`-c` is a clone)\r\n- get the current mount `iocage get mountpoint short-test`\r\n- run `iocage set mountpoint=/iocage/jails/myshortpath short-test`\r\n- start jail `iocage start short-test`\r\n\r\n```\r\n   JID  IP Address      Hostname                      Path\r\n    32  -               03e05f65-cb43-11e4-87ea-90b8d /iocage/jails/03e05f65/root\r\n    33  -               9cd7f088-ca71-11e4-87ea-90b8d /iocage/jails/9cd7f088-ca71-11e4-87ea-90b8d01b7245/root\r\n    34  -               da2e66fd-ca76-11e4-87ea-90b8d /iocage/jails/da2e66fd-ca76-11e4-87ea-90b8d01b7245/root\r\n    35  -               ec7b167c-cb42-11e4-87ea-90b8d /iocage/jails/ec7b167c/root\r\n```\r\n"}}