Modifying the bio struct (in bio.h)
I am currently attempting to modify the bio struct in bio.h for linux-3.2.0. All I need to do to this structure, at the moment, is add an additional integer variable to the existing structure, but simply adding "int var;" to the struct leads to an error while booting.
Specifically, the boot sequence stops with:
Gave up wiating for root device. Common problems:
- Boot args
- check rootdelay= ...
- check root= ...
- missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/15448888-84a0-4ccf-a02a-0feb3f150a84 does not exist. Dropping to a shell!
BusyBox Built In Shell ...
I explored the file system with BusyBox and the target disk is not perceivable (whether by UUID or otherwise).
Since all I have done is add a variable and re-compile my best guess is that the struct is no longer being allocated correctly when used, as the size will have changed. I have had no success in troubleshooting this error and so, naturally, I go to the internet.
Would anyone have any insight as to what may be happening or how to fix it? I would also appreciate any suggestions as to how to properly go about such things in the future.