First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 98005
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Robin Johnson <robbat2@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Roy Marples (RETIRED) <uberlord@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bridge-utils-noports-noerror.diff Stops brctl from erroring when there are no listed ported in sysfs patch Roy Marples (RETIRED) 2005-07-05 07:05 0000 326 bytes Details | Diff
bridge-utils-noports-noerror.diff return errno instead of -ENOSYS when there are no ports on a bridge patch Roy Marples (RETIRED) 2005-07-05 08:28 0000 330 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 98005 depends on: Show dependency tree
Bug 98005 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-05 07:03 0000
bridge-utils-1.0.4 and 1.0.6 error when there are no ports on the bridge when
compiled against libsysfs

Expected results
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no


Actual Results
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no               can't get port info:
Function not implemented

Unfortuantely, the error is dumped to stderr - whick sucks when you're trying
to work out the ports on a bridge - or the bridge of a port using userspace
tools.

------- Comment #1 From Roy Marples (RETIRED) 2005-07-05 07:05:14 0000 -------
Created an attachment (id=62666) [details]
Stops brctl from erroring when there are no listed ported in sysfs

applies cleanly to 1.0.6 - may apply to 1.0.4

------- Comment #2 From Roy Marples (RETIRED) 2005-07-05 07:06:39 0000 -------
(of course I meant to say that the error is dumped to stdout and not stderr, so
I cannot filter it in bash)

------- Comment #3 From Roy Marples (RETIRED) 2005-07-05 08:28:40 0000 -------
Created an attachment (id=62678) [details]
return errno instead of -ENOSYS when there are no ports on a bridge

------- Comment #4 From Robin Johnson 2005-07-11 20:38:31 0000 -------
in cvs now.
could you please send it upstream as well roy?

------- Comment #5 From Roy Marples (RETIRED) 2005-07-11 22:20:48 0000 -------
Punted the patch over to their source forge site

http://sourceforge.net/tracker/?group_id=26089&atid=386017

First Last Prev Next    No search results available      Search page      Enter new bug