• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/squashfs/

Lines Matching defs:fragment

78 	char 		*(*read_fragment)(unsigned int fragment);
336 TRACE("read_fragment_table: %d fragments, reading %d fragment indexes from 0x%llx\n", sBlk.fragments, indexes, sBlk.fragment_table_start);
344 EXIT_UNSQUASH("read_fragment_table: failed to allocate fragment table\n");
357 TRACE("Read fragment table block %d, from 0x%llx, length %d\n", i, fragment_table_index[i], length);
375 TRACE("read_fragment_table: %d fragments, reading %d fragment indexes from 0x%llx\n", sBlk.fragments, indexes, sBlk.fragment_table_start);
383 EXIT_UNSQUASH("read_fragment_table: failed to allocate fragment table\n");
396 TRACE("Read fragment table block %d, from 0x%llx, length %d\n", i, fragment_table_index[i], length);
409 char *read_fragment(unsigned int fragment)
411 TRACE("read_fragment: reading fragment %d\n", fragment);
413 if(cached_frag == SQUASHFS_INVALID_FRAG || fragment != cached_frag) {
414 squashfs_fragment_entry *fragment_entry = &fragment_table[fragment];
416 ERROR("read_fragment: failed to read fragment %d\n", fragment);
420 cached_frag = fragment;
427 char *read_fragment_2(unsigned int fragment)
429 TRACE("read_fragment: reading fragment %d\n", fragment);
431 if(cached_frag == SQUASHFS_INVALID_FRAG || fragment != cached_frag) {
432 squashfs_fragment_entry_2 *fragment_entry = &fragment_table_2[fragment];
434 ERROR("read_fragment: failed to read fragment %d\n", fragment);
438 cached_frag = fragment;
445 int write_file(char *pathname, unsigned int fragment, unsigned int frag_bytes,
488 char *fragment_data = s_ops.read_fragment(fragment);
494 ERROR("write_file: failed to write fragment %d\n", fragment);
559 frag_bytes = inode->fragment == SQUASHFS_INVALID_FRAG ?
562 blocks = inode->fragment == SQUASHFS_INVALID_FRAG ?
570 if(write_file(pathname, inode->fragment, frag_bytes,
592 frag_bytes = inode->fragment == SQUASHFS_INVALID_FRAG ?
595 blocks = inode->fragment == SQUASHFS_INVALID_FRAG ?
603 if(write_file(pathname, inode->fragment, frag_bytes,
750 frag_bytes = inode->fragment == SQUASHFS_INVALID_FRAG ?
753 blocks = inode->fragment == SQUASHFS_INVALID_FRAG ?
761 if(write_file(pathname, inode->fragment, frag_bytes,