ia64/xen-unstable

changeset 584:fdb4cc73ddc7

bitkeeper revision 1.324 (3f0d277cpcr79eYnomJwVbvv_s1DPQ)

XenoLinux shouldn't export Xen device numbers to userspace if
possible; use physdev_to_xldev to convert back to XenoLinux
block device numbers.
author sos22@labyrinth.cl.cam.ac.uk
date Thu Jul 10 08:44:44 2003 +0000 (2003-07-10)
parents 28609bfc41a3
children e5cb8bd7ebfe
files xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment_proc.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c	Thu Jul 10 08:43:56 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c	Thu Jul 10 08:44:44 2003 +0000
     1.3 @@ -13,7 +13,7 @@
     1.4  extern int xenolinux_control_msg(int operration, char *buffer, int size);
     1.5  extern unsigned short xldev_to_physdev(kdev_t xldev);
     1.6  
     1.7 -static dev_t physdev_to_xldev(unsigned short physdev)
     1.8 +dev_t physdev_to_xldev(unsigned short physdev)
     1.9  {
    1.10      switch (physdev & XENDEV_TYPE_MASK) {
    1.11      case XENDEV_IDE:
     2.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment_proc.c	Thu Jul 10 08:43:56 2003 +0000
     2.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment_proc.c	Thu Jul 10 08:44:44 2003 +0000
     2.3 @@ -13,6 +13,7 @@
     2.4  static struct proc_dir_entry *vhd;
     2.5  
     2.6  extern unsigned short xldev_to_physdev(kdev_t xldev);
     2.7 +extern dev_t physdev_to_xldev(unsigned short physdev);
     2.8  
     2.9  static void *proc_vhd_next(struct seq_file *s, void *v, loff_t *pos)
    2.10  {
    2.11 @@ -50,7 +51,7 @@ static int proc_vhd_show(struct seq_file
    2.12  		data->segments[data->count - 1].domain,
    2.13  		data->segments[data->count - 1].seg_nr,
    2.14  		data->segments[data->count - 1].key,
    2.15 -		data->segments[data->count - 1].device);
    2.16 +		physdev_to_xldev(data->segments[data->count - 1].device));
    2.17  
    2.18      return 0;
    2.19  }