#if defined(DEBUG) || defined(XLOG_NOLOG) if (!xlog_debug) { cmn_err(CE_NOTE, "logdev: %s", mp->m_logname ? mp->m_logname : "internal"); return 0; } #endif 
xfs_log_mount(xfs_mount_t	*mp,	      xfs_buftarg_t	*log_target,	      xfs_daddr_t	blk_offset,	      int		num_bblks){	if (!(mp->m_flags & XFS_MOUNT_NORECOVERY))		cmn_err(CE_NOTE, "XFS mounting filesystem %s", mp->m_fsname);	else {		cmn_err(CE_NOTE,			"!Mounting filesystem \"%s\" in no-recovery mode.  Filesystem will be inconsistent.",			mp->m_fsname);		ASSERT(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY);	}	mp->m_log = xlog_alloc_log(mp, log_target, blk_offset, num_bblks);#if defined(DEBUG) || defined(XLOG_NOLOG)	if (!xlog_debug) {		cmn_err(CE_NOTE, "logdev: %s", mp->m_logname ?			mp->m_logname : "internal");		return 0;	}#endif	/*	 * skip log recovery on a norecovery mount.  pretend it all	 * just worked.	 */	if (!(mp->m_flags & XFS_MOUNT_NORECOVERY)) {		int	error;		vfs_t	*vfsp = XFS_MTOVFS(mp);		int	readonly = (vfsp->vfs_flag & VFS_RDONLY);		if (readonly)			vfsp->vfs_flag &= ~VFS_RDONLY;		error = xlog_recover(mp->m_log, readonly);		if (readonly)			vfsp->vfs_flag |= VFS_RDONLY;		if (error) {			cmn_err(CE_WARN, "XFS: log mount/recovery failed: error %d", error);			xlog_unalloc_log(mp->m_log);			return error;		}	}	/* Normal transactions can now occur */	mp->m_log->l_flags &= ~XLOG_ACTIVE_RECOVERY;	/* End mounting message in xfs_log_mount_finish */	return 0;}	/* xfs_log_mount */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/cfcbbbd089eadcaa86abb2c0f352e1ab23e16f72/xfs_log.c/buggy/fs/xfs/xfs_log.c