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

Diff of /grub/stage2/disk_io.c

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

revision 1.50 by okuji, Fri Jul 5 22:15:57 2002 UTC revision 1.51 by okuji, Fri Nov 29 17:56:38 2002 UTC
# Line 148  rawread (int drive, int sector, int byte Line 148  rawread (int drive, int sector, int byte
148            buf_track = -1;            buf_track = -1;
149          }          }
150    
151          /* Make sure that SECTOR is valid.  */
152          if (sector < 0 || sector >= buf_geom.total_sectors)
153            {
154              errnum = ERR_GEOM;
155              return 0;
156            }
157          
158        /*  Get first sector of track  */        /*  Get first sector of track  */
159        soff = sector % buf_geom.sectors;        soff = sector % buf_geom.sectors;
160        track = sector - soff;        track = sector - soff;
# Line 381  static void Line 388  static void
388  attempt_mount (void)  attempt_mount (void)
389  {  {
390  #ifndef STAGE1_5  #ifndef STAGE1_5
391    for (fsys_type = 0; fsys_type < NUM_FSYS    for (fsys_type = 0; fsys_type < NUM_FSYS; fsys_type++)
392         && (*(fsys_table[fsys_type].mount_func)) () != 1; fsys_type++);      if ((fsys_table[fsys_type].mount_func) ())
393          break;
394    
395    if (fsys_type == NUM_FSYS && errnum == ERR_NONE)    if (fsys_type == NUM_FSYS && errnum == ERR_NONE)
396      errnum = ERR_FSYS_MOUNT;      errnum = ERR_FSYS_MOUNT;

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

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