{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/6189","labels_url":"https://api.github.com/repos/docker/docker/issues/6189/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/6189/comments","events_url":"https://api.github.com/repos/docker/docker/issues/6189/events","html_url":"https://github.com/docker/docker/issues/6189","id":34932373,"number":6189,"title":"user xattrs should be supported with graphdriver/devmapper","user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//system/devicemapper","name":"/system/devicemapper","color":"FBCA04"},{"url":"https://api.github.com/repos/docker/docker/labels/Distribution","name":"Distribution","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-06-04T06:10:55Z","updated_at":"2015-02-26T02:24:05Z","closed_at":null,"body":"~~~\r\n# docker pull centos\r\n# docker run -i -t centos /bin/bash\r\n\r\nbash-4.1# touch file \r\nbash-4.1# setfattr -n user.attr -v 1 file\r\nsetfattr: file: Operation not permitted\r\n~~~\r\n\r\nThis is acceptable on a regular Linux box as stated below without special privileges \r\n~~~\r\nharsha@sysrq:~$ setfattr -n user.xattr -v 1 addressbook\r\nharsha@sysrq:~$ getfattr -d -m . .addressbook \r\n# file: .addressbook\r\nuser.xattr=\"1\"\r\n~~~\r\n\r\nAs i figured this is due to the fact that device mapper mount 'ext4' and ext4 requires explicit flag of \"user_xattr\" to be passed on to mount options (not needed on XFS) \r\n\r\nSimple fix below should fix this\r\n~~~\r\n-       mountOptions := label.FormatMountLabel(\"discard\", mountLabel)\r\n+       mountOptions := label.FormatMountLabel(\"discard,user_xattr\", mountLabel)\r\n+\r\n~~~\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76110852","html_url":"https://github.com/docker/docker/issues/6189#issuecomment-76110852","issue_url":"https://api.github.com/repos/docker/docker/issues/6189","id":76110852,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T02:24:05Z","updated_at":"2015-02-26T02:24:05Z","body":"@harshavardhana did you get around to opening a PR for this"}}