diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-17 21:51:42 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-17 21:51:42 -0500 |
commit | c58310bf4933986513020fa90b4190c7492995ae (patch) | |
tree | 143f2c7578d02ebef5db8fc57ae69e951ae0e2ee /fs/autofs4/inode.c | |
parent | 269cdfaf769f5cd831284cc831790c7c5038040f (diff) | |
parent | 1309d4e68497184d2fd87e892ddf14076c2bda98 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r-- | fs/autofs4/inode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 7f05d6ccdb13..2fdcf5e1d236 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -176,11 +176,16 @@ out_kill_sb: | |||
176 | static int autofs4_show_options(struct seq_file *m, struct vfsmount *mnt) | 176 | static int autofs4_show_options(struct seq_file *m, struct vfsmount *mnt) |
177 | { | 177 | { |
178 | struct autofs_sb_info *sbi = autofs4_sbi(mnt->mnt_sb); | 178 | struct autofs_sb_info *sbi = autofs4_sbi(mnt->mnt_sb); |
179 | struct inode *root_inode = mnt->mnt_sb->s_root->d_inode; | ||
179 | 180 | ||
180 | if (!sbi) | 181 | if (!sbi) |
181 | return 0; | 182 | return 0; |
182 | 183 | ||
183 | seq_printf(m, ",fd=%d", sbi->pipefd); | 184 | seq_printf(m, ",fd=%d", sbi->pipefd); |
185 | if (root_inode->i_uid != 0) | ||
186 | seq_printf(m, ",uid=%u", root_inode->i_uid); | ||
187 | if (root_inode->i_gid != 0) | ||
188 | seq_printf(m, ",gid=%u", root_inode->i_gid); | ||
184 | seq_printf(m, ",pgrp=%d", sbi->oz_pgrp); | 189 | seq_printf(m, ",pgrp=%d", sbi->oz_pgrp); |
185 | seq_printf(m, ",timeout=%lu", sbi->exp_timeout/HZ); | 190 | seq_printf(m, ",timeout=%lu", sbi->exp_timeout/HZ); |
186 | seq_printf(m, ",minproto=%d", sbi->min_proto); | 191 | seq_printf(m, ",minproto=%d", sbi->min_proto); |