Skip to content

Commit 3d9992b

Browse files
author
Jonathan Carter
committed
Undo PR#82 (fixes #86 and fixes #87)
1 parent f145cf6 commit 3d9992b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,21 @@ fi
367367
ZPOOL_STATUS=$(env LC_ALL=C zpool status 2>&1 ) \
368368
|| { print_log error "zpool status $?: $ZPOOL_STATUS"; exit 135; }
369369

370-
ZFS_LIST=$(env LC_ALL=C zfs list -r -H -t filesystem,volume -s name \
371-
-o name,com.sun:auto-snapshot,com.sun:auto-snapshot:"$opt_label" "${@}") \
370+
371+
ZFS_LIST=$(env LC_ALL=C zfs list -H -t filesystem,volume -s name \
372+
-o name,com.sun:auto-snapshot,com.sun:auto-snapshot:"$opt_label") \
372373
|| { print_log error "zfs list $?: $ZFS_LIST"; exit 136; }
373374

374375
if [ -n "$opt_fast_zfs_list" ]
375376
then
376-
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -r -H -t snapshot -o name -s name "${@}" | \
377+
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -H -t snapshot -o name -s name | \
377378
grep $opt_prefix | \
378379
awk '{ print substr( $0, length($0) - 14, length($0) ) " " $0}' | \
379380
sort -r -k1,1 -k2,2 | \
380381
awk '{ print substr( $0, 17, length($0) )}') \
381382
|| { print_log error "zfs list $?: $SNAPSHOTS_OLD"; exit 137; }
382383
else
383-
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -r -H -t snapshot -S creation -o name "${@}" ) \
384+
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -H -t snapshot -S creation -o name) \
384385
|| { print_log error "zfs list $?: $SNAPSHOTS_OLD"; exit 137; }
385386
fi
386387

0 commit comments

Comments
 (0)