]> git.llucax.com Git - z.facultad/75.06/emufs.git/commitdiff
* Muestro los id/bloque en pantalla
authorRicardo Markiewicz <gazer.arg@gmail.com>
Mon, 5 Apr 2004 21:17:47 +0000 (21:17 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Mon, 5 Apr 2004 21:17:47 +0000 (21:17 +0000)
tipo3/emufs.c

index 4690093ed7cfa27b12c50aa2ab38b1606f33ee29..71e9dd00ceefcbfe2c44bdb0f00843b8275a0869 100644 (file)
@@ -148,5 +148,21 @@ int ver_archivo_FS(EMUFS *emu)
        }
        
        fclose(f_block_free);
+
+       /* Imprimo la lista de bloques/registros */
+       strcpy(name_f_block_free,emu->nombre);
+       strcat(name_f_block_free,".id3");
+       {
+               BLOCK_REG_T r;
+               f_block_free = fopen(name_f_block_free, "r");
+               fread(&r, sizeof(BLOCK_REG_T), 1, f_block_free);
+               while (!feof(f_block_free)) {
+                       printf("ID %d en bloque %d\n", r.id_reg, r.block);
+                       fread(&r, sizeof(BLOCK_REG_T), 1, f_block_free);
+               }
+               fclose(f_block_free);
+       }
+       
+       
        return 0;
 }