github pull request: fix aarch64 eth detection

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

 



There is a pull request for rtslib that fixes machine detection on aarch64 (rtslib-fb doesn’t have this issue)

   https://github.com/Datera/rtslib/pull/4

Thanks,
Noah

>From 20b5f83017cccda060f4495f9c55e971a4ed4db6 Mon Sep 17 00:00:00 2001
From: Noah Watkins <noahwatkins@xxxxxxxxx>
Date: Wed, 10 Dec 2014 10:56:47 -0800
Subject: [PATCH] util: support aarch64

On aarch64 uname()[4] doesn't contain the underscore:

nwatkins@node-1:~$ uname -m
aarch64

Signed-off-by: Noah Watkins <noahwatkins@xxxxxxxxx>
---
 rtslib/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtslib/utils.py b/rtslib/utils.py
index 6974235..901de1b 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -619,7 +619,7 @@ def list_eth_names(max_eth=1024):
     struct.
     '''
     SIOCGIFCONF = 0x8912
-    if os.uname()[4].endswith("_64"):
+    if os.uname()[4].endswith("64"):
         offset = 40
     else:
         offset = 32--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux