Bug 164197
Summary: | dmsetup and lvm2 fail if the listing of dm devices exceeds 16k | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | AJ Lewis <157070.alewis> |
Component: | device-mapper | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | agk, christophe.varoqui, cmarthal, dmo, egoggin, jbrassow, jgaertne, lmb, nobody+wcheng, rkenna, tranlan |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2006-0099 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-07 18:38:58 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: | 168429, 171044 |
Description
AJ Lewis
2005-07-25 21:15:34 UTC
Is it wanting to return more than 16k of information? The buffer used for the request is also used to return the information. Currently you only get a bigger return buffer if you needed a bigger query buffer. (There's a FIXME in libdevmapper: if the buffer was too small, depending on the cmd issued, it may need to increase the buffer size and do an additional ioctl.) Yes, that's the problem. This works: for i in x{0..673}; do dmsetup create --notable $i; done; dmsetup ls but with 674 it fails. Warning: libdevmapper buffer too small for data No devices found That warning message only got added for ioctl v1 not v4. *** Bug 164198 has been marked as a duplicate of this bug. *** Two basic changes needed: (1) If the ioctl set DM_BUFFER_FULL_FLAG, then double the buffer size and issue an appropriate query (ls/info/deps/status/table) according to what the original command was (e.g. if set by a create, run an info); (2) Remember any increased buffer size, and use it as the new minimum for future similar calls made by the library. *** Bug 166956 has been marked as a duplicate of this bug. *** Full analysis showed for (1) showed that only a few ioctls can set DM_BUFFER_FULL_FLAG and it's always OK to repeat them with the same parameters. Fixed this upstream. And dealt with (2), but globally for now: uses larger buffer for all subsequent ioctls, not just similar ones. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0099.html Closing it. Internal Status set to 'Resolved' Status set to: Closed by Tech Resolution set to: 'RHEL 4.5' This event sent from IssueTracker by racedo issue 82083 |