sf...@users.sourceforge.net:
> Ah, I might make my local mistake.
> I will fix it as possible.
> Thank you for your report again.
> And sorry about "git br" and "git branch".

justin,

I already fixed the problem in my local repostiory. But I cannot make it
public due to the problem around SourceForge.
Here is my local fix. If you cannot wait for the completion of their
work. Please patch and test it manually.


J. R. Okajima

commit 1b7299ead151d838a6ac328e828d6ed520d40a47
Author: J. R. Okajima <hooano...@yahoo.co.jp>
Date:   Sun Apr 21 13:54:47 2013 +0900

    aufs: bugfix, no i_[ug]id_write() for USER_NS
    
    i_[ug]id_write() using kstat is unnecessary. Replace it by direct
    assignment. Otherwise it causes a compilation error when CONFIG_USER_NS
    is enabled.
    
    Reported-by: justin <j...@gentoo.org>
    Signed-off-by: J. R. Okajima <hooano...@yahoo.co.jp>

diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index d223d7d..ab140e1 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -821,8 +821,9 @@ static void au_refresh_iattr(struct inode *inode, struct 
kstat *st,
        unsigned int n;
 
        inode->i_mode = st->mode;
-       i_uid_write(inode, st->uid);
-       i_gid_write(inode, st->gid);
+       /* don't i_[ug]id_write() here */
+       inode->i_uid = st->uid;
+       inode->i_gid = st->gid;
        inode->i_atime = st->atime;
        inode->i_mtime = st->mtime;
        inode->i_ctime = st->ctime;

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to