• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:ra

164 	RESTART_AREA *ra;
170 ra = (RESTART_AREA*)((u8*)rp + ra_ofs);
172 * Everything before ra->file_size must be before the first word
174 * safe to access ra->client_array_offset.
183 * Now that we can access ra->client_array_offset, make sure everything
189 ca_ofs = le16_to_cpu(ra->client_array_offset);
199 * calculated manually and as specified by ra->restart_area_length.
202 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) *
205 (u32)(ra_ofs + le16_to_cpu(ra->restart_area_length)) >
207 ra_len > le16_to_cpu(ra->restart_area_length)) {
215 * The ra->client_free_list and ra->client_in_use_list must be either
216 * LOGFILE_NO_CLIENT or less than ra->log_clients or they are
219 if ((ra->client_free_list != LOGFILE_NO_CLIENT &&
220 le16_to_cpu(ra->client_free_list) >=
221 le16_to_cpu(ra->log_clients)) ||
222 (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
223 le16_to_cpu(ra->client_in_use_list) >=
224 le16_to_cpu(ra->log_clients))) {
230 * Check ra->seq_number_bits against ra->file_size for consistency.
233 file_size = (u64)sle64_to_cpu(ra->file_size);
239 if (le32_to_cpu(ra->seq_number_bits) != (u32)(67 - fs_bits)) {
245 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) !=
246 le16_to_cpu(ra->log_record_header_length)) {
252 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) !=
253 le16_to_cpu(ra->log_page_data_offset)) {
278 RESTART_AREA *ra;
284 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
285 ca = (LOG_CLIENT_RECORD*)((u8*)ra +
286 le16_to_cpu(ra->client_array_offset));
288 * Check the ra->client_free_list first and then check the
289 * ra->client_in_use_list. Check each of the log client records in
291 * ra->log_clients value. Also keep track of the number of records
292 * visited as there cannot be more than ra->log_clients records and
295 nr_clients = le16_to_cpu(ra->log_clients);
296 idx = le16_to_cpu(ra->client_free_list);
301 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients))
315 idx = le16_to_cpu(ra->client_in_use_list);
356 RESTART_AREA *ra;
371 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
409 le16_to_cpu(ra->restart_area_length) >
424 ra->client_in_use_list != LOGFILE_NO_CLIENT) {
432 *lsn = sle64_to_cpu(ra->current_lsn);
653 RESTART_AREA *ra;
671 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
677 if (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
678 !(ra->flags & RESTART_VOLUME_IS_CLEAN)) {
680 "%d).\n", le16_to_cpu(ra->client_in_use_list),
681 le16_to_cpu(ra->flags));