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

Diff of /grub/stage2/fsys_xfs.c

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

revision 1.1 by okuji, Sat Oct 27 16:04:25 2001 UTC revision 1.2 by okuji, Thu Feb 7 23:28:47 2002 UTC
# Line 1  Line 1 
1  /* fsys_xfs.c - an implementation for the SGI XFS file system */  /* fsys_xfs.c - an implementation for the SGI XFS file system */
2  /*    /*  
3   *  GRUB  --  GRand Unified Bootloader   *  GRUB  --  GRand Unified Bootloader
4   *  Copyright (C) 2001  Free Software Foundation, Inc.   *  Copyright (C) 2001,2002  Free Software Foundation, Inc.
5   *   *
6   *  This program is free software; you can redistribute it and/or modify   *  This program 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 499  xfs_read (char *buf, int len) Line 499  xfs_read (char *buf, int len)
499                          endofcur = (offset + xadlen) << xfs.blklog;                          endofcur = (offset + xadlen) << xfs.blklog;
500                          toread = (endofcur >= endpos)                          toread = (endofcur >= endpos)
501                                    ? len : (endofcur - filepos);                                    ? len : (endofcur - filepos);
502  #ifndef STAGE1_5  
503                          disk_read_func = disk_read_hook;                          disk_read_func = disk_read_hook;
 #endif /* STAGE1_5 */  
504                          devread (fsb2daddr (xad->start),                          devread (fsb2daddr (xad->start),
505                                   filepos - (offset << xfs.blklog), toread, buf);                                   filepos - (offset << xfs.blklog), toread, buf);
 #ifndef STAGE1_5  
506                          disk_read_func = NULL;                          disk_read_func = NULL;
507  #endif /* STAGE1_5 */  
508                          buf += toread;                          buf += toread;
509                          len -= toread;                          len -= toread;
510                          filepos += toread;                          filepos += toread;

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

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