[parted-edge] [PATCH] Add 'xvd' to the transports array in do_print
David Cantrell
dcantrell at redhat.com
Tue Nov 6 21:20:15 UTC 2007
For the parted print command, add 'xvd' to the transports array so there is
a matching string to display when we print a line for Xen virtual block
device.
---
parted/parted.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/parted/parted.c b/parted/parted.c
index 6a606ae..738151b 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1226,7 +1226,7 @@ partition_print (PedPartition* part)
putchar ('\n');
flags = partition_print_flags (part);
-
+
printf (_("Minor: %d\n"), part->num);
printf (_("Flags: %s\n"), flags);
printf (_("File System: %s\n"), fs->type->name);
@@ -1264,9 +1264,10 @@ do_print (PedDevice** dev)
int has_free_arg = 0;
int has_list_arg = 0;
int has_num_arg = 0;
- char* transport[13] = {"unknown", "scsi", "ide", "dac960",
+ char* transport[14] = {"unknown", "scsi", "ide", "dac960",
"cpqarray", "file", "ataraid", "i2o",
- "ubd", "dasd", "viodasd", "sx8", "dm"};
+ "ubd", "dasd", "viodasd", "sx8", "dm",
+ "xvd"};
char* peek_word;
char* start;
char* end;
--
1.5.3.4
More information about the parted-edge
mailing list