.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NTFS_IS_LOGFILE_CLEAN" "9" "09 October 2005" "" "" .SH NAME ntfs_is_logfile_clean \- check in the journal if the volume is clean .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp BOOL ntfs_is_logfile_clean (struct inode * \fIlog_vi\fB); \fR .SH "ARGUMENTS" .TP \fB\fIlog_vi\fB\fR struct inode of loaded journal \fB$LogFile\fR to check .SH "DESCRIPTION" .PP Analyze the \fB$LogFile\fR journal and return TRUE if it indicates the volume was shutdown cleanly and FALSE if not. .PP At present we only look at the two restart pages and ignore the log record pages. This is a little bit crude in that there will be a very small number of cases where we think that a volume is dirty when in fact it is clean. This should only affect volumes that have not been shutdown cleanly but did not have any pending, non-check-pointed i/o, i.e. they were completely idle at least for the five seconds preceeding the unclean shutdown. .PP This function assumes that the \fB$LogFile\fR journal has already been consistency checked by a call to \fBntfs_check_logfile\fR and in particular if the \fB$LogFile\fR is empty this function requires that \fBNVolLogFileEmpty\fR is true otherwise an empty volume will be reported as dirty.