Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7ac31
)
Initialize mu_(fs)uid/mu_(fs)gid when they are not squashed.
author
fanyong
<fanyong>
Tue, 3 Oct 2006 06:33:18 +0000
(06:33 +0000)
committer
fanyong
<fanyong>
Tue, 3 Oct 2006 06:33:18 +0000
(06:33 +0000)
lustre/mdt/mdt_lib.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_lib.c
b/lustre/mdt/mdt_lib.c
index
95f3c1b
..
41d2d9e
100644
(file)
--- 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)