FreeBSD/sys/boot/i386/zfsboot/zfsboot.c
/*
 * We call this when we find a ZFS vdev - ZFS consumes the dsk
 * structure so we must make a new one.
 */
We call this when we find a ZFS vdev - ZFS consumes the dsk
structure so we must make a new one.
We call this when we find a ZFS vdev - ZFS consumes the dsk structure so we must make a new one .
static struct dsk *
copy_dsk(struct dsk *dsk)
{
    struct dsk *newdsk;
    newdsk = malloc(sizeof(struct dsk));
    *newdsk = *dsk;
    return (newdsk);
}
static struct dsk * copy_dsk ( struct dsk * dsk ) { struct dsk * newdsk ; newdsk = malloc ( sizeof ( struct dsk ) ) ; * newdsk = * dsk ; return ( newdsk ) ; }
We call this when we find a ZFS vdev - ZFS consumes the dsk
 structure so we must make a new one.
We call this when we find a ZFS vdev - ZFS consumes the dsk structure so we must make a new one .