Lines Matching full:restart
16 * @vi: LogFile inode to which the restart page header belongs
17 * @rp: restart page header to check
18 * @pos: position in @vi at which the restart page header resides
20 * Check the restart page header @rp for consistency and return 'true' if it is
24 * require the full restart page.
49 * We must be either at !pos (1st restart page) or at pos = system page
50 * size (2nd restart page).
53 ntfs_error(vi->i_sb, "Found restart area in incorrect position in LogFile.");
66 * If chkdsk has been run the restart page may not be protected by an
77 "LogFile restart page specifies inconsistent update sequence array count.");
86 "LogFile restart page specifies inconsistent update sequence array offset.");
91 * Verify the position of the restart area. It must be:
101 "LogFile restart page specifies inconsistent restart area offset.");
105 * Only restart pages modified by chkdsk are allowed to have chkdsk_lsn
110 "LogFile restart page is not modified by chkdsk but a chkdsk LSN is specified.");
118 * ntfs_check_restart_area - check the restart area for consistency
119 * @vi: LogFile inode to which the restart page belongs
120 * @rp: restart page whose restart area to check
122 * Check the restart area of the restart page @rp for consistency and return
125 * This function assumes that the restart page header has already been
129 * require the full restart page.
149 "LogFile restart area specifies inconsistent file offset.");
156 * restart area elements safely. Also, the client array offset must be
163 "LogFile restart area specifies inconsistent client array offset.");
167 * The restart area must end within the system page size both when
178 "LogFile restart area is out of bounds of the system page size specified by the restart page header and/or the specified restart area length is inconsistent.");
193 "LogFile restart area specifies overflowing client free and/or in use lists.");
208 "LogFile restart area specifies inconsistent sequence number bits.");
215 "LogFile restart area specifies inconsistent log record header length.");
222 "LogFile restart area specifies inconsistent log page data offset.");
231 * @vi: LogFile inode to which the restart page belongs
232 * @rp: restart page whose log client array to check
234 * Check the log client array of the restart page @rp for consistency and
237 * This function assumes that the restart page header and the restart area have
242 * restart page and the page must be multi sector transfer deprotected.
295 * ntfs_check_and_load_restart_page - check the restart page for consistency
296 * @vi: LogFile inode to which the restart page belongs
297 * @rp: restart page to check
298 * @pos: position in @vi at which the restart page resides
299 * @wrp: [OUT] copy of the multi sector transfer deprotected restart page
302 * Check the restart page @rp for consistency and return 0 if it is consistent
303 * and -errno otherwise. The restart page may have been modified by chkdsk in
307 * require the full restart page.
314 * logfile lsn according to this restart page. On failure, *@lsn is undefined.
317 * -EINVAL - The restart page is inconsistent.
318 * -ENOMEM - Not enough memory to load the restart page.
330 /* Check the restart page header for consistency. */
335 /* Check the restart area for consistency. */
342 * Allocate a buffer to store the whole restart page so we can multi
347 ntfs_error(vi->i_sb, "Failed to allocate memory for LogFile restart page buffer.");
351 * Read the whole of the restart page into the buffer. If it fits
389 * restart page is protected.
395 * abort if the restart page contents exceed the multi sector
402 "Multi sector transfer error detected in LogFile restart page.");
408 * If the restart page is modified by chkdsk or there are no active
439 * @rp: [OUT] on success this is a copy of the current restart page
442 * consistent and 'false' if not. On success, the current restart page is
445 * At present we only check the two restart pages and ignore the log record
493 * Ensure the log file is big enough to store at least the two restart
502 * Read through the file looking for a restart page. Since the restart
535 * A log record page means there cannot be a restart page after
540 /* If not a (modified by chkdsk) restart page, continue. */
548 * Check the (modified by chkdsk) restart page for consistency
550 * deprotected restart page.
559 * restart page, continue looking for the second one.
567 * restart page, so we can stop looking.
573 * not abort if the restart page was invalid as we might still
597 "Did not find any restart pages in LogFile and it was not empty.");
600 /* If both restart pages were found, use the more recent one. */
603 * If the second restart area is more recent, switch to it.
607 ntfs_debug("Using second restart page as it is more recent.");
612 ntfs_debug("Using first restart page as it is more recent.");