- local = elem = QueueTop(elem);
- if (verbose) {
- sprintf(buf, "User %s has quotas on the following filsystems:");
- Put_message(buf);
- while (local != NULL) {
- char ** info = (char **) local->q_data;
- sprintf(buf, "Filesystem:\t%s\t\tQuota(in Kb):\t%s",
- info[0], info[4]);
- Put_message(buf);
- local = local->q_forw;
- }
- ans = YesNoQuestion("Remove ** ALL ** these quota entries (y/n)?",
- TRUE);
- if (ans != TRUE) {
- Put_message("Aborting..\n\n");
- return(SUB_ERROR);
- }
- }
- local = elem;
- args[1] = name;
- while (local != elem) {
- char ** info = (char **) local->q_data;
- args[0] = info[0];
- status = sms_query("delete_nfs_quota", 2, args, Scream, (char *) NULL);
- if (status != 0 && status != SMS_NO_MATCH) {
- sprintf(buf,
- "Could not remove quota on filesystem %s. ** ABORTING **",
- args[0]);
- Put_message(buf);
- com_err(program_name, status, (char *) NULL);
- FreeQueue(elem);
- return(SUB_ERROR);
- }
- local = local->q_forw;
- }
- FreeQueue(elem);