diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2022-05-09 09:52:26 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2022-05-09 12:57:36 +0200 |
commit | 4e5b17ce6dcafa2818114c49fcff71af5afcdd26 (patch) | |
tree | 94ebba6031805761232c05342ee23e8d21e602dd /tests/units | |
parent | a3cf8d150a5b0450548a967c5dea40b7fb020d4f (diff) |
probe: detect 64 bit operating systems
OpenGnsys partition images store OS information, including
the OS name appended with "64 bits" when the OS is meant for 64 bit
machines.
The detected OS name when probing (refresh) is important, if it differs
from what's stored in the DB OpenGnsys will wipe last image restored
information when running a refresh.
See actualizaConfiguracion from legacy ogserver (ogAdmServer.c) code:
dato = dbi_result_get_uint(result, "idnombreso");
if (idsoi == dato) {
swu = false;
}
...
if (swu) {
result_update = dbi_conn_queryf(dbi->conn,
"UPDATE ordenadores_particiones SET "
" codpar=0x%s,"
" tamano=%s,"
" uso=%s,"
" idsistemafichero=%d,"
" idnombreso=%d,"
" idimagen=0,"
" idperfilsoft=0,"
" fechadespliegue=NULL"
" WHERE idordenador=%d AND numdisk=%s AND numpar=%s",
Diffstat (limited to 'tests/units')
0 files changed, 0 insertions, 0 deletions