1 Index: linux-2.6.10/fs/ext3/namei.c
2 ===================================================================
3 --- linux-2.6.10.orig/fs/ext3/namei.c 2005-05-31 22:20:10.000000000 +0800
4 +++ linux-2.6.10/fs/ext3/namei.c 2005-05-31 22:20:10.000000000 +0800
6 return iopen_connect_dentry(dentry, inode, 1);
9 +static int ext3_lookup_raw(struct inode *dir, const char *name,
10 + int len, ino_t *data)
12 + struct ext3_dir_entry_2 *de;
13 + struct buffer_head *bh;
14 + struct dentry parent;
15 + struct dentry dentry;
18 + if (len > EXT3_NAME_LEN)
19 + return -ENAMETOOLONG;
21 + parent.d_inode = dir;
22 + dentry.d_parent = &parent;
23 + dentry.d_name.name = name;
24 + dentry.d_name.len = len;
26 + bh = ext3_find_entry(&dentry, &de, 0, &lock);
28 + unsigned long ino = le32_to_cpu(de->inode);
29 + ext3_unlock_htree(dir, lock);
33 + return 0; /* found name */
40 struct dentry *ext3_get_parent(struct dentry *child)
43 struct inode_operations ext3_dir_inode_operations = {
44 .create = ext3_create,
45 .lookup = ext3_lookup,
46 + .lookup_raw = ext3_lookup_raw,
48 .unlink = ext3_unlink,
49 .symlink = ext3_symlink,