diff --git a/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go b/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go index 38ad2cb..365f212 100644 --- a/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go +++ b/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go @@ -235,7 +235,7 @@ func lastReceivedHoldImpl(jobid string) (string, error) { func MoveLastReceivedHold(ctx context.Context, fs string, to zfs.FilesystemVersion, jobID JobID) error { - if to.IsSnapshot() { + if !to.IsSnapshot() { return errors.Errorf("last-received-hold: target must be a snapshot: %s", to.FullPath(fs)) }