Quote:
Originally Posted by jailbait
In order for a locking scheme to work the locks must all be set in the same kernel. If both the PC users accessing the spreadsheet through Samba and the SunRay users accessing the spreadsheet are issuing their locks through the same kernel then your locking scheme could work. If the Samba users are making lock requests to their local PC kernel and the SunRay users are making lock requests to their local SunRay kernel then you will still have the problem of unregulated simultaneous spreadsheet updates. In practice all lock requests would have to be issued to the SunRay kernel on the thin-client.
Another problem is that all of the lock requests must use the same name. If Samba users are locking on XXX and the SunRay users are locking on ABC then you will still have the problem of unregulated simultaneous spreadsheet updates. Does the SunRay software and Samba allow you to configure what lock names are used?
Your spreadsheet software is allowing multi-threaded access to the spreadsheet files. If it was designed to allow multi-threading then it was also designed to provide locks in the appropriate places. Check to see if the spreadsheet software has an optional lock feature. If it does then the spreadsheet software is the logical place to handle the lock logic.
|
Thanks for the reply.
All locks should be issued through the same kernel as Solaris itself provides the files for the SunRays (think of them as ethernet consoles, not like Windows "thin-clients" (or even the Linux "thin-clients" that I've seen) that really aren't thin at all since they run a full-blown OS) and Samba is running directly on the same Solaris box.
I suppose there could be an issue if Samba does it's locking in a manner different from the native Solaris file locking. However, I don't know enough about Samba locking to even know where to start. Reading documentation on Samba's locking mechanism left me with the distinct impression that it's broken/not implemented yet (but that can't be the case since there's so many people successfully using it).
The spreadsheet software is StarOffice/OpenOffice. I doubt it has any built-in multi-user support. It doesn't even work right if the same user is logged in on more than one terminal (windows will pop up on the wrong screen, etc.). I posted this up on an OpenOffice support forum awhile back just in case someone there ran across the issue, but I think I'm the only one using SO/OO on something other than single-user MS Windows! I will check into locking through it though.
All in all, this is a very interesting problem.