14 #include <linux/kernel.h>
15 #include <linux/slab.h>
20 #include <linux/bitops.h>
21 #include <linux/magic.h>
23 #include <linux/module.h>
29 INIT_LIST_HEAD(&ino->
active);
73 static int autofs4_show_options(
struct seq_file *
m,
struct dentry *root)
76 struct inode *root_inode = root->
d_sb->s_root->d_inode;
82 if (root_inode->
i_uid != 0)
84 if (root_inode->
i_gid != 0)
91 if (autofs_type_offset(sbi->
type))
93 else if (autofs_type_direct(sbi->
type))
101 static void autofs4_evict_inode(
struct inode *
inode)
109 .show_options = autofs4_show_options,
110 .evict_inode = autofs4_evict_inode,
130 pid_t *pgrp,
unsigned int *
type,
int *minproto,
int *maxproto)
185 set_autofs_type_indirect(type);
188 set_autofs_type_direct(type);
191 set_autofs_type_offset(type);
197 return (*pipefd < 0);
202 struct inode * root_inode;
212 DPRINTK(
"starting up, sbi = %p",sbi);
224 set_autofs_type_indirect(&sbi->
type);
237 s->
s_op = &autofs4_sops;
256 if (parse_options(data, &pipefd, &root_inode->
i_uid, &root_inode->
i_gid,
259 printk(
"autofs: called with bogus options\n");
263 if (autofs_type_trigger(sbi->
type))
264 __managed_dentry_set_managed(root);
272 printk(
"autofs: kernel does not match daemon version "
273 "daemon (%d, %d) kernel (%d, %d)\n",
290 printk(
"autofs: could not open pipe file descriptor\n");
293 if (autofs_prepare_pipe(pipe) < 0)
309 printk(
"autofs: pipe file descriptor does not contain proper ops\n");