~ubuntu-branches/debian/sid/grub2/sid-200907171837

« back to all changes in this revision

Viewing changes to fs/fshelp.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2006-10-14 21:19:21 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061014211921-ge29q0dowqxicngk
Tags: 1.95-1
* New upstream release.
  - patches/03_revert_partition_numbering.diff: Delete (obsoleted).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* fshelp.c -- Filesystem helper functions */
2
2
/*
3
3
 *  GRUB  --  GRand Unified Bootloader
4
 
 *  Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
4
 *  Copyright (C) 2004,2005,2006  Free Software Foundation, Inc.
5
5
 *
6
6
 *  GRUB is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
222
222
   blocks have a size of LOG2BLOCKSIZE (in log2).  */
223
223
grub_ssize_t
224
224
grub_fshelp_read_file (grub_disk_t disk, grub_fshelp_node_t node,
225
 
                       void (*read_hook) (unsigned long sector,
 
225
                       void (*read_hook) (grub_disk_addr_t sector,
226
226
                                          unsigned offset, unsigned length),
227
 
                       int pos, unsigned int len, char *buf,
 
227
                       int pos, grub_size_t len, char *buf,
228
228
                       int (*get_block) (grub_fshelp_node_t node, int block),
229
 
                       unsigned int filesize, int log2blocksize)
 
229
                       grub_off_t filesize, int log2blocksize)
230
230
{
231
231
  int i;
232
232
  int blockcnt;