Bug 817557
| Summary: | unable to export or unexport individually to IPv6 addrs or subnets | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jeff Layton <jlayton> |
| Component: | nfs-utils | Assignee: | Jeff Layton <jlayton> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | bfields, chuck.lever, jlayton, nfs-maint, steved |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-03-20 19:50:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 Looks like Chuck has done some patches for this, so I'll move this to a resolution of UPSTREAM. I assume they should make rawhide in the not too distant future. |
It's not possible to export or unexport to an IPv6 address or subnet, due to some hardcoded parsing rules in exportfs() and unexportfs(): # exportfs -u 2001:470:8:d63::/64:/scratch exportfs: Invalid unexporting option: 2001 # exportfs -u '[2001:470:8:d63::/64]:/scratch' exportfs: Invalid unexporting option: [2001 ...the reason for the failure is this chunk of code at the top of both functions: if ((path = strchr(arg, ':')) != NULL) *path++ = '\0'; if (!path || *path != '/') { xlog(L_ERROR, "Invalid unexporting option: %s", arg); return; } ...though I'm not exactly clear on how we should be parsing this. How do we tell the difference between the ":/path" and ":/netmask" ? Maybe we should require that the addr and netmask be inside square brackets?