/*static char *SCCSID = "@(#)wthf.c	6.2 92/01/31";*/
#define _BTXT _BTXT
#define INCL_DOSERRORS
#include <os2def.h>
#include <bse.h>

#include <fsh.h>

#include "const.h"
#include "misc.h"
#include "chain.h"
#include "buf.h"
#include "dir.h"
#include "volume.h"
#include "storage.h"
#include "tables.h"
#include "pbmacros.h"

#include "lw.h"
#include "frame.h"
#include "fsdata.h"
#include "strat2.h"
#include "asyncio.h"
#include "pbmsg.h"

#ifdef DEBUG
#include "pr_debug.h"
#endif

#include "pr_cache.h"
#include "pr_dskio.h"
#include "pr_misc.h"

/***	WtHF - Write HotFix buffer
 *
 *	WtHF is called to write a hot fix sector which was read by RdHF.
 *
 *	ENTRY	vlsn - vlsn of disk sector to read
 *
 *	EXIT	none
 *
 *	Yields CPU (IO)
 */

VOID far
WtHF (LSN vlsn, PFRAME pfrm)

{
    USHORT  clsn = 1;

    if (DoVolIOFar(DVIO_OPWRITE,vlsn,&clsn,abHotFixBuf,pfrm) != NO_ERROR)
	  PANIC(PBMSG_WTHF_DOVOLIO);
}
