patch-2.1.44 linux/fs/autofs/dir.c
Next file: linux/fs/autofs/dirhash.c
Previous file: linux/fs/autofs/autofs_i.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Jul 7 12:45:24 1997
- Orig file:
v2.1.43/linux/fs/autofs/dir.c
- Orig date:
Mon Jun 16 16:35:56 1997
diff -u --recursive --new-file v2.1.43/linux/fs/autofs/dir.c linux/fs/autofs/dir.c
@@ -34,24 +34,11 @@
return 1;
}
-static int autofs_dir_lookup(struct inode *dir, const char *name, int len,
- struct inode **result)
+/*
+ * No entries except for "." and "..", both of which are handled by the VFS layer
+ */
+static int autofs_dir_lookup(struct inode *dir, struct qstr *str, struct inode **result)
{
- *result = dir;
- if (!len)
- return 0;
- if (name[0] == '.') {
- if (len == 1)
- return 0;
- if (name[1] == '.' && len == 2) {
- /* Return the root directory */
- *result = iget(dir->i_sb,AUTOFS_ROOT_INO);
- iput(dir);
- return 0;
- }
- }
- *result = NULL;
- iput(dir);
return -ENOENT; /* No other entries */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov