LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-26-2020, 01:21 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Current, rc.nfsd, exportfs stdout spew


I am not an active Current user, but I keep a VirtualBox Current VM that I occasionally update and tinker.

With the nfs-utils 2.5.2 package there is a stdout spew when launching rc.nfsd.

Anybody know how to avoid the "ugly" spew?

When rc.nfsd launches the stdout spews the following:

Code:
point 1
point 2
point 3
Dot new files are updated.

The root cause is the exportfs command. Comparing nfs-utils 2.5.1 and 2.5.2:

Code:
88c88
< 	if (_lockfd != -1)
---
> 	if (_lockfd != -1) {
89a90,92
> 		close(_lockfd);
> 		_lockfd = -1;
> 	}
175a179
> printf("point 1\n");
177a182
> printf("point 2\n");
186a192
> 			export_freeall();
189a196
> printf("point 3\n");
227a235
> 	export_freeall();
I'm not a C programmer but browsing the exportfs.c file indicates the printf commands are hard-coded rather than conditional. I'm wondering if the printf commands are being used as debugging markers.

My /etc/exports file contains a single line and the export works fine.

P.S. Anybody who replies the spew is "harmless" gets whacked over the head with the thick end of a baseball bat. Just discuss the fine question.
 
Old 10-26-2020, 03:49 PM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
According to the Mon Oct 26 20:24:28 UTC 2020 change log, Pat patched the exportfs.c file to remove the debugging lines.

Thanks Pat!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HTC Android handsets spew private data to ANY app LXer Syndicated Linux News 0 10-03-2011 07:50 AM
don't have nfsd mount point in /proc/fs/nfsd...can't start NFS as a result alirezan1 Linux - Newbie 1 11-19-2008 07:57 AM
How to redirect standard stdout to multi stdout ( Bash )? john.daker Programming 4 11-03-2008 11:20 PM
redirecting stdout to /dev/null and stderr to stdout? Thinking Programming 1 05-18-2006 02:36 AM
bittorrent: meaning of the output of btdownloadheadless --spew bnj Linux - Software 2 03-21-2006 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration