[Just stumbled over this while catching up on email...] > +for fs in `zfs list -H | grep "^$ROOTPOOL/$ROOTFS" | grep -w "$ROOTFS" | > grep -v '@' | awk '{ print $1 };'` > > In essence, skip snapshots (@) and non-"rootpool/rootfs/subfs" paths.
Note that "zfs list -Hrt filesystem -o name <pool>" will give you a one-column list of all existing file systems below <pool>. So your zfs invocation is optimized to: +for fs in `zfs list -Hrtfilesystem -oname "$ROOTPOOL"|tail +2` I'm sure this will save several microseconds. :-) Regards -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Sun Solaris Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/ Am Wiesenpfad 6, 53340 Meckenheim Email: [EMAIL PROTECTED] Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgröße: 45 Geschäftsführer: Rainer J. H. Brandt und Volker A. Brandt _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss