commit - b707cb51ed57c8d189a2e9f96ee31fa41a63e18c
commit + 6cc8155b4944fc1db2a5a8d9263cc4953c764b47
blob - 0151ba28f5a9d651e92aef2d915f4965d5f54641
blob + 7886518e2705cd2edc107e2393d2b9cdf9e6d491
--- src/libventi/dtype.c
+++ src/libventi/dtype.c
};
uint fromdisk[] = {
- ~0,
+ VtCorruptType,
VtRootType,
VtDirType,
VtDirType+1,
VtDirType+5,
VtDirType+6,
VtDirType+7,
- ~0,
- ~0,
- ~0,
+ VtCorruptType,
+ VtCorruptType,
+ VtCorruptType,
VtDataType,
};
vttodisktype(uint n)
{
if(n >= nelem(todisk))
- return ~0;
+ return VtCorruptType;
return todisk[n];
}
vtfromdisktype(uint n)
{
if(n >= nelem(fromdisk))
- return ~0;
+ return VtCorruptType;
return fromdisk[n];
}