Lines Matching defs:entry
26 /* Find the entry inside dir named dentry->d_name */
34 hfsplus_cat_entry entry;
50 err = hfs_brec_read(&hfsplus_handle, &fd, &entry, sizeof(entry));
54 /* No such entry */
60 type = be16_to_cpu(entry.type);
66 cnid = be32_to_cpu(entry.folder.id);
73 cnid = be32_to_cpu(entry.file.id);
74 if (entry.file.user_info.fdType == cpu_to_be32(HFSP_HARDLINK_TYPE) &&
75 entry.file.user_info.fdCreator == cpu_to_be32(HFSP_HFSPLUS_CREATOR) &&
76 (entry.file.create_date == HFSPLUS_I(HFSPLUS_SB(sb).hidden_dir).create_date ||
77 entry.file.create_date == HFSPLUS_I(sb->s_root->d_inode).create_date) &&
91 linkid = be32_to_cpu(entry.file.permissions.dev);
100 printk(KERN_ERR "hfs: invalid catalog entry type in lookup\n");
126 hfsplus_cat_entry entry;
151 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) {
155 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength);
156 if (be16_to_cpu(entry.type) != HFSPLUS_FOLDER_THREAD) {
167 be32_to_cpu(entry.thread.parentID), DT_DIR))
185 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) {
189 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength);
190 type = be16_to_cpu(entry.type);
197 printk(KERN_ERR "hfs: small dir entry\n");
202 HFSPLUS_SB(sb).hidden_dir->i_ino == be32_to_cpu(entry.folder.id))
205 be32_to_cpu(entry.folder.id), DT_DIR))
209 printk(KERN_ERR "hfs: small file entry\n");
214 be32_to_cpu(entry.file.id), DT_REG))
217 printk(KERN_ERR "hfs: bad catalog entry type\n");