--- a/usr/src/cmd/allocate/allocate3.c Sat Jan 14 11:23:48 2006 -0800
+++ b/usr/src/cmd/allocate/allocate3.c Sun Jan 15 08:23:20 2006 -0800
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -588,6 +588,7 @@
char *list;
int error = 0;
int bytes_formated;
+ int deallocate_optflg = 0;
bytes_formated = snprintf(file_name, MAXPATHLEN, "%s/%s", DAC_DIR,
dev_ent->da_devname);
@@ -608,7 +609,12 @@
if (DEV_ALLOCATED(stat_buf)) {
if (optflg & FORCE) {
- if (deallocate_dev(FORCE, dev_ent, uid)) {
+ if (optflg & SILENT)
+ deallocate_optflg = FORCE|SILENT;
+ else
+ deallocate_optflg = FORCE;
+
+ if (deallocate_dev(deallocate_optflg, dev_ent, uid)) {
dprintf("Couldn't force deallocate device %s\n",
dev_ent->da_devname);
return (CNTFRC);