Lines Matching full:restart
28 * @vi: $LogFile inode to which the restart page header belongs
29 * @rp: restart page header to check
30 * @pos: position in @vi at which the restart page header resides
32 * Check the restart page header @rp for consistency and return 'true' if it is
36 * require the full restart page.
61 * We must be either at !pos (1st restart page) or at pos = system page in ntfs_check_restart_page_header()
62 * size (2nd restart page). in ntfs_check_restart_page_header()
65 ntfs_error(vi->i_sb, "Found restart area in incorrect " in ntfs_check_restart_page_header()
79 * If chkdsk has been run the restart page may not be protected by an in ntfs_check_restart_page_header()
89 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
98 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
104 * Verify the position of the restart area. It must be: in ntfs_check_restart_page_header()
113 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
114 "inconsistent restart area offset."); in ntfs_check_restart_page_header()
118 * Only restart pages modified by chkdsk are allowed to have chkdsk_lsn in ntfs_check_restart_page_header()
122 ntfs_error(vi->i_sb, "$LogFile restart page is not modified " in ntfs_check_restart_page_header()
131 * ntfs_check_restart_area - check the restart area for consistency
132 * @vi: $LogFile inode to which the restart page belongs
133 * @rp: restart page whose restart area to check
135 * Check the restart area of the restart page @rp for consistency and return
138 * This function assumes that the restart page header has already been
142 * require the full restart page.
161 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
169 * restart area elements safely. Also, the client array offset must be in ntfs_check_restart_area()
175 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
180 * The restart area must end within the system page size both when in ntfs_check_restart_area()
190 ntfs_error(vi->i_sb, "$LogFile restart area is out of bounds " in ntfs_check_restart_area()
192 "restart page header and/or the specified " in ntfs_check_restart_area()
193 "restart area length is inconsistent."); in ntfs_check_restart_area()
207 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
222 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
229 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
236 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
246 * @vi: $LogFile inode to which the restart page belongs
247 * @rp: restart page whose log client array to check
249 * Check the log client array of the restart page @rp for consistency and
252 * This function assumes that the restart page header and the restart area have
257 * restart page and the page must be multi sector transfer deprotected.
310 * ntfs_check_and_load_restart_page - check the restart page for consistency
311 * @vi: $LogFile inode to which the restart page belongs
312 * @rp: restart page to check
313 * @pos: position in @vi at which the restart page resides
314 * @wrp: [OUT] copy of the multi sector transfer deprotected restart page
317 * Check the restart page @rp for consistency and return 0 if it is consistent
318 * and -errno otherwise. The restart page may have been modified by chkdsk in
322 * require the full restart page.
329 * logfile lsn according to this restart page. On failure, *@lsn is undefined.
332 * -EINVAL - The restart page is inconsistent.
333 * -ENOMEM - Not enough memory to load the restart page.
345 /* Check the restart page header for consistency. */ in ntfs_check_and_load_restart_page()
350 /* Check the restart area for consistency. */ in ntfs_check_and_load_restart_page()
357 * Allocate a buffer to store the whole restart page so we can multi in ntfs_check_and_load_restart_page()
363 "restart page buffer."); in ntfs_check_and_load_restart_page()
367 * Read the whole of the restart page into the buffer. If it fits in ntfs_check_and_load_restart_page()
406 * restart page is protected. in ntfs_check_and_load_restart_page()
413 * abort if the restart page contents exceed the multi sector in ntfs_check_and_load_restart_page()
420 "detected in $LogFile restart page."); in ntfs_check_and_load_restart_page()
426 * If the restart page is modified by chkdsk or there are no active in ntfs_check_and_load_restart_page()
457 * @rp: [OUT] on success this is a copy of the current restart page
460 * consistent and 'false' if not. On success, the current restart page is
463 * At present we only check the two restart pages and ignore the log record
511 * Ensure the log file is big enough to store at least the two restart in ntfs_check_logfile()
520 * Read through the file looking for a restart page. Since the restart in ntfs_check_logfile()
550 * A log record page means there cannot be a restart page after in ntfs_check_logfile()
555 /* If not a (modified by chkdsk) restart page, continue. */ in ntfs_check_logfile()
563 * Check the (modified by chkdsk) restart page for consistency in ntfs_check_logfile()
565 * deprotected restart page. in ntfs_check_logfile()
574 * restart page, continue looking for the second one. in ntfs_check_logfile()
582 * restart page, so we can stop looking. in ntfs_check_logfile()
588 * not abort if the restart page was invalid as we might still in ntfs_check_logfile()
609 ntfs_error(vol->sb, "Did not find any restart pages in " in ntfs_check_logfile()
613 /* If both restart pages were found, use the more recent one. */ in ntfs_check_logfile()
616 * If the second restart area is more recent, switch to it. in ntfs_check_logfile()
620 ntfs_debug("Using second restart page as it is more " in ntfs_check_logfile()
626 ntfs_debug("Using first restart page as it is more " in ntfs_check_logfile()
648 * @rp: copy of the current restart page
653 * At present we only look at the two restart pages and ignore the log record
679 ntfs_error(vol->sb, "Restart page buffer is invalid. This is " in ntfs_is_logfile_clean()
688 * have the RESTART_VOLUME_IS_CLEAN bit set in the restart area flags, in ntfs_is_logfile_clean()