Bug 1008046

Summary: RFE: [exportfs] if specify Invalid exporting option, output usage to user.
Product: Red Hat Enterprise Linux 6 Reporter: JianHong Yin <jiyin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED WONTFIX QA Contact: Yongcheng Yang <yoyang>
Severity: low Docs Contact:
Priority: medium    
Version: 6.5CC: eguan
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1008045 Environment:
Last Closed: 2017-05-02 03:52:21 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:
Bug Depends On: 1008045, 1008047    
Bug Blocks:    

Description JianHong Yin 2013-09-14 00:03:32 UTC
+++ This bug was initially created as a clone of Bug #1008045 +++

Description of problem:
RFE: [exportfs] if specify Invalid exporting option, output usage to user.

Version-Release number of selected component (if applicable):
[root@dhcp12-185 ~]# lsb_release -sir; rpm -q nfs-utils
RedHatEnterpriseServer 7.0
nfs-utils-1.2.8-2.0.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. exportfs  '*/home'
2. just output error info, not give usage info to user.
3.

Actual results:
[root@dhcp12-185 ~]# res=$(exportfs  '*/home' 2>&1 -x)
[root@dhcp12-185 ~]# echo $? $res
1 exportfs: invalid option -- 'x' usage: exportfs [-afhioruv] [host:/path]

[root@dhcp12-185 ~]# res=$(exportfs  '*/home' 2>&1 )
[root@dhcp12-185 ~]# echo $? $res
0 exportfs: Invalid exporting option: */home <<<--- should output usage also.

Expected results:


Additional info:

Comment 1 JianHong Yin 2013-09-14 00:09:47 UTC
[root@dhcp-13-188 ~]# exportfs  -u  '*/home'
exportfs: Invalid unexporting option: */home
[root@dhcp-13-188 ~]# exportfs   '*/home'
exportfs: Invalid exporting option: */home

Comment 3 RHEL Program Management 2013-10-14 02:11:11 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 Yongcheng Yang 2017-05-02 03:52:21 UTC
Closing this one as rhel-5 does (Bug 1008047 Comment 3) as NO upstream patch nor NO customer concerns this issue.

Feel free to reopen if there's any concern or we has patch to fix it.