Bug 817557 - unable to export or unexport individually to IPv6 addrs or subnets
Summary: unable to export or unexport individually to IPv6 addrs or subnets
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-30 13:35 UTC by Jeff Layton
Modified: 2014-03-20 19:50 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-20 19:50:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeff Layton 2012-04-30 13:35:39 UTC
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?

Comment 1 Fedora End Of Life 2013-04-03 20:05:58 UTC
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

Comment 2 Jeff Layton 2014-03-20 19:50:46 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.