Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik > Daidalos Team discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2014, 07:06 PM
TheGrunch's Avatar
TheGrunch TheGrunch is offline
Approved Member
 
Join Date: Oct 2009
Location: United Kingdom
Posts: 843
Default

Finally solved this problem!

The mission file selection process via file chooser relies upon having network share access to the mission files.

The files were being locked via Samba from the Il-2 SSD client, and therefore when the server came to load them, they were unavailable for reading.

This is strange because the files are not "read" by my program, they are simply selected, so they shouldn't be locked. This may have something to do with opportunistic locking by the Windows Samba client process.

EDIT: Yep, confirmed it. When I add this to my share in my smb.conf it fixes it:

Code:
veto oplock files = /*.mis/

Last edited by TheGrunch; 03-22-2014 at 07:11 PM.
Reply With Quote
  #2  
Old 03-22-2014, 09:54 PM
Pfeil Pfeil is offline
Approved Member
 
Join Date: Jan 2012
Posts: 126
Default

Good to hear you found the cause, I know bugs that seemingly have no reason to occur are massively frustrating.

Frankly I'm not surprised that you'd run into problems with Windows and Samba. I won't go ranting about it, but ever since Vista the SMB implementation has gotten less and less usable(and don't get me started on file permissions, talk about trading usability for false security).
Reply With Quote
  #3  
Old 03-24-2014, 06:38 PM
TheGrunch's Avatar
TheGrunch TheGrunch is offline
Approved Member
 
Join Date: Oct 2009
Location: United Kingdom
Posts: 843
Default

Tell me about it, apparently the specific reason for this problem is the use of the force user option in samba configuration:

Quote:
Samba includes an smb.conf parameter called force user that changes the user accessing a share from the incoming user to whatever user is defined by the smb.conf variable. If oplocks is enabled on a share, the change in user access causes an oplock break to be sent to the client, even if the user has not explicitly loaded a file.
Oh well! At least now I know this is not a bug in my code and can start working on the mission cycle scheduler.
Reply With Quote
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.