Searched defs:replacing (Results 1 - 8 of 8) sorted by relevance

/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Def10_filter.c557 boolean_t replacing = B_FALSE; local
648 replacing = B_TRUE;
664 * On replacing the filter handle may change after after a successful
667 if (replacing) {
687 if (replacing) {
710 if (!replacing) {
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_mirror.c321 * 1) We are a replacing vdev (ie our name is "replacing-1" or
338 boolean_t replacing = (vd->vdev_ops == &vdev_replacing_ops || local
342 mm = vdev_mirror_map_alloc(vd->vdev_children, replacing,
679 * XXX -- for replacing vdevs, there's no great answer.
H A Dspa.c6188 * If 'replacing' is specified, the new device is intended to replace the
6190 * mirror using the 'replacing' vdev, which is functionally identical to
6197 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
6243 if ((error = vdev_create(newrootvd, txg, replacing)) != 0)
6252 if (!replacing) {
6275 * want to create a replacing vdev. The user is not allowed to
6327 * If the parent is not a mirror, or if we're replacing, insert the new
6328 * mirror/replacing/spare vdev above oldvd.
6399 replacing && newvd_isspare ? "spare in" :
6400 replacing
[all...]
H A Dzfs_ioctl.c101 * caller's buffer, by removing some entries and replacing them with a
2062 int replacing = zc->zc_cookie; local
2071 error = spa_vdev_attach(spa, zc->zc_guid, config, replacing);
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c679 * If this is a replacing or spare vdev, then
681 * in a loop because replacing and spare vdevs
1160 boolean_t replacing, boolean_t isspare)
1182 if (replacing) {
1203 if (is_device_in_use(config, child[c], force, replacing,
1210 if (is_device_in_use(config, child[c], force, replacing,
1217 if (is_device_in_use(config, child[c], force, replacing,
1634 boolean_t replacing, boolean_t dryrun, zpool_boot_label_t boot_type,
1658 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1159 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument
1633 make_root_vdev(zpool_handle_t *zhp, nvlist_t *props, int force, int check_rep, boolean_t replacing, boolean_t dryrun, zpool_boot_label_t boot_type, uint64_t boot_size, int argc, char **argv) argument
H A Dzpool_main.c5506 zpool_do_attach_or_replace(int argc, char **argv, int replacing) argument
5565 if (!replacing) {
5615 nvroot = make_root_vdev(zhp, props, force, B_FALSE, replacing, B_FALSE,
5622 ret = zpool_vdev_attach(zhp, old_disk, new_disk, nvroot, replacing);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c3035 * If 'replacing' is specified, the new disk will replace the old one.
3039 const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing)
3054 if (replacing)
3073 zc.zc_cookie = replacing;
3093 if (replacing &&
3105 if (replacing && avail_spare && !vdev_is_online(newvd)) {
3135 if (replacing) {
3144 "already in replacing/spare config; wait "
3148 "cannot replace a replacing device"));
3244 "applicable to mirror and replacing vdev
3038 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument
[all...]
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c3220 int replacing; local
3249 replacing = ztest_random(2);
3346 * unless it's a replace; in that case any non-replacing parent is OK.
3353 pvd->vdev_ops != &vdev_root_ops && (!replacing ||
3357 else if (newvd_is_spare && (!replacing || oldvd_is_log))
3360 expected_error = replacing ? 0 : EBUSY;
3378 error = spa_vdev_attach(spa, oldguid, root, replacing);
3383 * If our parent was the replacing vdev, but the replace completed,
3406 newsize, replacing, error, expected_error);

Completed in 117 milliseconds