Lines Matching refs:by

16  * fields enclosed by brackets "[]" replaced with your own identifying
64 static int build_usage_string(char *dname, char *by, char *data, char **use,
515 * Errors must be handled by the caller. The dm_descriptor_t *
550 * Errors must be handled by the caller. The dm_descriptor_t *
668 * This is done by assuming the following:
802 * Check a slice to see if it's being used by swap.
850 char *by, *data;
944 if (nvpair_value_string(nvwhat, &by)) {
957 if (strcmp(by, DM_USE_LU) == 0 ||
958 strcmp(by, DM_USE_FS) == 0 ||
959 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
963 by, data, msg, &found, errp) != 0) {
973 if (strcmp(by, DM_USE_DUMP) == 0 ||
974 strcmp(by, DM_USE_FS) == 0 ||
975 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
978 if (strcmp(by, DM_USE_LU) == 0 &&
982 if (strcmp(by, DM_USE_VFSTAB) == 0 &&
987 by, data, msg, &found, errp) != 0) {
997 if ((strcmp(by, DM_USE_MOUNT) == 0 &&
999 strcmp(by, DM_USE_DUMP) == 0 ||
1000 strcmp(by, DM_USE_FS) == 0 ||
1001 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0) {
1005 by, data, msg, &found, errp)) {
1013 if (strcmp(by, DM_USE_FS) == 0 ||
1014 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0)
1017 by, data, msg, &found, errp) != 0) {
1025 if (strcmp(by, DM_USE_FS) == 0 ||
1026 strcmp(by, DM_USE_EXPORTED_ZPOOL) == 0)
1031 by, data, msg, &found, errp) != 0) {
1038 if (strcmp(by, DM_USE_SPARE_ZPOOL) != 0) {
1039 if (build_usage_string(dname, by,
1076 "%s is currently used by swap. Please see swap(1M)."
1109 "%s is in use by %s. Please see dumpadm(1M)."
1266 build_usage_string(char *dname, char *by, char *data, char **msg,
1276 dm_get_usage_string(by, data, &use);