Bluehost.com Web Hosting $6.95

[Samba] incorrect shared access to the file - samba oplock bug?

This is a discussion on [Samba] incorrect shared access to the file - samba oplock bug? within the Samba forums, part of the Networking and Network Related category; I have tried to read a file from a Windows machine, at time this file being written from a Linux ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-16-2005
Jablonovsky Alexander
 
Posts: n/a
Default [Samba] incorrect shared access to the file - samba oplock bug?

I have tried to read a file from a Windows machine, at time this file
being written from a Linux machine with Samba (constantly reading
constantly growing file) and got a strange behavior. After reading some
number of bytes ReadFile() starts to return 0 bytes read (EOF). Seeking
and even closing/reopening the file doesn't help - only the old snapshot
of the file can be read. Touching the file from other program like
Explorer has effect - Windows refreshes the file to it's current state.

The file is opening from Windows as follow:
CreateFile(file_name, GENERIC_READ, FILE_SHARE_WRITE,
(LPSECURITY_ATTRIBUTES)NULL, OPEN_EXISTING, FILE_ATTRIBUTE_HIDDEN,
(HANDLE)NULL))
Samba v. 2.2.7a, Linux kernel v. 2.4.20, oplock parameters - default.
The effect is same in Windows 98 and XP.

Please help!
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0