8
+get_xvd_disk_name (char *name, int unit)
11
+ sprintf (name, "/dev/xvd%c", unit + 'a');
13
+# warning "Xen XVD drives cannot be guessed in your operating system."
19
get_dac960_disk_name (char *name, int controller, int drive)
27
+ /* Xen Virtual Disks. */
28
+ for (i = 0; i < 16; i++)
32
+ get_xvd_disk_name (name, i);
33
+ if (check_device (name))
35
+ (*map)[num_hd + 0x80] = strdup (name);
36
+ assert ((*map)[num_hd + 0x80]);
38
+ /* If the device map file is opened, write the map. */
40
+ fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
48
/* This is for DAC960 - we have
49
/dev/rd/c<controller>d<logical drive>p<partition>.