Lines Matching refs:size
35 * Basic validation of a NTFS multi-sector record. The record size must be a
36 * multiple of the logical sector size; and the update sequence array must be
41 is_valid_record(u32 size, u16 usa_ofs, u16 usa_count)
43 return size % NTFS_BLOCK_SIZE == 0 &&
45 usa_count == 1 + (size / NTFS_BLOCK_SIZE) &&
52 * @size: size in bytes of @b
65 int ntfs_mst_post_read_fixup_warn(NTFS_RECORD *b, const u32 size,
77 if (!is_valid_record(size, usa_ofs, usa_count)) {
80 ntfs_log_perror("%s: magic: 0x%08lx size: %ld "
84 (long)size, (int)usa_ofs,
115 "magic: 0x%08x size: %d usa_ofs: %d usa_count:"
116 " %d data: %d usn: %d", le32_to_cpu(*(le32 *)b), size,
144 int ntfs_mst_post_read_fixup(NTFS_RECORD *b, const u32 size)
146 return (ntfs_mst_post_read_fixup_warn(b,size,TRUE));
152 * @size: size in bytes of @b
155 * pointer to by @b of @size.
169 int ntfs_mst_pre_write_fixup(NTFS_RECORD *b, const u32 size)
188 if (!is_valid_record(size, usa_ofs, usa_count)) {