[libvirt PATCH 06/23] util: use short form -g arg to scsi_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We can't change the term used by scsi_id for its CLI arg, but
we can avoid it by picking the short form instead.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/util/virstoragefile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
index a6357abb08..b4337c2736 100644
--- a/src/util/virstoragefile.c
+++ b/src/util/virstoragefile.c
@@ -1365,7 +1365,7 @@ virStorageFileGetSCSIKey(const char *path,
 
     cmd = virCommandNewArgList("/lib/udev/scsi_id",
                                "--replace-whitespace",
-                               "--whitelisted",
+                               "-g",
                                "--device", path,
                                NULL
                                );
@@ -1433,7 +1433,7 @@ virStorageFileGetNPIVKey(const char *path,
 
     cmd = virCommandNewArgList("/lib/udev/scsi_id",
                                "--replace-whitespace",
-                               "--whitelisted",
+                               "-g",
                                "--export",
                                "--device", path,
                                NULL
-- 
2.24.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux