pfsrepairid.c
304 Bytes
#include "osint.h"
#include "controller.h"
#include "siint.h"
s32
osPfsRepairId(OSPfs *pfs)
{
s32 ret = 0;
if (pfs->status & (PFS_ID_BROKEN|PFS_INITIALIZED)) {
ret = __osGetId(pfs);
if (ret == 0) {
pfs->status &= ~PFS_ID_BROKEN;
}
} else {
ret = PFS_ERR_INVALID;
}
return(ret);
}