Red Hat Bugzilla – Bug 479374
statd fails to create SM_DIR
Last modified: 2011-10-13 02:01:25 EDT
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.
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