20
20
#
21
21
22
22
# Set the field separator to a literal tab and newline.
23
- IFS="
23
+ IFS="
24
24
"
25
25
26
26
# Set default program options.
@@ -74,7 +74,7 @@ print_usage ()
74
74
-v, --verbose Print info messages.
75
75
--destroy-only Only destroy older snapshots, do not create new ones.
76
76
name Filesystem and volume names, or '//' for all ZFS datasets.
77
- "
77
+ "
78
78
}
79
79
80
80
@@ -174,7 +174,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
174
174
else
175
175
WARNING_COUNT=$(( $WARNING_COUNT + 1 ))
176
176
continue
177
- fi
177
+ fi
178
178
fi
179
179
180
180
# Retain at most $opt_keep number of old snapshots of this filesystem,
@@ -191,7 +191,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
191
191
KEEP=$(( $KEEP - 1 ))
192
192
if [ " $KEEP " -le ' 0' ]
193
193
then
194
- if do_run " zfs destroy -d $FLAGS '$jj '"
194
+ if do_run " zfs destroy -d $FLAGS '$jj '"
195
195
then
196
196
DESTRUCTION_COUNT=$(( $DESTRUCTION_COUNT + 1 ))
197
197
else
297
297
shift 1
298
298
;;
299
299
(--sep)
300
- case " $2 " in
300
+ case " $2 " in
301
301
([[:alnum:]_.:\ -])
302
302
:
303
303
;;
@@ -345,7 +345,7 @@ if [ "$#" -eq '0' ]
345
345
then
346
346
print_log error " The filesystem argument list is empty."
347
347
exit 133
348
- fi
348
+ fi
349
349
350
350
# Count the number of times '//' appears on the command line.
351
351
SLASHIES=' 0'
402
402
ZPOOLS_SCRUBBING=$( echo " $ZPOOL_STATUS " | awk -F ' : ' \
403
403
' $1 ~ /^ *pool$/ { pool = $2 } ; \
404
404
$1 ~ /^ *scan$/ && $2 ~ /scrub in progress/ { print pool }' \
405
- | sort )
405
+ | sort )
406
406
407
407
# Get a list of pools that cannot do a snapshot.
408
408
ZPOOLS_NOTREADY=$( echo " $ZPOOL_STATUS " | awk -F ' : ' \
0 commit comments