Bug 479374

Summary: statd fails to create SM_DIR
Product: Red Hat Enterprise Linux 5 Reporter: Wengang Wang <wen.gang.wang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Jenner <mjenner>
Severity: medium Docs Contact:
Priority: low    
Version: 5.2CC: dkovalsk, greg.marsden, kvolny, yanwang
Target Milestone: rcKeywords: Regression, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=7682634
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-17 19:31:15 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:
Attachments:
Description Flags
patch which fixes the bug none

Description Wengang Wang 2009-01-09 05:55:02 UTC
Created attachment 328520 [details]
patch which fixes the bug

service nfslock start may fail when /var/lib/nfs/statd/sm doesn't exist.
that's because of opendir() against /var/lib/nfs/statd/sm fails. root reason is the directory is not created if it doesn't exist.
this problem exist in both RHEL5 and RHEL4

according code in shuffle_dirs(), since st is not initailized, whether
the SM_DIR is created depends on the thread stack of rpc.statd.
the fix is to insert a memset() before calling stat().

attached patch(based on nfs-utils 1.0.9) fixes this problem.
please include this patch for next release.

Comment 2 Karel Volný 2009-03-20 11:03:51 UTC
Can anyone please add info how this bug can be reproduced? - I was unable to do so, in all my tries the directory got re-created on nfslock startup ...

Comment 4 RHEL Program Management 2009-04-29 20:25:27 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 5 Wengang Wang 2009-05-19 02:25:17 UTC
please include it in the next release.
the same fix for EL4 is already included, see https://bugzilla.redhat.com/show_bug.cgi?id=479376