Bug 479374
Summary: | statd fails to create SM_DIR | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Wengang Wang <wen.gang.wang> | ||||
Component: | nfs-utils | Assignee: | Steve Dickson <steved> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Jenner <mjenner> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.2 | CC: | dkovalsk, greg.marsden, kvolny, yanwang | ||||
Target Milestone: | rc | Keywords: | 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: |
|
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 ... Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. 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 |
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.