mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
storage: disk: Fix parthelper '-g' option handling.
Typo was breaking 'parthelper -g', preventing disk pool definition.
This commit is contained in:
parent
8f84fef2eb
commit
a3711708f7
@ -36,7 +36,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* we don't need to include the full internal.h just for this */
|
/* we don't need to include the full internal.h just for this */
|
||||||
#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
|
#define STREQ(a,b) (strcmp((a),(b)) == 0)
|
||||||
|
|
||||||
/* Make the comparisons below fail if your parted headers
|
/* Make the comparisons below fail if your parted headers
|
||||||
are so old that they lack the definition. */
|
are so old that they lack the definition. */
|
||||||
@ -56,7 +56,7 @@ int main(int argc, char **argv)
|
|||||||
PedPartition *part;
|
PedPartition *part;
|
||||||
int cmd = DISK_LAYOUT;
|
int cmd = DISK_LAYOUT;
|
||||||
|
|
||||||
if (argc == 3 && STRNEQ(argv[2], "-g")) {
|
if (argc == 3 && STREQ(argv[2], "-g")) {
|
||||||
cmd = DISK_GEOMETRY;
|
cmd = DISK_GEOMETRY;
|
||||||
} else if (argc != 2) {
|
} else if (argc != 2) {
|
||||||
fprintf(stderr, "syntax: %s DEVICE [-g]\n", argv[0]);
|
fprintf(stderr, "syntax: %s DEVICE [-g]\n", argv[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user