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

Diff of /grub/stage2/fsys_jfs.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_jfs.c - an implementation for the IBM JFS file system */  /* fsys_jfs.c - an implementation for the IBM JFS 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 243  jfs_read (char *buf, int len) Line 243  jfs_read (char *buf, int len)
243                          endofcur = (offset + xadlen) << jfs.l2bsize;                          endofcur = (offset + xadlen) << jfs.l2bsize;
244                          toread = (endofcur >= endpos)                          toread = (endofcur >= endpos)
245                                    ? len : (endofcur - filepos);                                    ? len : (endofcur - filepos);
246  #ifndef STAGE1_5  
247                          disk_read_func = disk_read_hook;                          disk_read_func = disk_read_hook;
 #endif /* STAGE1_5 */  
248                          devread (addressXAD (xad) << jfs.bdlog,                          devread (addressXAD (xad) << jfs.bdlog,
249                                   filepos - (offset << jfs.l2bsize), toread, buf);                                   filepos - (offset << jfs.l2bsize), toread, buf);
 #ifndef STAGE1_5  
250                          disk_read_func = NULL;                          disk_read_func = NULL;
251  #endif /* STAGE1_5 */  
252                          buf += toread;                          buf += toread;
253                          len -= toread;                          len -= toread;
254                          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