~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to disk/loopback.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-05-27 11:32:41 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527113241-033nau9g4yfsr5ps
Tags: 1.96+20080512-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Adjust debian/default/grub for default Ubuntu boot options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
static const struct grub_arg_option options[] =
39
39
  {
40
40
    {"delete", 'd', 0, "delete the loopback device entry", 0, 0},
41
 
    {"partitions", 'p', 0, "set that the drive has partitions to"
42
 
     " simulate a harddrive", 0, 0},
 
41
    {"partitions", 'p', 0, "simulate a hard drive with partitions", 0, 0},
43
42
    {0, 0, 0, 0, 0, 0}
44
43
  };
45
44
 
178
177
  /* Use the filesize for the disk size, round up to a complete sector.  */
179
178
  disk->total_sectors = ((file->size + GRUB_DISK_SECTOR_SIZE - 1)
180
179
                         / GRUB_DISK_SECTOR_SIZE);
181
 
  disk->id = (int) dev;
 
180
  disk->id = (unsigned long) dev;
182
181
  
183
182
  disk->has_partitions = dev->has_partitions;
184
183
  disk->data = file;