Skip to content

Commit efc616e

Browse files
committed
Add remote snapshot name to warning when local snap/bm is missing
1 parent e485cf3 commit efc616e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

zap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,16 @@ $sshto:$rloc/$fs was not created by zap."
357357
if [ "$l_ts" -gt "$r_ts" ]; then
358358
## check if there is a local snapshot for the remote snapshot
359359
if ! sp=$(zfs list -rd1 -t snap -H -o name "$1" | grep "$rsnap"); then
360-
warn "Failed to find local snapshot for remote snapshot."
360+
warn "Failed to find local snapshot for remote snapshot \
361+
${rloc}${fs}${rsnap}."
361362
warn "Will attempt to fall back to a bookmark, but all \
362363
intermediary snapshots will not be sent."
363364
fi
364365
## check if there is a bookmark for the remote snapshot
365366
if [ -z "$sp" ] && ! sp=$(zfs list -rd1 -t bookmark -H -o name \
366367
"$1" | grep "${rsnap#@}"); then
367-
warn "Failed to find bookmark for remote snapshot."
368+
warn "Failed to find bookmark for remote snapshot \
369+
${rloc}${fs}${rsnap}."
368370
warn "Failed to replicate $lsnap to $sshto:$rloc."
369371
else
370372
if echo "$sp" | grep -q '@'; then i='-I'; else i='-i'; fi

0 commit comments

Comments
 (0)