From: fanyong Date: Tue, 3 Oct 2006 06:33:18 +0000 (+0000) Subject: Initialize mu_(fs)uid/mu_(fs)gid when they are not squashed. X-Git-Tag: v1_8_0_110~486^2~722 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ab08aa2cd284f01cdd4c0dbd341176ea860cdf1f;p=fs%2Flustre-release.git Initialize mu_(fs)uid/mu_(fs)gid when they are not squashed. --- diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index 95f3c1b..41d2d9e 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -228,6 +228,9 @@ static int mdt_squash_root(struct mdt_device *mdt, struct md_ucred *ucred, } else { ucred->mu_fsuid = pud->pud_fsuid; } + } else { + ucred->mu_uid = pud->pud_uid; + ucred->mu_fsuid = pud->pud_fsuid; } if (rsi->rsi_gid) { @@ -260,6 +263,9 @@ static int mdt_squash_root(struct mdt_device *mdt, struct md_ucred *ucred, squash_count++; } } + } else { + ucred->mu_gid = pud->pud_gid; + ucred->mu_fsgid = pud->pud_fsgid; } if (squash_count || ucred->mu_fsuid)