2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * return 1 if in use 2N/A * return 0 if not in use 2N/A * return -1 on error 2N/A * look into II config to see if this is being used elsewhere 2N/A for (i = 0; ; i++) {
2N/A * got master shadow bitmap, now compare 2N/A "bitmap %s is in use by" 2N/A * and last but not least, make sure sndr is not using vol for anything 2N/A for (i = 0; ; i++) {
2N/A * I think this is quicker than 2N/A * having to double dip into the config 2N/A "bitmap %s is in use by %s"),
2N/A "bitmap %s is in use by %s"),
2N/A * read this logic 1000 times and consider 2N/A * multi homed, one to many, many to one (marketing) 2N/A * etc, etc, before changing 2N/A " %s is in use by %s"),
2N/A " %s is in use by %s"),
2N/A }
else {
/* self_check(hostp) failed */ 2N/A " %s is in use by %s"),
2N/A " %s is in use by %s"),
2N/A * check where this disk service is mastered 2N/A "active on node \"%s\"\nPlease re-issue " 2N/A * Check for the special (local) cluster tag 2N/A * If we could get a list of logical hosts on this cluster 2N/A * then we could print something intelligent about where 2N/A * the volume is mastered. For now, just print some babble 2N/A * about the fact that we have no idea. 2N/A * If implicit disk group name and no ctag specified by user, 2N/A * we set the ctag to it. 2N/A * If implicit disk group name, it must match any supplied ctag. 2N/A /* errors already set */ 2N/A * making an exception here for users giving the "local"tag 2N/A * this overrides this error message. (rdc_islocal ! = 1) 2N/A "match disk group name \"%s\" of volume %s"),
ctag,
2N/A * we must have a non-volume managed disk here 2N/A * so ask for a tag and get out 2N/A " of a disk group,\nplease specify resource ctag\n"),
2N/A * Local bitmap must also have same ctag. 2N/A /* error already set */ 2N/A /* File is in a real disk group */ 2N/A /* Bitmap is not in a real disk group */ 2N/A "match disk group name \"%s\" of bitmap %s"),
2N/A /* Assume the worst, that it is mounted */ 2N/A /* found something before EOF */ 2N/A dgettext(
"librdc",
"volumes and bitmaps must not match"));
2N/A /* rdc_error should already be set */ 2N/A }
else {
/* on the secondary */