Bug 1008047 - RFE: [exportfs] if specify Invalid exporting option, output usage to user.
RFE: [exportfs] if specify Invalid exporting option, output usage to user.
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nfs-utils (Show other bugs)
5.10
All Linux
unspecified Severity low
: rc
: ---
Assigned To: Steve Dickson
Red Hat Kernel QE team
: FutureFeature
Depends On: 1008045
Blocks: 1008046
  Show dependency treegraph
 
Reported: 2013-09-13 20:07 EDT by Yin.JianHong
Modified: 2014-02-10 08:36 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1008045
Environment:
Last Closed: 2014-02-10 08:36:57 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Yin.JianHong 2013-09-13 20:07:02 EDT
+++ 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 Yin.JianHong 2013-09-13 20:08:29 EDT
[root@dhcp-13-194 ~]# exportfs -u  '*/home'
Invalid unexporting option: */home
[root@dhcp-13-194 ~]# exportfs   '*/home'
Invalid exporting option: */home
Comment 3 RHEL Product and Program Management 2014-02-10 08:36:57 EST
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

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