/*static char *SCCSID = "@(#)corruptd.c	6.2 92/01/31";*/
#define _BTXT _BTXT

#define INCL_DOSERRORS
#include <os2.h>
#include "api.h"
#include "const.h"
#include "misc.h"
#include "chain.h"
#include "buf.h"
#include "dir.h"
#include "storage.h"
#include "fnode.h"
#include "volume.h"
#include "tables.h"
#include "superb.h"
#include "pb_ifs.h"
#include "pbmacros.h"
#include "lw.h"
#include "frame.h"
#include "fsdata.h"
#include "pr_debug.h"
#include "pr_misc.h"
#include "pr_dir.h"

/*
 ***	CorruptDir - Mark Directory Corrupt
 *
 *	CorruptDir Marks a directory CORRUPT and jams a hard error code,
 *	if there isn't one already.
 *
 *	ENTRY	TDB_SBDIR points to current SBDIR
 *		(bl) = error code
 *	EXIT	'C' set
 *		(al) = error code
 */

USHORT far
CorruptDir (pfrm)
PFRAME pfrm;
{
    pfrm->psbd->bFlags |= SDF_UNU;
    SETHARDERR (ERROR_GEN_FAILURE);
    return (GetHardErr (ERROR_GEN_FAILURE));
}
