|
|
@ -77,13 +77,8 @@ char* set_status_and_del(config_all* _all_config) {
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[prjquota:" , config_disk_status->device, "]=disable ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[prjquota:" , config_disk_status->device, "]=disable ", NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (strlen(cmd) > 5) {
|
|
|
|
|
|
|
|
return cmd;
|
|
|
|
return cmd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char* wrapper_save_format_status_cmd_all(config_all* _all_config) {
|
|
|
|
char* wrapper_save_format_status_cmd_all(config_all* _all_config) {
|
|
|
|
char* cmd = save_format_status_cmd_all(&_all_config->v_user, &_all_config->v_disk_status);
|
|
|
|
char* cmd = save_format_status_cmd_all(&_all_config->v_user, &_all_config->v_disk_status);
|
|
|
@ -142,10 +137,13 @@ char* template_format_remove_save_device(config_all* _all_config, char* source_r
|
|
|
|
if (_all_config->v_disk_remove.vectorList.total > 0) {
|
|
|
|
if (_all_config->v_disk_remove.vectorList.total > 0) {
|
|
|
|
for (int i=0; i < _all_config->v_disk_remove.vectorList.total; i++) {
|
|
|
|
for (int i=0; i < _all_config->v_disk_remove.vectorList.total; i++) {
|
|
|
|
char* str_del = (char*)_all_config->v_disk_remove.pfVectorGet(&_all_config->v_disk_remove, i);
|
|
|
|
char* str_del = (char*)_all_config->v_disk_remove.pfVectorGet(&_all_config->v_disk_remove, i);
|
|
|
|
|
|
|
|
if (str_del) {
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[usrquota:" , str_del, "] ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[usrquota:" , str_del, "] ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[grpquota:" , str_del, "] ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[grpquota:" , str_del, "] ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[prjquota:" , str_del, "] ", NULL);
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[prjquota:" , str_del, "] ", NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (strlen(cmd)>5) {
|
|
|
|
if (strlen(cmd)>5) {
|
|
|
|
for (int i=0; i < _all_config->v_disk_remove.vectorList.total; i++) {
|
|
|
|
for (int i=0; i < _all_config->v_disk_remove.vectorList.total; i++) {
|
|
|
|