/[pupa]/pupa/kern/disk.c
ViewVC logotype

Diff of /pupa/kern/disk.c

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

revision 1.2 by okuji, Thu Jan 2 20:12:32 2003 UTC revision 1.3 by marco_g, Wed Oct 29 18:44:29 2003 UTC
# Line 1  Line 1 
1  /*  /*
2   *  PUPA  --  Preliminary Universal Programming Architecture for GRUB   *  PUPA  --  Preliminary Universal Programming Architecture for GRUB
3   *  Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org>   *  Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org>
4     *  Copyright (C) 2003 Marco Gerards <metgerards@student.han.nl>
5   *   *
6   *  PUPA is free software; you can redistribute it and/or modify   *  PUPA is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 350  pupa_disk_read (pupa_disk_t disk, unsign Line 351  pupa_disk_read (pupa_disk_t disk, unsign
351                /* Uggh... Failed. Instead, just read necessary data.  */                /* Uggh... Failed. Instead, just read necessary data.  */
352                unsigned num;                unsigned num;
353    
354                  pupa_errno = PUPA_ERR_NONE;
355    
356                /* If more data is required, no way.  */                /* If more data is required, no way.  */
357                if (pos + size                if (pos + size
358                    >= (PUPA_DISK_SECTOR_SIZE << PUPA_DISK_CACHE_BITS))                    >= (PUPA_DISK_SECTOR_SIZE << PUPA_DISK_CACHE_BITS))

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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