/[grub]/grub/stage2/builtins.c
ViewVC logotype

Diff of /grub/stage2/builtins.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.140 by okuji, Mon Dec 2 22:37:52 2002 UTC revision 1.141 by okuji, Wed Dec 4 04:43:23 2002 UTC
# Line 1044  embed_func (char *arg, int flags) Line 1044  embed_func (char *arg, int flags)
1044                
1045        char mbr[SECTOR_SIZE];        char mbr[SECTOR_SIZE];
1046        char ezbios_check[2*SECTOR_SIZE];        char ezbios_check[2*SECTOR_SIZE];
1047          int i;
1048          
1049        /* Open the partition.  */        /* Open the partition.  */
1050        if (! open_partition ())        if (! open_partition ())
1051          return 1;          return 1;
# Line 1068  embed_func (char *arg, int flags) Line 1069  embed_func (char *arg, int flags)
1069          }          }
1070    
1071        /* Check if the disk can store the Stage 1.5.  */        /* Check if the disk can store the Stage 1.5.  */
1072        if (PC_SLICE_START (mbr, 0) - 1 < size)        for (i = 0; i < 4; i++)
1073          {          if (PC_SLICE_TYPE (mbr, i) && PC_SLICE_START (mbr, i) - 1 < size)
1074            errnum = ERR_NO_DISK_SPACE;            {
1075            return 1;              errnum = ERR_NO_DISK_SPACE;
1076          }              return 1;
1077              }
1078          
1079        /* Check for EZ-BIOS signature. It should be in the third        /* Check for EZ-BIOS signature. It should be in the third
1080         * sector, but due to remapping it can appear in the second, so         * sector, but due to remapping it can appear in the second, so
1081         * load and check both.           * load and check both.  

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26