changes
This commit is contained in:
parent
b707cb51ed
commit
6cc8155b49
1 changed files with 6 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ uint todisk[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
uint fromdisk[] = {
|
uint fromdisk[] = {
|
||||||
~0,
|
VtCorruptType,
|
||||||
VtRootType,
|
VtRootType,
|
||||||
VtDirType,
|
VtDirType,
|
||||||
VtDirType+1,
|
VtDirType+1,
|
||||||
|
|
@ -54,9 +54,9 @@ uint fromdisk[] = {
|
||||||
VtDirType+5,
|
VtDirType+5,
|
||||||
VtDirType+6,
|
VtDirType+6,
|
||||||
VtDirType+7,
|
VtDirType+7,
|
||||||
~0,
|
VtCorruptType,
|
||||||
~0,
|
VtCorruptType,
|
||||||
~0,
|
VtCorruptType,
|
||||||
VtDataType,
|
VtDataType,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@ uint
|
||||||
vttodisktype(uint n)
|
vttodisktype(uint n)
|
||||||
{
|
{
|
||||||
if(n >= nelem(todisk))
|
if(n >= nelem(todisk))
|
||||||
return ~0;
|
return VtCorruptType;
|
||||||
return todisk[n];
|
return todisk[n];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ uint
|
||||||
vtfromdisktype(uint n)
|
vtfromdisktype(uint n)
|
||||||
{
|
{
|
||||||
if(n >= nelem(fromdisk))
|
if(n >= nelem(fromdisk))
|
||||||
return ~0;
|
return VtCorruptType;
|
||||||
return fromdisk[n];
|
return fromdisk[n];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue