|
原始讨论在 reboot.pro:
http://reboot.pro/topic/21972-reducing-wimboot-source-wim-file-using-lzx-compression-and-vhd-using-gzip-compression-to-save-room-and-also-load-faster-on-ram/page-2
第 50 楼 karyonix 的发言:
See the diff of stage2/dec_vhd.c in 2017-12-23.
https://github.com/chenall/grub4dos/commit/05379e7b66b71e5665bc5bedda75a58ca74c485a#diff-8f02b0c8853e02d562dc585d418454e3
The codes to read hard disk footer in line 185 and read dynamic disk header in line 209 were just "disabled".
有问题的更动如下:
- stage2/dec_vhd.c
- @@ -182,7 +182,7 @@ dec_vhd_open(void)
- memset(&footer, 0, sizeof(footer));
- memset(&dynaheader, 0, sizeof(dynaheader));
- - int bytesread = (int)grub_read((unsigned long)&footer, 0x200, 0xedde0d90);
- + //int bytesread = (int)grub_read((unsigned long)&footer, 0x200, 0xedde0d90);
- //if (bytesread < 511) {
- // grub_printf("bytesread %d < 511\n",bytesread);
- @@ -206,7 +206,7 @@ dec_vhd_open(void)
- goto quit;
- }
- filepos = footer.dataOffset;
- - bytesread = (int)grub_read((unsigned long)&dynaheader, sizeof(dynaheader), 0xedde0d90);
- + //bytesread = (int)grub_read((unsigned long)&dynaheader, sizeof(dynaheader), 0xedde0d90);
- // }
- vhdfc = (VHDFileControl*) grub_malloc(sizeof(VHDFileControl));
复制代码
这个更动导致动态 VHD 不再能够支持了。
|
|