X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/1cded9108ca388be764e0ac32118dca6df540e86..6ff6f59b68b8382ed8f663698e8a56ba3804ff27:/emufs/b_plus_test.c?ds=sidebyside diff --git a/emufs/b_plus_test.c b/emufs/b_plus_test.c index 226e73f..996603b 100644 --- a/emufs/b_plus_test.c +++ b/emufs/b_plus_test.c @@ -8,10 +8,11 @@ INDEX_DAT querydata; /* Creamos un handler EMUFS, luego un Indice B+ y testing... */ INDEXSPECS indice; -indice.tam_bloque = 48; +indice.tam_bloque = SIZE_B_PLUS_HEADER + sizeof(int)*4 + sizeof(int)*5; indice.size_claves = (indice.tam_bloque - SIZE_B_PLUS_HEADER - sizeof(int))/2; indice.size_hijos = indice.size_claves + sizeof(int); indice.filename = "idxbplus_primary.idx"; +printf("\nTam Nodo: %i Size Claves: %i Size_Hijos: %i\n",indice.tam_bloque,indice.size_claves,indice.size_hijos); emufs_b_plus_crear(&indice); /* Pedimos al arbol el nro de bloque donde guardar la clave 5. Should */