Problem with visual C++ and samba

John Harvey john at division.co.uk
Thu Apr 16 15:13:48 GMT 1998


We are having a problem with Microsoft visual C++ compiling source
code maintained on a samba server. Occasionaly the compiler reports
that it cant open the file vc50.pch. The samba server is running on a
freebsd box. Taking a look at the log files it looks like when the
operation fails the server is processing the command

open (vc50.pch for exclusive use
write
setattrE
write
open (vc50.pch          and this not unreasonably fails

on a succesfull compilation the commands are

open (vc50.pch for exclusive use
write
setattrE
write
close vc50.pch
open (vc50.pch        which now works

Has anyone any ideas what may be causing this.?

The relevant sections of the log file for the working & broken cases
are included below.

One further note that may be of interest. If on the server i run samba
at debug level 4 &
run 
tail -f log.smb (to an xterm on a remote machine) 

the compilation is succesfull every time. I'm not sure what this means
other than both the server & network will be more loaded in this case.

Thanks

John


-- 
John Harvey
Division Limited           Tel: +44 (0)1454 615554
19 Apex Court,             Fax: +44 (0)1454 615532
Woodlands                  Email: john at division.co.uk
Bristol BS12 4JT, UK




Log file from broken compilation

switch message SMBopenX (pid 1726)
Skipping become_user - already user
unix_clean_name [./dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
unix_clean_name [dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
calling open_file with flags=0x1 flags2=0x200 mode=0664
Allocated new file_fd_struct 4, dev = ffffffff, inode = ffffffff
04/16/1998 13:58:53 dvise opened file dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch read=No write=Yes (numopen=2 fnum=14)
set_share_mode: Created share record for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch (dev 2098183 inode 154502)
set_share_mode: Created share entry for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch with mode 0x11 pid=1726
04/16/1998 13:58:53 Transaction 218244 of length 52
switch message SMBwrite (pid 1726)
Skipping become_user - already user
04/16/1998 13:58:53 write fnum=14 cnum=67 num=0 wrote=0
04/16/1998 13:58:53 Transaction 218245 of length 54
switch message SMBsetattrE (pid 1726)
Skipping become_user - already user
04/16/1998 13:58:53 reply_setattrE fnum=14 cnum=67 actime=892732330 modtime=892732330
04/16/1998 13:58:53 Transaction 218246 of length 1184
switch message SMBwrite (pid 1726)
Skipping become_user - already user
04/16/1998 13:58:53 write fnum=14 cnum=67 num=1132 wrote=1132
04/16/1998 13:58:53 Transaction 218247 of length 115
switch message SMBopenX (pid 1726)
Skipping become_user - already user
unix_clean_name [./dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
unix_clean_name [dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
Share violation on file (4,1,1,1726,dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch,fcbopen = 0, flags = 2) = 0
04/16/1998 13:58:53 error packet at line 1321 cmd=45 (SMBopenX) eclass=1 ecode=32
error string = Permission denied
04/16/1998 13:58:53 Transaction 218248 of length 46
switch message SMBclose (pid 1726)
Skipping become_user - already user
del_share_modes Deleting share mode entry dev=2098183 ino=154502
del_share_modes num entries = 0, deleting share_mode dev=2098183 ino=154502
fd_attempt_close on file_fd_struct 4, fd = 13, dev = 200407, inode = 25b86, open_flags = 2, ref_count = 1.
04/16/1998 13:58:53 dvise closed file dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch (numopen=1)
04/16/1998 13:58:53 close fd=-1 fnum=14 cnum=67 (numopen=1)
04/16/1998 13:58:53 Transaction 218249 of length 46


Log file from working compilation

switch message SMBopenX (pid 1726)
Skipping become_user - already user
unix_clean_name [./dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
unix_clean_name [dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
calling open_file with flags=0x1 flags2=0x200 mode=0664
Allocated new file_fd_struct 4, dev = ffffffff, inode = ffffffff
04/16/1998 13:52:19 dvise opened file dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch read=No write=Yes (numopen=2 fnum=71)
set_share_mode: Created share record for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch (dev 2098183 inode 154502)
set_share_mode: Created share entry for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch with mode 0x11 pid=1726
04/16/1998 13:52:19 Transaction 171873 of length 52
switch message SMBwrite (pid 1726)
Skipping become_user - already user
04/16/1998 13:52:19 write fnum=71 cnum=67 num=0 wrote=0
04/16/1998 13:52:19 Transaction 171874 of length 54
switch message SMBsetattrE (pid 1726)
Skipping become_user - already user
04/16/1998 13:52:19 reply_setattrE fnum=71 cnum=67 actime=892731938 modtime=892731938
04/16/1998 13:52:19 Transaction 171875 of length 1184
switch message SMBwrite (pid 1726)
Skipping become_user - already user
04/16/1998 13:52:19 write fnum=71 cnum=67 num=1132 wrote=1132
04/16/1998 13:52:19 Transaction 171876 of length 46
switch message SMBclose (pid 1726)
Skipping become_user - already user
del_share_modes Deleting share mode entry dev=2098183 ino=154502
del_share_modes num entries = 0, deleting share_mode dev=2098183 ino=154502
fd_attempt_close on file_fd_struct 4, fd = 13, dev = 200407, inode = 25b86, open_flags = 2, ref_count = 1.
04/16/1998 13:52:19 dvise closed file dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch (numopen=1)
04/16/1998 13:52:19 close fd=-1 fnum=71 cnum=67 (numopen=1)
04/16/1998 13:52:19 Transaction 171877 of length 115
switch message SMBopenX (pid 1726)
Skipping become_user - already user
unix_clean_name [./dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
unix_clean_name [dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch]
calling open_file with flags=0x2 flags2=0x0 mode=0664
Allocated new file_fd_struct 4, dev = ffffffff, inode = ffffffff
04/16/1998 13:52:19 dvise opened file dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch read=Yes write=Yes (numopen=2 fnum=72)
set_share_mode: Created share record for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch (dev 2098183 inode 154502)
set_share_mode: Created share entry for dvise-dev/win32.d/src/dmcad/libdnrb/vc50.pch with mode 0x42 pid=1726
04/16/1998 13:52:19 Transaction 171878 of length 42
switch message SMBgetattrE (pid 1726)
Skipping become_user - already user
04/16/1998 13:52:19 reply_getattrE fnum=72 cnum=67
04/16/1998 13:52:19 Transaction 171879 of length 74
switch message SMBwrite (pid 1726)


More information about the samba mailing list