diff options
author | Duane Griffin <duaneg@dghda.com> | 2007-07-16 02:41:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:49 -0400 |
commit | d45bce8faf55511ec7d7ffc301461d864d67f1af (patch) | |
tree | 1b3c33667f5cb30d3daa91ddd50a726045991d74 /fs/hfsplus/inode.c | |
parent | 1e96b7ca1e8f17c5117da369daaa7cf2edfdf9b1 (diff) |
HFS+: add custom dentry hash and comparison operations
Add custom dentry hash and comparison operations for HFS+ filesystems that are
case-insensitive and/or do automatic unicode decomposition. The new
operations reuse the existing HFS+ ASCII to unicode conversion, unicode
decomposition and case folding functionality.
Signed-off-by: Duane Griffin <duaneg@dghda.com>
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus/inode.c')
-rw-r--r-- | fs/hfsplus/inode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 409ce5429c91..6f7c662174db 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c | |||
@@ -131,6 +131,11 @@ const struct address_space_operations hfsplus_aops = { | |||
131 | .writepages = hfsplus_writepages, | 131 | .writepages = hfsplus_writepages, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | struct dentry_operations hfsplus_dentry_operations = { | ||
135 | .d_hash = hfsplus_hash_dentry, | ||
136 | .d_compare = hfsplus_compare_dentry, | ||
137 | }; | ||
138 | |||
134 | static struct dentry *hfsplus_file_lookup(struct inode *dir, struct dentry *dentry, | 139 | static struct dentry *hfsplus_file_lookup(struct inode *dir, struct dentry *dentry, |
135 | struct nameidata *nd) | 140 | struct nameidata *nd) |
136 | { | 141 | { |