* SysV.cs:

* FileSystemIDandChk.csproj: Added support for System V filesystem

* MBR.cs: UnixWare is not the only one using the UNIX disklabel
Corrected UNIX disklabel sector.
Enhanced UNIX disklabel with structs and consts.
Added support for old UNIX disklabels.

* Swapping.cs: Added code for middle-endian (PDP-endian)

git-svn-id: svn://claunia.com/FileSystemIDandChk@22 17725271-3d32-4980-a8cb-9ff532f270ba
This commit is contained in:
2012-08-07 06:20:13 +00:00
parent 6d0709537d
commit 1781df1451
5 changed files with 918 additions and 41 deletions

View File

@@ -59,5 +59,15 @@ namespace FileSystemIDandChk
return destination;
}
public static UInt32 PDPFromLittleEndian(UInt32 x)
{
return ((x & 0xffff) << 16) | ((x & 0xffff0000) >> 16);
}
public static UInt32 PDPFromBigEndian(UInt32 x)
{
return ((x & 0xff00ff) << 8) | ((x & 0xff00ff00) >> 8);
}
}
}