Lines Matching defs:by

16  * fields enclosed by brackets "[]" replaced with your own identifying
85 static int build_usage_string(char *dname, char *by, char *data, char **use,
632 * Errors must be handled by the caller. The dm_descriptor_t *
667 * Errors must be handled by the caller. The dm_descriptor_t *
785 * This is done by assuming the following:
921 * Check a slice to see if it's being used by swap.
1012 char *by, *data;
1087 if (nvpair_value_string(nvwhat, &by)) {
1100 if (strcmp(by, DM_USE_LU) == 0 ||
1101 strcmp(by, DM_USE_FS) == 0 ||
1102 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
1106 by, data, msg, &found, errp) != 0) {
1116 if (strcmp(by, DM_USE_DUMP) == 0 ||
1117 strcmp(by, DM_USE_FS) == 0 ||
1118 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
1121 if (strcmp(by, DM_USE_LU) == 0 &&
1125 if (strcmp(by, DM_USE_VFSTAB) == 0 &&
1130 by, data, msg, &found, errp) != 0) {
1140 if ((strcmp(by, DM_USE_MOUNT) == 0 &&
1142 strcmp(by, DM_USE_DUMP) == 0 ||
1143 strcmp(by, DM_USE_FS) == 0 ||
1144 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
1148 by, data, msg, &found, errp)) {
1156 if (strcmp(by, DM_USE_FS) == 0 ||
1157 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0)
1160 by, data, msg, &found, errp) != 0) {
1167 if (strcmp(by, DM_USE_SPARE_ZPOOL) == 0)
1171 if (strcmp(by, DM_USE_FS) == 0 ||
1172 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0)
1177 by, data, msg, &found, errp) != 0) {
1184 if (strcmp(by, DM_USE_SPARE_ZPOOL) != 0) {
1185 if (build_usage_string(dev_blk_name, by,
1423 "%s is currently used by swap. Please see swap(1M)."
1456 "%s is in use by %s. Please see dumpadm(1M)."
1613 build_usage_string(char *dname, char *by, char *data, char **msg,
1623 dm_get_usage_string(by, data, &use);