Author Archives: Antanas

Restoring ZFS drive

Today I ran through an exercise of restoring a ZFS pool. The beginning of one hard drive participating in the pool (no raidz) was incidentally overwritten.. by me. I’m glad I noticed the mixup and cancelled dd, but still 60MB was gone. I spent a few evenings analysing and fixing the MBR, partition table and… Read More »

A short way to invoke methods in C#

The code example shows how to invoke methods with one-line call. It does not require writing explicit delegates, works in .NET 2.0 and later by accessing outer variables (text in the example) from an anonymous method. Invoke() method can be used instead of BeginInvoke(). C# code: