[netcf-devel] [PATCH] Don't return error if /sys/class/net/$dev/operstate isn't found

Laine Stump laine at laine.org
Tue Jan 27 18:49:50 UTC 2015


On 01/27/2015 12:56 PM, Eric Blake wrote:
> On 01/27/2015 10:48 AM, Laine Stump wrote:
>> This can happen for alias "interfaces", e.g: "eth0:1" (which aren't
>> really an interface, but are a deprecated method of adding multiple IP
>> addresses to a single interface). Since only the base interface
>> ("eth0") is really a device, only it has an entry in /sys/class/net.
>>
>> +    if (!state) {
>> +        /* missing operstate is *not* an error. It could be due to an
>> +         * alias interface, which has not entry in /sys/class/net at
> s/not/no/
>
> ACK with that tweak.
>

Thanks for the quick response! I've pushed this patch (as well as the
one from yesterday).


More information about the netcf-devel mailing list