Lines Matching defs:mirror
539 * Set the device size (for volume, mirror, stripe, concat) in bytes
577 * Get the device size (for volume, mirror, stripe, concat) in bytes
794 * Set the number of subcomponents in mirror
796 * @param mirror
797 * a devconfig_t representing the mirror to modify
801 * mirror
812 devconfig_t *mirror,
823 return (set_uint16(mirror->attributes, ATTR_MIRROR_NSUBMIRRORS, nsubs));
827 * Get number of subcomponents in mirror
833 * RETURN: number of subcomponents in mirror
844 devconfig_t *mirror,
848 mirror->attributes, ATTR_MIRROR_NSUBMIRRORS, nsubs);
860 * Set the read strategy for mirror
862 * @param mirror
863 * a devconfig_t representing the mirror to modify
866 * the value to set as the read strategy for mirror
877 devconfig_t *mirror,
880 return (set_uint16(mirror->attributes,
885 * Get read strategy for mirror
891 * RETURN: read strategy for mirror
902 devconfig_t *mirror,
906 int error = get_uint16(mirror->attributes, ATTR_MIRROR_READ, &val);
911 volume_set_error(gettext("mirror read strategy not set"));
924 * Set the write strategy for mirror
926 * @param mirror
927 * a devconfig_t representing the mirror to modify
930 * the value to set as the write strategy for mirror
941 devconfig_t *mirror,
944 return (set_uint16(mirror->attributes,
949 * Get write strategy for mirror
955 * RETURN: write strategy for mirror
966 devconfig_t *mirror,
970 int error = get_uint16(mirror->attributes, ATTR_MIRROR_WRITE, &val);
975 volume_set_error(gettext("mirror write strategy not set"));
988 * Set the resync pass for mirror
990 * @param mirror
991 * a devconfig_t representing the mirror to modify
994 * the value to set as the resync pass for mirror
1005 devconfig_t *mirror,
1011 gettext("mirror pass number (%d) out of valid range (0-%d)"),
1016 return (set_uint16(mirror->attributes, ATTR_MIRROR_PASSNUM, pass));
1020 * Get resync pass for mirror
1026 * RETURN: resync pass for mirror
1037 devconfig_t *mirror,
1040 int error = get_uint16(mirror->attributes, ATTR_MIRROR_PASSNUM, pass);
1044 volume_set_error(gettext("mirror pass number not set"));
1271 * If 0, a stripe will be created. If > 0, a mirror with
1396 * Set the HSP creation option (for volume, stripe, concat, mirror)
1420 * Get HSP creation option (for volume, stripe, concat, mirror)
1427 * concat, mirror)
1491 * Get the string representation of the mirror's read strategy
1516 * Get the string representation of the mirror's write strategy
1613 printf("%s mirror nsubs: %d\n", prefix, val16);
1618 printf("%s mirror read: %s\n", prefix,
1624 printf("%s mirror write: %s\n", prefix,
1630 printf("%s mirror pass: %d\n", prefix, val16);