mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
BPB patching support (untested)
This commit is contained in:
1 parent
850e937329
commit
b38a498394
6 files changed
+99
-59
No files matched your search
@@ -21,10 +21,7 @@
|
||||
|
||||
#include <grub/dl.h>
|
||||
|
||||
/* Common function for normal and rescue mode commands. */
|
||||
typedef enum
|
||||
{
|
||||
GRUB_CHAINLOADER_FORCE = 0x1
|
||||
} grub_chainloader_flags_t;
|
||||
void
|
||||
grub_chainloader_patch_bpb (void *bs, grub_device_t dev, grub_uint8_t dl);
|
||||
|
||||
#endif /* GRUB_CHAINLOADER_MACHINE_HEADER */
|
||||
+5
-3
@@ -106,14 +106,16 @@ struct grub_ntfs_bpb
|
||||
grub_uint16_t sectors_per_track;
|
||||
grub_uint16_t num_heads;
|
||||
grub_uint32_t num_hidden_sectors;
|
||||
grub_uint32_t reserved_3[2];
|
||||
grub_uint32_t reserved_3;
|
||||
grub_uint8_t bios_drive;
|
||||
grub_uint8_t reserved_4[3];
|
||||
grub_uint64_t num_total_sectors;
|
||||
grub_uint64_t mft_lcn;
|
||||
grub_uint64_t mft_mirr_lcn;
|
||||
grub_int8_t clusters_per_mft;
|
||||
grub_int8_t reserved_4[3];
|
||||
grub_int8_t clusters_per_index;
|
||||
grub_int8_t reserved_5[3];
|
||||
grub_int8_t clusters_per_index;
|
||||
grub_int8_t reserved_6[3];
|
||||
grub_uint64_t num_serial;
|
||||
grub_uint32_t checksum;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
Reference in new issue
Block a user