[Samba] FileLockEx Problem

Gerald (Jerry) Carter jerry at samba.org
Tue Aug 31 13:45:33 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven Bush wrote:

| I'm a developer working on an application for Windows
| XP and have been  using the Win32 API call FileLockEx()
| on shared files (writing or  reading).  This has been working
| fine, but we now have a customer where this causes the
| following error when trying to lock a file on a samba
| network drive (it works fine if the file is local or
| on a windows shared drive):
|
| LockFileEx returns false.
| GetLastError = 50
| Error message = "The network request is not supported."
|
| We have a samba drive at our facility where this works
| fine and other  customers have not experienced this
| problem.  Any idea what may be the problem?

If the command works on one share/server but not another,
then you probably should look at a level 10 debug log on
the failed server/share to see what command is failing.
grep for NT_STATUS to see the return codes.





cheers, jerry
- ---------------------------------------------------------------------
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"If we're adding to the noise, turn off this song"--Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBNID9IR7qMdg1EfYRAvFXAJ9FmpsobEX1Lt31+7dZLuNo7vIDegCgvxSZ
MVnX2XjVWTxqa2u0wBSjTPc=
=ppJj
-----END PGP SIGNATURE-----


More information about the samba mailing list