search for: file_share_writ

Displaying 20 results from an estimated 35 matches for "file_share_writ".

Did you mean: file_share_write
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...D -MP -MF $depbase.Tpo -c -o decode.o decode.c &&\ mv -f $depbase.Tpo $depbase.Po decode.c: In function 'DecoderSession_destroy': decode.c:270:5: error: unknown type name 'HANDLE' HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); ^ decode.c:270:17: warning: implicit declaration of function 'CreateFile_utf8' [-Wimplicit-function-declaration] HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello, Upon compiling the flac tree today, after many successful compilations over the last few weeks, a new error is appearing before compilation bails out. This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the objects being built for a mingw-w64-x86_64 host. Among other things, the compiler is looking for windows_unicode_filenames.h but it isn't there. Also, I'm
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
2006 Mar 21
0
wine and Mankind (the one from www.mankind.net) - possible networking or file creation problem
...distributes the updates is np.mankind. But I don't capture any other packets. I would expect an attempt to connect to it or any other of Mankind's servers. This may also be related to some other thing I have noticed: trace:file:CreateFileW L"mk.cfg" GENERIC_READ FILE_SHARE_READ FILE_SHARE_WRITE creation 3 attributes 0x80 trace:file:RtlDosPathNameToNtPathName_U (L"mk.cfg",0x7f9de618,(nil),(nil)) trace:file:RtlGetFullPathName_U (L"mk.cfg" 520 0x7f9de38c (nil)) trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Programme\\Mankind\ \Mankind\\mk.cfg" -> "$...
2001 Sep 20
2
win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 !
...is seagate's seatools: http://www.seagate.com/support/seatools/ I installed wine under debian unstable (Version: 0.0.20010824-1) and when I run the windows binary under wine, it runs but fails to write the floppy and wine fails with: trace:file:CreateFileA \\.\A: QUERY_ACCESS FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING fixme:win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 ! The only replaceable DLL wine loads is advapi32.dll, and I tried to provide one from w2k and win98 ("advapi32" = "native, builtin") but it didn't help. Of course, changing the version of...
2014 Sep 26
4
Patch to add buffering to decoding too
...rs if necessary */ if(!d->analysis_mode && !d->test_only && d->format != FORMAT_RAW) { +#ifdef _WIN32 + if(strcmp(outfilename, "-") && d->total_samples > 0) { + HANDLE fh = CreateFile_utf8(outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if (GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8) + 512; + if(d->foreign_metadata) { + size_t i;...
2020 Jul 01
0
Issues with FLOCK on NFS Share
...gt; 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|LOCK_WRITE; } else if (share_m...
2014 Sep 27
0
Patch to add buffering to decoding too
...C__bool error_occurred) { if(0 != d->fout && d->fout != stdout) { +#ifdef _WIN32 + if(!error_occurred) { + FLAC__off_t written_size = ftello(d->fout); + if(written_size > 0) { + HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if(GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = written_size; + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */ + SetE...
2003 Jan 06
0
Desktop.ini (part) solution
...2.7a, but also earlier) systems. This causes the dreaded Desktop.ini problem (yay!) and probably some others too! The test code in windows: #include "stdafx.h" #include <windows.h> int main(int argc, char* argv[]) { HANDLE f; f = CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI LE_ATTRIBUTE_NORMAL,NULL); CloseHandle(f); f = CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI LE_ATTRIBUTE_HIDDEN,NULL); CloseHandle(f); return 0; } Now in windows, the first call creates the file 'test.x' with NORMAL att...
2010 Mar 25
4
CreateFile \\\\.\\x: non-root
Hello, I have a usb data aquisition device interfaced by mass storage protocol. I open it like: hEcgDrive=CreateFile("\\\\.\\g:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_OVERLAPPED, NULL); for communication I use DeviceIoControl(hEcgDrive, IOCTL_SCSI_PASS_THROUGH_DIRECT, .... with a 'custom' scsi operation code as wrapper. On Wine-1.1.30. und...
2020 Jul 01
2
Issues with FLOCK on NFS Share
...gt; 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|LOCK_WRITE; } else if (share_m...
2001 Sep 14
5
wine serial support
Hi, I use wine to run a terminal emulator (NetTerm). It connects to a Linux Server (it was meant to run from windows) that runs a commerce software. This Linux commerce software sends the terminal emulator escape codes to interface with a "ticket" printer attached to a serial port. The reason to go thru all this problem is that the printer has a proprietary, closed source driver for
2002 Nov 17
2
Problem running Anstoss2 under Wine
Adrian Bunk wrote: >I'm trying to run Anstoss2 (a five years old German soccer simulation - >I'm only interested in the strategic part of the game) under Wine. I >tried the Debian package of the 20021031 Release and a self-compiled >package of a 20021116 CVS snapshot. The following messages occur during >the start of the game: > ><-- snip --> > >$ wine
2001 Dec 04
2
Serial Errors
...TING trace:comm:COMM_Init COM1 = /dev/ttyS0 trace:comm:COMM_Init LPT1 = /dev/lp0 trace:comm:COMM_Init COM2 = /dev/ttyS1 trace:comm:COMM_Init COM3 = /dev/ttyS2 trace:comm:COMM_Init COM4 = /dev/modem trace:file:_lopen ('(None)',0000) trace:file:CreateFileA (None) GENERIC_READ FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING warn:file:CreateFileA Unable to get full filename from '(None)' (GLE 2) trace:file:_lopen ('C:\WINDOWS\(None)',0000) trace:file:CreateFileA C:\WINDOWS\(None) GENERIC_READ FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING warn:file:CreateFileA Unable to get full filenam...
2007 Mar 13
10
Need some explanation on Samba/NFS locks handle
...ock 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) { kernel_mode = LOCK_MAND; } if (kernel_mode) {...
2009 Mar 23
1
I/O error 32 (share error) while opening executable
...GetShortPathNameA "C:\\condi\\CONDILNK.EXE" trace:file:GetShortPathNameW L"C:\\condi\\CONDILNK.EXE" trace:file:GetShortPathNameW returning L"C:\\condi\\CONDILNK.EXE" trace:file:CreateFileW L"C:\\condi\\CONDILNK.EXE" GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE creation 3 attributes 0x0 trace:file:RtlDosPathNameToNtPathName_U (L"C:\\condi\ \CONDILNK.EXE",0x7e69b640,(nil),(nil)) trace:file:RtlGetFullPathName_U (L"C:\\condi\\CONDILNK.EXE" 520 0x7e69b384 (nil)) trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\condi\\CONDILNK.EXE...
2005 Jan 06
0
Some thoughts on win32-changenotify
...lly, but I can''t figure out how to read back out of the buffer (nor am I exactly sure what to pass as a buffer in the first place). Here''s the basic approach. // Get a handle to the directory. hDir = CreateFile( lpPathName, FILE_LIST_DIRECTORY, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL ); if(hDir == INVALID_HANDLE_VALUE) { rb_raise(cChangeNotifyError,ErrorDescription(GetLastError())); } if(!ReadDirectoryChangesW( hDir, Buf, sizeof(Buf),...
2005 Jan 20
1
ChangeNotify help wanted
Hi all, I''ve checked in some code to win32-changenotify. Unfortunately, it doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName
2005 Sep 16
1
incorrect shared access to the file - samba oplock bug?
...even closing/reopening the file doesn't help - only the old snapshot of the file can be read. Touching the file from other program like Explorer has effect - Windows refreshes the file to it's current state. The file is opening from Windows as follow: CreateFile(file_name, GENERIC_READ, FILE_SHARE_WRITE, (LPSECURITY_ATTRIBUTES)NULL, OPEN_EXISTING, FILE_ATTRIBUTE_HIDDEN, (HANDLE)NULL)) Samba v. 2.2.7a, Linux kernel v. 2.4.20, oplock parameters - default. The effect is same in Windows 98 and XP. Please help!
2016 Oct 21
3
CTDB and locking issues in 4.4.6 (Classic domain)
> I've now managed to replicate the error on my test setup. I added a > third host and all hell broke loose - no locking at all when opening > Excel files apart from same-host. It seemed fine with two. > > I then downgraded to 4.4.5 and the problem persisted. So it cannot be > a regression from that patch. > > Regards, > > Alex > Here you go: Locked files: