28 if (compare[0] == 0) {
32 }
else if (compare[0] == 1) {
51 isofs_find_entry(
struct inode *dir,
struct dentry *dentry,
52 unsigned long *block_rv,
unsigned long *offset_rv,
57 unsigned long block, f_pos,
offset, block_saved, offset_saved;
58 struct buffer_head *bh =
NULL;
61 if (!ISOFS_I(dir)->i_first_extent)
68 while (f_pos < dir->i_size) {
81 de_len = *(
unsigned char *) de;
86 block = f_pos >> bufbits;
91 block_saved = bh->b_blocknr;
97 if (offset >= bufsize) {
98 int slop = bufsize - offset + de_len;
100 offset &= bufsize - 1;
108 memcpy((
void *) tmpde + slop, bh->b_data, offset);
118 " in block %lu of inode %lu\n", block,
150 match = (isofs_cmp(dentry, dpnt, dlen) == 0);
153 isofs_normalize_block_and_offset(de,
156 *block_rv = block_saved;
157 *offset_rv = offset_saved;
178 found = isofs_find_entry(dir, dentry,