Bug 532672
| Summary: | hrStorage does not seem to keep track of indexes | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Olivier Fourdan <ofourdan> | ||||||||||
| Component: | net-snmp | Assignee: | Jan Safranek <jsafrane> | ||||||||||
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||||||||
| Severity: | medium | Docs Contact: | |||||||||||
| Priority: | medium | ||||||||||||
| Version: | 4.8 | CC: | ebenes, kem, rick.beldin, rvokal | ||||||||||
| Target Milestone: | rc | Keywords: | Patch | ||||||||||
| Target Release: | 4.9 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | |||||||||||||
| : | 595322 595325 (view as bug list) | Environment: | |||||||||||
| Last Closed: | 2010-05-14 13:18:09 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Bug Depends On: | |||||||||||||
| Bug Blocks: | 485811, 595322, 595325 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Olivier Fourdan
2009-11-03 12:36:38 UTC
Created attachment 367292 [details] Same patch for current upstream svn This patch is the same for current svn. As current svn implements persistent indexes, this patch only to address the bug reported upstream here: http://sourceforge.net/tracker/index.php?func=detail&aid=1689551&group_id=12694&atid=112694 That's just for testing and reference (the patch intended for el4 is attachment 367291 [details]) Created attachment 367661 [details]
New reworked patch
Better patch for net-snmp-5.1.2 for el4.
Avoids returning duplicate indexes, more in line with coding style (use of global vars HRFS_entry and HRFS_index, do not re-open mtab but uses exiting file stream).
Created attachment 367662 [details]
Reworked patch for current svn net-snmp
Same patch for net-snmp svn (should also apply on el5 cleanly)
Avoids returning duplicate indexes, more in line with coding style (use of global vars HRFS_entry and HRFS_index, do not re-open mtab but uses exiting file stream).
Olivier, thanks for the path. It looks working, but I do not like the rewinding of /etc/mount file back and forth - in corner case the file could be read O(n^2) times, where n is nr. of its entries. How big the file can be? Would it be possible to cache it in memory? oops, /etc/mount -> /etc/mtab, of course Yes, the rewind is a suboptimal. However, I would expect the OS itself to cache the mtab file. Of course, using our own cache in memory would be better, indeed. Quality Engineering Management has reviewed and declined this request. You may appeal this decision by reopening this request. |