Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2004, 10:40 AM
|
#1
|
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374
Rep:
|
question on NFS/samba behavior
I need to impliment a multi-platform filesharing network with nfs and samba from a central server running linux. it needs to share files over both samba to windows and nfs to linux. This will be a multi-user environment with several stations, sometimes many stations might try to access the same file (autocad) currently with only a windows machine acting as a server with windows sharing autocad will lock a file when it is opened and unlock it when it closes this way we don't have several people modifying the file at once. I need t make sure the same thing will happen w/ samba and nfs, cause if autocad opens a file over samba and someone else tries to open the file it needs to prevent it.
so I guess my question is this, is file locking handled universally so that any program can lock a file and any other program will be prevented from using the locked file?
also does nfs recognise file locks and allow files to be locked when opened remotely
same question but for samba witht he addition of windows programs being able to request a file lock so that the linux system will nto allow use of the file by another party.
Thank you.
|
|
|
11-09-2004, 04:31 PM
|
#2
|
Member
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85
Rep:
|
I think it's a mistake to mix the NFS and SAMBA protocols. If I were you I'd either use samba to share between the linux boxes or install a NFS client on the windows machines. This solve the problem nicely as you wouldn't have to worry about having two different servers trying to lock and unlock files.
Personally I would favor the Samba solution, simply because I haven't found a windows NFS client that I like much.
|
|
|
11-09-2004, 04:40 PM
|
#3
|
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374
Original Poster
Rep:
|
I was asking about both partially to see about mixing them, but mainly it was fo rocmparison and questioning weather eather or both would lock files, say if samba did not lock files I would need nfs, and vice versa.
|
|
|
11-09-2004, 05:25 PM
|
#4
|
Member
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85
Rep:
|
Oh, I mis-understood you. I'm not sure about NFS locking files, becuase I don't have much experiance with it. Samba however does provide for locking files . Let me dig around real quick and I'll post some thinks about Sambas file locking....
Last edited by cyberliche; 11-09-2004 at 05:28 PM.
|
|
|
11-09-2004, 05:26 PM
|
#5
|
Member
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85
Rep:
|
Oreilly has a free version of the Samba book online. You can check out locking and op-locking here.
|
|
|
11-09-2004, 11:13 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374
Original Poster
Rep:
|
thanx you :-D
|
|
|
All times are GMT -5. The time now is 07:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|