Bug 189759

Summary: automount -vd is different than -v -d.
Product: [Fedora] Fedora Reporter: Thomas Steudten <tomri>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: medium    
Version: 5CC: jmoyer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-24 14:17:42 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:

Description Thomas Steudten 2006-04-24 13:33:25 UTC
Description of problem:

automount does not detect -d flag if called with combined flags like
-vd as -v -d.

Version-Release number of selected component (if applicable):


How reproducible:

automount -vd : no debugging messages
automount -v -d.: debugging messages shown.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
no debug messages shown with -vd

Expected results:
flags detected in combined mode like -vd for -v -d.

Additional info:
autofs-4.1.4-16.2.2

Comment 1 Jeff Moyer 2006-04-24 13:56:22 UTC
That's odd.  Are you starting the daemon by hand?  If you're specifying flags
for the automounter via the master map or the sysconfig file, you should use the
long versions, "--debug" and "--verbose".  However, the two options do the same
thing, so either will suffice.

Ian, do you want to take a look at this?

Comment 2 Thomas Steudten 2006-04-24 14:17:42 UTC
There're long version for the most gnu cmd options. 

Close this bug. Seems that automount gives very rare debug messages, so this
looks like this bug. kill automount gives the same output with "-vd" or "-v -d".
A message like "Debug enabled would be nice".

Comment 3 Jeff Moyer 2006-04-24 14:27:53 UTC
The debug logs are logged at level DEBUG, which means they won't appear in
/var/log/messages.  See http://people.redhat.com/jmoyer for more information on
configuring autofs for debugging.  It is quite apparent when debug output is
enabled!

Comment 4 Thomas Steudten 2006-04-24 15:55:55 UTC
Aaaargh, I don't like to query the source code, to find out, at which level the
debug messages are logged. The normal case is that -d don't forks and prints
debug output to stderr.
Why should the DEBUG output not appear in /var/log/messages? This is the case
for standard FC5 syslog.conf setup, because the min level is info.
However, the man page should point to that, that the debug output is send with
level DEBUG!

So, please add a notice to the man page for FC5.
Thanks.