• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching defs:cb

86 	 * Pointers into the compressed data, i.e. the compression block (cb),
89 u8 *cb_end = cb_start + cb_size; /* End of cb. */
90 u8 *cb = cb_start; /* Current position in cb. */
91 u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */
103 ntfs_log_debug("Beginning sub-block at offset = %d in the cb.\n",
104 (int)(cb - cb_start));
111 if (cb == cb_end || !le16_to_cpup((u16*)cb) || dest == dest_end) {
122 if (cb + 6 > cb_end)
125 cb_sb_start = cb;
126 cb_sb_end = cb_sb_start + (le16_to_cpup((u16*)cb) & NTFS_SB_SIZE_MASK)
131 if (!(le16_to_cpup((u16*)cb) & NTFS_SB_IS_COMPRESSED)) {
135 cb += 2;
137 if (cb_sb_end - cb != NTFS_SB_SIZE)
140 memcpy(dest, cb, NTFS_SB_SIZE);
141 cb += NTFS_SB_SIZE;
149 cb += 2;
151 if (cb == cb_sb_end) {
165 if (cb > cb_sb_end || dest > dest_sb_end)
168 tag = *cb++;
176 if (cb >= cb_sb_end || dest > dest_sb_end)
184 *dest++ = *cb++;
205 pt = le16_to_cpup((u16*)cb);
241 cb += 2;
254 * This is a very specialised function determining if a cb is compressed or
255 * uncompressed. It is assumed that checking for a sparse cb has already been
256 * performed and that the cb is not sparse. It makes all sorts of other
271 * @cb_clusters clusters which are all not sparse, thus the cb is not
292 /* If the current run is sparse, the cb is compressed. */
295 /* If the whole cb is not sparse, it is not compressed. */
300 /* All cb_clusters were not sparse thus the cb is not compressed. */
332 u8 *dest, *cb, *cb_pos, *cb_end;
382 cb = ntfs_malloc(cb_size);
383 if (!cb)
389 free(cb);
393 * The first vcn in the first compression block (cb) which we need to
397 /* Offset in the uncompressed cb at which to start reading data. */
400 * The first vcn in the cb after the last cb which we need to
408 cb_end = cb + cb_size;
411 cb_pos = cb;
418 free(cb);
427 /* Sparse cb, zero out destination range overlapping the cb. */
438 * Uncompressed cb, read it straight into the destination range
439 * overlapping the cb.
463 free(cb);
484 * Compressed cb, decompress it into the temporary buffer, then
485 * copy the data to the destination range overlapping the cb.
505 (cb_pos - cb), to_read, cb_pos);
511 free(cb);
528 if (ntfs_decompress(dest, cb_size, cb, cb_size) < 0) {
530 free(cb);
548 free(cb);