search for: share_modes

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

Did you mean: 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
...rnel_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|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_SHARE_NONE) { k...
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_SHARE_NONE) { k...
2020 Jul 01
2
Issues with FLOCK on NFS Share
...rnel_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|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_SHARE_NONE) { k...
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_m...
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)
...(245) CSHENTO8 opened file STS107/DEBUG10 read=Yes write=Yes (numopen=1) [2003/02/11 10:19:47, 10] smbd/open.c:open_file_shared1(1042) open_file_shared : share_mode = 42 [2003/02/11 10:19:47, 10] locking/locking.c:set_share_mode(692) set_share_mode: creating entry for file STS107/DEBUG10. num_share_modes = 1 [2003/02/11 10:19:47, 10] locking/locking.c:print_share_mode_table(445) print_share_mode_table: share_mode_entry[0]: pid = 6357, share_mode = 0x42, desired_access = 0x3, port = 0x0, type= 0x0, file_id = 1, dev = 0x28503, inode = 8583476 [2003/02/11 10:19:47, 0] lib/fault.c:fault_report(38)...
2018 Oct 16
2
high cpu load with share_conflict on browsing and opening files
...2018/10/12 12:05:09.533300, 10, pid=3350, effective(1017, 1003), real(1017, 0)] ../source3/smbd/open.c:1498(share_conflict) share_conflict: No conflict. [2018/10/12 12:05:09.533308, 10, pid=3350, effective(1017, 1003), real(1017, 0), class=locking] ../source3/locking/share_mode_lock.c:368(unparse_share_modes) unparse_share_modes: [2018/10/12 12:05:09.533316, 1, pid=3350, effective(1017, 1003), real(1017, 0)] ../librpc/ndr/ndr.c:419(ndr_print_debug) d: struct share_mode_data sequence_number : 0x0fd86cb424e915bc (1141782026507589052) servicepath : *...
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 ?
...rks 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 file home/eft_oper/eft...
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_ent...
2003 Nov 20
0
Windows 2K Offline files
...n.c:open_file(245) nickgale opened file 800000B0 read=No write=Yes (numopen=1) [2003/11/20 22:57:34, 10] smbd/open.c:open_file_shared1(1042) open_file_shared : share_mode = 11 [2003/11/20 22:57:34, 10] locking/locking.c:set_share_mode(692) set_share_mode: creating entry for file 800000B0. num_share_modes = 1 [2003/11/20 22:57:34, 10] locking/locking.c:print_share_mode_table(445) print_share_mode_table: share_mode_entry[0]: pid = 18423, share_mode = 0x11, desired_access = 0x120196, port = 0x0, type= 0x0, file_id = 68, dev = 0x341, inode = 3304013 [2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(12...
2004 Oct 15
1
Directory Name '.../pipe' not allowed ? Samba Bug ?
Hi All, scenario: Samba Version 2.2.8a-UL running on Suse Linux Enterprise 8 Kernel Version 2.4.21-241-smp as Server Windows 2000 SP4 as Client Trying to import a MS-Foxpro file into MS-ACCESS. MS-Foxpro File residing on Samba Server. The Foxpro filename is 'projects.dbf'. During import MS-Access tries to also open a non existent file 'projects.inf' depending on the path in
2003 Dec 01
0
No subject
...: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 file SAMBA.mZaiFj (numope...
2002 Jun 12
0
Win2k oplocks and you
...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) unix_clean_name [marketing/Slicks/Components/servericon.cdr] [2002/06/12 17:15:40, 10] locking/locking.c:get_share_modes(454) get_share_modes: share_mode_entry[0]: pid = 18911, share_mode = 0x40, port = 0x8e16, type= 0x3, file_id = 6, dev = 0x801, inode = 359229 [2002/06/12 17:15:40, 5] smbd/open.c:open_mode_check(495) open_mode_check: oplock_request = 3, breaking oplock (3) on file marketing/Slicks/Compo...
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
2006 Sep 19
1
Problem with large files
...9:41, 8] smbd/dosmode.c:dos_mode(283) dos_mode: s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning [2006/09/19 10:29:41, 10] locking/locking.c:get_share_modes(480) get_share_modes: share_mode_entry[0]: pid = 93583, share_mode = 0x11, desired_access = 0x30196, port = 0x0, type= 0x0, file_id = 395, dev = 0x412, inode = 6383100 [2006/09/19 10:29:41, 2] smbd/open.c:check_share_mode(530) Share violation on file (4,1,1,93583,s-comp/IFOM/PROVA/Caschetto.tib...
2004 Nov 09
2
AW: Permissions problem with 3.0.8
We use LDAP backend and Linux 2.6. It happens only --with-acl-support. This 2 errors I found in the level 10 log when I try to copy a fresh copied file a 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)
1998 Apr 16
2
Problem with visual C++ and samba
....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/l...
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 20...