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.c320 * 1) We are a replacing vdev (ie our name is "replacing-1" or
337 boolean_t replacing = (vd->vdev_ops == &vdev_replacing_ops || local
341 mm = vdev_mirror_map_alloc(vd->vdev_children, replacing,
678 * XXX -- for replacing vdevs, there's no great answer.
H A Dzfs_ioctl.c93 * caller's buffer, by removing some entries and replacing them with a
2040 int replacing = zc->zc_cookie; local
2049 error = spa_vdev_attach(spa, zc->zc_guid, config, replacing);
H A Dspa.c6124 * If 'replacing' is specified, the new device is intended to replace the
6126 * mirror using the 'replacing' vdev, which is functionally identical to
6133 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
6179 if ((error = vdev_create(newrootvd, txg, replacing)) != 0)
6188 if (!replacing) {
6211 * want to create a replacing vdev. The user is not allowed to
6263 * If the parent is not a mirror, or if we're replacing, insert the new
6264 * mirror/replacing/spare vdev above oldvd.
6335 replacing && newvd_isspare ? "spare in" :
6336 replacing
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c678 * If this is a replacing or spare vdev, then
680 * in a loop because replacing and spare vdevs
1159 boolean_t replacing, boolean_t isspare)
1181 if (replacing) {
1202 if (is_device_in_use(config, child[c], force, replacing,
1209 if (is_device_in_use(config, child[c], force, replacing,
1216 if (is_device_in_use(config, child[c], force, replacing,
1633 boolean_t replacing, boolean_t dryrun, zpool_boot_label_t boot_type,
1657 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1158 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument
1632 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.c4078 zpool_do_attach_or_replace(int argc, char **argv, int replacing) argument
4137 if (!replacing) {
4187 nvroot = make_root_vdev(zhp, props, force, B_FALSE, replacing, B_FALSE,
4194 ret = zpool_vdev_attach(zhp, old_disk, new_disk, nvroot, replacing);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c3040 * If 'replacing' is specified, the new disk will replace the old one.
3044 const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing)
3059 if (replacing)
3078 zc.zc_cookie = replacing;
3097 if (replacing &&
3135 if (replacing) {
3144 "already in replacing/spare config; wait "
3148 "cannot replace a replacing device"));
3244 "applicable to mirror and replacing vdevs"));
3043 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument
/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 295 milliseconds