catalog.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) catalog.c (634725a92938b0f282b17cec0b007dca77adebd2)
1/*
2 * linux/fs/hfsplus/catalog.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 * Handling of catalog records

--- 125 unchanged lines hidden (view full) ---

134
135 hfsplus_cat_build_key(sb, fd->search_key, cnid, NULL);
136 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry));
137 if (err)
138 return err;
139
140 type = be16_to_cpu(tmp.type);
141 if (type != HFSPLUS_FOLDER_THREAD && type != HFSPLUS_FILE_THREAD) {
1/*
2 * linux/fs/hfsplus/catalog.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 * Handling of catalog records

--- 125 unchanged lines hidden (view full) ---

134
135 hfsplus_cat_build_key(sb, fd->search_key, cnid, NULL);
136 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry));
137 if (err)
138 return err;
139
140 type = be16_to_cpu(tmp.type);
141 if (type != HFSPLUS_FOLDER_THREAD && type != HFSPLUS_FILE_THREAD) {
142 printk("HFS+-fs: Found bad thread record in catalog\n");
142 printk(KERN_ERR "hfs: found bad thread record in catalog\n");
143 return -EIO;
144 }
145
146 hfsplus_cat_build_key_uni(fd->search_key, be32_to_cpu(tmp.thread.parentID),
147 &tmp.thread.nodeName);
148 return hfs_brec_find(fd);
149}
150

--- 208 unchanged lines hidden ---
143 return -EIO;
144 }
145
146 hfsplus_cat_build_key_uni(fd->search_key, be32_to_cpu(tmp.thread.parentID),
147 &tmp.thread.nodeName);
148 return hfs_brec_find(fd);
149}
150

--- 208 unchanged lines hidden ---