Пример #1
0
func TestSnapshotNonexistant(t *testing.T) {
	err := zfs.TakeSnapshot("nonexistant", "foo")
	if err == nil {
		t.Error("Unexpected success for snapshotting nonexistant dataset")
	}
}
Пример #2
0
func TestSnapshotOk(t *testing.T) {
	err := zfs.TakeSnapshot("zones", "foo")
	if err != nil {
		t.Error("Unexpected error", err)
	}
}