I'll answer my own question...
no, not to be added, since I was not following the correct semantics:

instead of
disk_read_func = NULL;
disk_read_hook = blocklist_func;
fat_read(buffer, sizeof(buffer));
...
int devread(int sector, int byte_offset, int byte_len, char* buf) {
...
   if (disk_read_hook) {
      (*disk_read_hook) (sector_num, byte_offset, length);
   }
...
}
one should use

disk_read_func = disk_read_hook = blocklist_func;
fat_read(buffer, sizeof(buffer));
...
int devread(int sector, int byte_offset, int byte_len, char* buf) {
...
   if (disk_read_hook && disk_read_func) {
      (*disk_read_hook) (sector_num, byte_offset, length);
   }
...
}

_________________________________________________________________




_______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to