Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 247447

Summary: ReadDirectoryChangesW not working on 3.0.23
Product: Red Hat Enterprise Linux 5 Reporter: Jose Plans <jplans>
Component: sambaAssignee: Samba Maint Team <samba-bugs-list>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.0CC: hgarcia, jplans
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEA-2007-0638 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 19:11:17 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:
Bug Depends On: 238757    
Bug Blocks:    
Attachments:
Description Flags
ReadDirectoryChangesW() test case.
none
smb.conf used to reproduce this none

Description Jose Plans 2007-07-09 11:18:39 UTC
Description of the problem:

Samba 3.0.23 shipped with RHEL5 GA, doesn't handle correctly the changes per
directory notifications. Using the call ReadDirectoryChangesW() seems to fail
against a samba share from RHEL5.
  
This has been fixed in 3.0.25, see post below :
 * http://lists.samba.org/archive/samba-cvs/2007-February/074022.html
  
The fix is confirmed by the customer.
  
Issue has been seen by the customer as they are running an application that
maintains an inventory of the files present in a directory; this application
also allows to open an external editor and modify the directory contents. With
the actual code they weren't able to tell if the directory had changed. (This
application use ReadDirectoryChangesW()).
  
This works perfectly when using a local harddrive (Windows OS) but fails when
the ressource comes from Samba. We have therefore asked them to try 3.0.25 to
confirm the changes worked for them, it did. 

Let me know if you need more details, I'm attaching a test case and their
configuration file. (Test case to build on Windows).

Comment 1 Jose Plans 2007-07-09 11:19:44 UTC
Created attachment 158758 [details]
ReadDirectoryChangesW() test case.

Comment 2 Jose Plans 2007-07-09 11:22:31 UTC
Created attachment 158759 [details]
smb.conf used to reproduce this

Comment 4 RHEL Program Management 2007-07-09 11:33:20 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 errata-xmlrpc 2007-11-07 19:11:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2007-0638.html