ia64/xen-unstable

changeset 510:1578c9d17ead

bitkeeper revision 1.277 (3f093458V0BnMrGcVZUOCtq7SB5u8w)

Oops... we should only add partitions to one disk, not all of them...
author sos22@labyrinth.cl.cam.ac.uk
date Mon Jul 07 08:50:32 2003 +0000 (2003-07-07)
parents 97998d775764
children f47cba6ba7af
files xenolinux-2.4.21-sparse/fs/partitions/xeno.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/fs/partitions/xeno.c	Fri Jul 04 16:38:59 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/fs/partitions/xeno.c	Mon Jul 07 08:50:32 2003 +0000
     1.3 @@ -42,6 +42,11 @@ int xeno_partition(struct gendisk *hd,
     1.4    for (i = 0; i < buf->n_aces; i++) {
     1.5      if ((buf->entries[i].device & 0x1f) == 0)
     1.6        continue;
     1.7 +    /* Make sure the partition is actually supposed to be on this
     1.8 +       disk.  This assumes that Xen and XenoLinux block device
     1.9 +       numbers match up. */
    1.10 +    if ((buf->entries[i].device & ~0x1f) != bdev->bd_dev)
    1.11 +      continue;
    1.12      /* This is a bit of a hack - the partition numbers are specified
    1.13         by the hypervisor, and if we want them to match up, this is
    1.14         what we need to do. */
    1.15 @@ -52,5 +57,6 @@ int xeno_partition(struct gendisk *hd,
    1.16  		     buf->entries[i].n_sectors);
    1.17    }
    1.18    kfree(buf);
    1.19 +  printk("\n");
    1.20    return 1;
    1.21  }