|
|
|
@ -77,12 +77,7 @@ char* set_status_and_del(config_all* _all_config) {
|
|
|
|
|
cmd = yon_char_unite(cmd, " DISK_QUOTA[prjquota:" , config_disk_status->device, "]=disable ", NULL);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (strlen(cmd) > 5) {
|
|
|
|
|
return cmd;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
return cmd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char* wrapper_save_format_status_cmd_all(config_all* _all_config) {
|
|
|
|
@ -142,9 +137,12 @@ char* template_format_remove_save_device(config_all* _all_config, char* source_r
|
|
|
|
|
if (_all_config->v_disk_remove.vectorList.total > 0) {
|
|
|
|
|
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);
|
|
|
|
|
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[prjquota:" , str_del, "] ", NULL);
|
|
|
|
|
if (str_del) {
|
|
|
|
|
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[prjquota:" , str_del, "] ", NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (strlen(cmd)>5) {
|
|
|
|
|