From 8f412c015ad5c335417e2f2764e46fee3e1150bf Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Thu, 15 Nov 2012 11:13:25 +0100 Subject: [PATCH] Minor change in internal pool listing. --- beadm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beadm b/beadm index 8a1a7b4..1fc4b49 100755 --- a/beadm +++ b/beadm @@ -539,7 +539,7 @@ EOF if __be_clone ${POOL}/ROOT/${DESTROY} then # promote clones dependent on snapshots used by destroyed boot environment - zfs list -H -t all -o name,origin \ + zfs list -H -t all -o name,origin -r ${POOL} \ | while read NAME ORIGIN do if echo "${ORIGIN}" | grep -q -E "${POOL}/ROOT/${DESTROY}(/.*@|@)" 2> /dev/null @@ -582,7 +582,7 @@ EOF if __be_clone ${POOL}/ROOT/${DESTROY} then # promote datasets dependent on origins used by destroyed boot environment - ALL_ORIGINS=$( zfs list -H -t all -o name,origin ) + ALL_ORIGINS=$( zfs list -H -t all -o name,origin -r ${POOL} ) echo "${ORIGIN_SNAPSHOTS}" \ | while read S do @@ -596,7 +596,7 @@ EOF done fi # destroy origins used by destroyed boot environment - SNAPSHOTS=$( zfs list -H -t snapshot -o name ) + SNAPSHOTS=$( zfs list -H -t snapshot -o name -r ${POOL} ) echo "${ORIGIN_SNAPSHOTS}" \ | while read S do