zfs_destroy_015_pos.ksh revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
#
# Copyright (c) 2012 by Delphix. All rights reserved.
#
# DESCRIPTION
# zfs destroy <dataset@snap1,snap2..> can destroy a list of multiple
# snapshots from the same datasets
#
# STRATEGY
# 1. Create multiple snapshots for the same datset
# 2. Run zfs destroy for these snapshots for a mix of valid and
# invalid snapshot names
# 3. Run zfs destroy for snapshots from different datasets and
# pools
function cleanup
{
}
log_assert "zfs destroy for multiple snapshot is handled correctly"
typeset -i i=1
snaplist=""
log_note "zfs destroy on valid snapshot names"
done
done
log_note "zfs destroy with all bogus snapshot names"
log_note "zfs destroy with some bogus snapshot names"
done
done
log_note "zfs destroy with some snapshot names having special characters"
done
done
log_note "zfs destroy for too many snapshots"
snaplist=""
done
done
log_note "zfs destroy multiple snapshots with hold"
snaplist=""
done
done
log_note "zfs destroy for multiple snapshots having clones"
done
snaplist=""
done
done
log_note "zfs destroy for snapshots for different datasets"
log_note "zfs destroy for snapshots from different pools"
log_pass "zfs destroy for multiple snapshots passes"