Deleted Added
full compact
vdev_label.c (249921) vdev_label.c (251629)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1030 unchanged lines hidden (view full) ---

1039 vdev_label_write(zio, vd, l, ubbuf,
1040 VDEV_UBERBLOCK_OFFSET(vd, n), VDEV_UBERBLOCK_SIZE(vd),
1041 vdev_uberblock_sync_done, zio->io_private,
1042 flags | ZIO_FLAG_DONT_PROPAGATE);
1043
1044 zio_buf_free(ubbuf, VDEV_UBERBLOCK_SIZE(vd));
1045}
1046
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1030 unchanged lines hidden (view full) ---

1039 vdev_label_write(zio, vd, l, ubbuf,
1040 VDEV_UBERBLOCK_OFFSET(vd, n), VDEV_UBERBLOCK_SIZE(vd),
1041 vdev_uberblock_sync_done, zio->io_private,
1042 flags | ZIO_FLAG_DONT_PROPAGATE);
1043
1044 zio_buf_free(ubbuf, VDEV_UBERBLOCK_SIZE(vd));
1045}
1046
1047/* Sync the uberblocks to all vdevs in svd[] */
1047int
1048vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags)
1049{
1050 spa_t *spa = svd[0]->vdev_spa;
1051 zio_t *zio;
1052 uint64_t good_writes = 0;
1053
1054 zio = zio_root(spa, NULL, &good_writes, flags);

--- 253 unchanged lines hidden ---
1048int
1049vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags)
1050{
1051 spa_t *spa = svd[0]->vdev_spa;
1052 zio_t *zio;
1053 uint64_t good_writes = 0;
1054
1055 zio = zio_root(spa, NULL, &good_writes, flags);

--- 253 unchanged lines hidden ---