Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] missing shift in snapshot-resync-target-lvm.sh
@ 2010-02-11 22:46 Nathan Faber
  2010-02-12 10:43 ` Lars Ellenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Faber @ 2010-02-11 22:46 UTC (permalink / raw)
  To: drbd-dev

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

Hi,

In 8.3.7 and in 8.3 git the shift on the percent arg is off by one and
causes an infinite loop on before-resync-target execution.

--- snapshot-resync-target-lvm-orig.sh 2010-02-03 18:54:27.000000000 -0500
+++ snapshot-resync-target-lvm.sh 2010-02-11 17:34:46.000000000 -0500
@@ -44,7 +44,7 @@
  case $1 in
  -p|--percent)
  SNAP_PERC="$2"
- shift
+ shift 2
  ;;
  -a|--additional)
  SNAP_ADDITIONAL="$2"

[-- Attachment #2: Type: text/html, Size: 1225 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-12 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 22:46 [Drbd-dev] missing shift in snapshot-resync-target-lvm.sh Nathan Faber
2010-02-12 10:43 ` Lars Ellenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox