]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Revert "(namespace) dquot: For now explicitly don't support filesystems outside of...
authorLuis Henriques <luis.henriques@canonical.com>
Wed, 23 Nov 2016 10:00:27 +0000 (10:00 +0000)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 23 Nov 2016 10:14:08 +0000 (10:14 +0000)
BugLink: https://bugs.launchpad.net/bugs/1644165
This reverts commit c6c8dc1637bbd8910029549d527d400449ea3283.

The kernel fix for bug #1634964 breaks LXD userspace, in particular the
following commits:

ac7f3f73cb39 (namespace) vfs: Don't modify inodes with a uid or gid unknown to the vfs
ca52383ad6a6 (namespace) vfs: Don't create inodes with a uid or gid unknown to the vfs

LXD 2.0.6 will include changes to support these kernel changes, but it isn't
available yet on xenial, so for now we just revert these commits.

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
fs/quota/dquot.c

index 1f90c5eef41952010eccc6f301c441d93879bedf..25db359d6ec830901658a798d5b36c84ffcb3a49 100644 (file)
@@ -2234,11 +2234,6 @@ static int vfs_load_quota_inode(struct inode *inode, int type, int format_id,
                error = -EINVAL;
                goto out_fmt;
        }
-       /* Filesystems outside of init_user_ns not yet supported */
-       if (sb->s_user_ns != &init_user_ns) {
-               error = -EINVAL;
-               goto out_fmt;
-       }
        /* Usage always has to be set... */
        if (!(flags & DQUOT_USAGE_ENABLED)) {
                error = -EINVAL;