search for: share_mode

Displaying 20 results from an estimated 56 matches for "share_mode".

2020 Jun 30
3
Issues with FLOCK on NFS Share
On 30/06/2020 14:55, Ralph Boehme via samba wrote: > Howdy! > > Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba: >> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when
2020 Jul 01
0
Issues with FLOCK on NFS Share
..., it is the default setting :-( > Can we see your smb.conf ? Hi, I have now set kernel share modes = no which solves this issue! Attached my smb.conf. I was wondering if the kernel_flock function in source3/lib/system.c is correct implemented. E.g. when the function is called with parameter share_mode set to FILE_SHARE_READ|FILE_SHARE_WRITE, then the function flock is not be called. void kernel_flock(int fd, uint32_t share_mode, uint32_t access_mask) { #ifdef HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND...
2007 Mar 13
10
Need some explanation on Samba/NFS locks handle
...: /**************************************************************************** Set a kernel flock on a file for NFS interoperability. This requires a patch to Linux. ****************************************************************************/ static void kernel_flock(files_struct *fsp, uint32 share_mode) { #if HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_...
2020 Jul 01
2
Issues with FLOCK on NFS Share
..., it is the default setting :-( > Can we see your smb.conf ? Hi, I have now set kernel share modes = no which solves this issue! Attached my smb.conf. I was wondering if the kernel_flock function in source3/lib/system.c is correct implemented. E.g. when the function is called with parameter share_mode set to FILE_SHARE_READ|FILE_SHARE_WRITE, then the function flock is not be called. void kernel_flock(int fd, uint32_t share_mode, uint32_t access_mask) { #ifdef HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND...
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
...at %s, returning TRUE\n", + fname)); + return(True); + } dev = sbuf.st_dev; inode = sbuf.st_ino; + DEBUG(3, ("check_file_sharing: call lock_share_entry\n")); lock_share_entry(conn, dev, inode); + + DEBUG(3, ("check_file_sharing: call get_share_modes\n")); num_share_modes = get_share_modes(conn, dev, inode, &old_shares); + DEBUG(3, ("check_file_sharing: num_share_modes: %d\n", num_share_modes)); + + /* This code was shamelessly lifted from locking/locking.c. */ + for (i = 0; i < num_share_modes; i++) { + share_...
2002 May 23
2
PANIC: share_modes_identical
...pen.c:open_mode_check(631) open_mode_check: exlusive oplock left by process 17884 after break ! For fileDRV/periscope/PScope15.arx, dev = 801, inode = 1193703. Deleting it to continue... smbd/open.c:open_mode_check(635) open_mode_check: Existent process 17884 left active oplock. locking/locking.c:share_modes_identical(560) PANIC: share_modes_identical: share_mode missmatch (e1 = 32, e2 = 32800). Logic error. lib/util.c:smb_panic(1092) PANIC: PANIC: share_modes_identical logic error.
2003 Feb 11
1
2.2.7a panic with VFS Audit when writing file (reading is ok)
...11 10:19:47, 3] smbd/dosmode.c:unix_mode(111) unix_mode(STS107/DEBUG10) returning 0760 [2003/02/11 10:19:47, 5] smbd/files.c:file_new(123) allocated file structure 4662, fnum = 8758 (1 used) [2003/02/11 10:19:47, 10] smbd/open.c:open_file_shared1(782) open_file_shared: fname = STS107/DEBUG10, share_mode = 42, ofun = 12, mode = 760, oplock request = 0 [2003/02/11 10:19:47, 8] lib/util.c:is_in_path(1145) is_in_path: STS107/DEBUG10 [2003/02/11 10:19:47, 8] lib/util.c:is_in_path(1150) is_in_path: no name list. [2003/02/11 10:19:47, 3] lib/util.c:unix_clean_name(387) unix_clean_name [STS107/DEBUG...
2018 Oct 16
2
high cpu load with share_conflict on browsing and opening files
...0 [2018/10/12 12:05:09.533032, 10, pid=3350, effective(1017, 1003), real(1017, 0)] ../lib/dbwrap/dbwrap_tdb.c:143(db_tdb_fetch_locked_internal) Allocated locked data 0x0x559d3f4db0d0 [2018/10/12 12:05:09.533042, 10, pid=3350, effective(1017, 1003), real(1017, 0), class=locking] ../source3/locking/share_mode_lock.c:285(share_mode_memcache_fetch) fetched entry for file . seq 0x1141782026507589052 key fd02:20000056:0 [2018/10/12 12:05:09.533052, 10, pid=3350, effective(1017, 1003), real(1017, 0), class=locking] ../source3/locking/locking.c:1226(find_delete_on_close_token) find_delete_on_close_token:...
2002 Aug 20
2
Upgrade broke file locking
Prior to upgrading from RH7.0 to RH7.3 our Samba filserver worked perfectly. Now we are having locking problems. Initially Iused the same samba binaries built on RH70, I tried rebuilding Samba and reinstalling but it had no effect. If user bon opens an M$-Office file they frequently get a 'file is already in use by bob'. Sure enough smbstatus -L shows the file locked by bob, but bob
1999 May 28
2
Help! problems with Arcserve. Can someone decrypt the logs ?
.... authentifications works well. I include here a part of the logs, if someone can help me to understand what's happening, because there is surely something I forgot to do... :) Please look especially to "error" lines. +++++++++ [1999/05/28 08:56:33, 2] locking/locking_shm.c:shm_del_share_mode(376) del_share_modes num entries = 0, deleting share_mode dev=808 ino=1574994 [1999/05/28 08:56:33, 3] smbd/open.c:fd_attempt_close(158) fd_attempt_close fd = 8, dev = 808, inode = 1574994, open_flags = 2, ref_count = 1. [1999/05/28 08:56:33, 2] smbd/close.c:close_normal_file(165) root closed...
2004 Jan 09
0
large file pre-allocation causing Windows error
...04/01/09 10:04:17, 1] smbd/service.c:close_cnum(880) ssb-lap (192.168.1.35) closed connection to service prognew [2004/01/09 10:04:17, 3] smbd/connection.c:yield_connection(69) Yielding connection to prognew [2004/01/09 10:04:17, 10] locking/locking.c:del_share_entry(565) del_share_entry: num_share_modes = 1 [2004/01/09 10:04:17, 10] locking/locking.c:del_share_entry(570) del_share_entry: deleted share_mode_entry[0]: pid = 32286, share_mode = 0x11, desired_access = 0x2, port = 0x509, type= 0x3, file_id = 1, dev = 0x27406, inode = 788440731 [2004/01/09 10:04:17, 10] locking/locking.c:del_share_en...
2003 Nov 20
0
Windows 2K Offline files
...:34, 10] smbd/nttrans.c:map_create_disposition(399) map_create_disposition: Mapped create_disposition 0x5 to 0x12 [2003/11/20 22:57:34, 10] smbd/nttrans.c:get_filename_transact(288) get_filename_transact: data_offset = 53, data_len = 2, fname_len = 9 [2003/11/20 22:57:34, 10] smbd/nttrans.c:map_share_mode(525) map_share_mode: Mapped desired access 0x120196, share access 0x0, file attributes 0x0 to open_mode 0x11 [2003/11/20 22:57:34, 5] smbd/filename.c:unix_convert(119) unix_convert called on file "\800000B0" [2003/11/20 22:57:34, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/...
2004 Oct 15
1
Directory Name '.../pipe' not allowed ? Samba Bug ?
...x_mode(Zwischenablage/Jaeger/pipe/projects.INF) returning 0777 [2004/10/15 10:24:52, 5] smbd/files.c:file_new(123) allocated file structure 9547, fnum = 13643 (3 used) [2004/10/15 10:24:52, 10] smbd/open.c:open_file_shared1(808) open_file_shared: fname = Zwischenablage/Jaeger/pipe/projects.INF, share_mode = 40, ofun = 1, mode = 777, oplock request = 0 [2004/10/15 10:24:52, 8] lib/util.c:is_in_path(1145) is_in_path: Zwischenablage/Jaeger/pipe/projects.INF [2004/10/15 10:24:52, 8] lib/util.c:is_in_path(1150) is_in_path: no name list. [2004/10/15 10:24:52, 3] lib/util.c:unix_clean_name(387) unix_...
2003 Dec 01
0
No subject
...d 4857) [2002/09/19 12:02:27, 2] smbd/open.c:open_file(582) samba opened file SAMBA.mZaiFj read=No write=Yes (numopen=1) [2002/09/19 12:02:27, 0] smbd/nttrans.c:call_nt_transact_ioctl(2387) call_nt_transact_ioctl: Currently not implemented. [2002/09/19 12:02:27, 2] locking/locking_shm.c:shm_del_share_mode(355) del_share_modes Deleting share mode entry dev=1980085 ino=120965 [2002/09/19 12:02:27, 2] locking/locking_shm.c:shm_del_share_mode(376) del_share_modes num entries = 0, deleting share_mode dev=1980085 ino=120965 [2002/09/19 12:02:27, 2] smbd/close.c:close_normal_file(165) samba closed fi...
2002 Jun 12
0
Win2k oplocks and you
...e interesting bits from the logs and dump so you don't have to download the whole log if you don't want to. Here is the initial request in the log.smbd: [2002/06/12 17:15:40, 10] smbd/open.c:open_file_shared(650) open_file_shared: fname = marketing/Slicks/Components/servericon.cdr, share_mode = 8040, ofun = 1, mode = 664, oplock request = 3 [2002/06/12 17:15:40, 8] lib/util.c:is_in_path(1115) is_in_path: marketing/Slicks/Components/servericon.cdr [2002/06/12 17:15:40, 8] lib/util.c:is_in_path(1120) is_in_path: no name list. [2002/06/12 17:15:40, 3] lib/util.c:unix_clean_name(387)...
2004 Nov 11
3
File.nopen alpha
Hi all, I''ve committed an alpha version of File.nopen (native open) to win32-file. This is a wrapper for CreateFile(). A quick synopsis: * File.nopen(file,access_mode,share_mode,creation_mode,flags) * * A ''native'' open method. This uses CreateFile() behind the scenes instead of * the _open() function. This allows much greater flexibility when it comes * to Windows files. It also allows you to open directories, which File.open * cannot do on Windo...
2006 Sep 19
1
Problem with large files
...s = 0x20189 file_attributes = 0x80, share_access = 0x7, create_disposition = 0x1 create_options = 0x940 root_dir_fid = 0x0 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_create_disposition(341) map_create_disposition: Mapped create_disposition 0x1 to 0x1 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(423) map_share_mode: FILE_SHARE_DELETE requested. open_mode = 0x8000 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(480) map_share_mode: Mapped desired access 0x20189, share access 0x7, file attributes 0x80 to open_mode 0x8040 [2006/09/19 10:29:41, 5] smbd/filename.c:unix_convert(108)...
2004 Nov 09
2
AW: Permissions problem with 3.0.8
...second time on itself (permissions of test file are -r-xrw----, user and group match) Maybe the attribute mapping goes another path with acl support? 3.0.7 works fine. Daniel [2004/11/09 17:02:02, 10] smbd/open.c:open_file_shared1(1038) open_file_shared: fname = bootfont.bin, dos_attrs = 27, share_mode = 41, ofun = 12, mode = 560, oplock request = 3 [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode(283) dos_mode: bootfont.bin [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning ra [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning...
1998 Apr 16
2
Problem with visual C++ and samba
...n_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) Skipp...
1998 Nov 06
0
Problems with MS Word 97 and Samba 1.9.18p10
...) = 0 How can I get a sharing violation if I'm the only one attached to the server, and I only have MS Word open, working with this one file?? There are a lot of opening and closings of the document also, but they're there when it works correctly too. There are also a lot of these: del_share_modes Deleting share mode entry dev=771 ino=24641 del_share_modes num entries = 0, deleting share_mode dev=771 ino=24641 I can replicate the problem on a Redhat 5.1 Samba 1.9.18p7 So, anyone have any ideas? Rich Whiffen -- Rich Whiffen Investment Company Institute 1401 H street NW Washington, DC 2...