search for: file_flag_write_through

Displaying 7 results from an estimated 7 matches for "file_flag_write_through".

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. under UHU linux (2.6.23.9-1) the program can open the device only if run as root. If run as plain user,...
2017 Oct 09
2
Linux vs. Windows SMB buffering
> The Linux client is asking for SMB1 and using 1MB write sizes. > > The Windows client is using SMB2 and *NOT ASKING FOR LEASES*. > > This is why the performance is terrible. Because the file > as no lease, the Windows redirector must pass every single > WriteFile() system call onto the wire, no matter how small > the size. > > If you can get the Windows SMB2 client
2017 Oct 09
0
Linux vs. Windows SMB buffering
...I'm getting closer? :) Does the smb.conf looks reasonable to you? So it's now getting a RWH lease, but still doing the raw syscall reads across the wire. Does it do the same to a Windows server ? Looks like the client application is deliberately turning off any redirector caching by using FILE_FLAG_WRITE_THROUGH on the CreateFile() Win32 call. If you can do the equivalent of strace on Windows (I don't know how) you might be able to confirm that and ask the app developer to stop doing that. https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx FILE_FLAG_WRITE_THROUGH 0x80000...
2006 Mar 27
1
Running SQL over SAMBA?
...data write ordering and write-through guarantees detailed in the "More Information" section of this article. . http://support.microsoft.com/kb/234656/ All versions of SQL Server open the log and data files using the Win32 CreateFile function. The dwFlagsAndAttributes member includes the FILE_FLAG_WRITE_THROUGH option when opened by SQL Server. All comments are welcome and highly appreciated. Cheers, Ephi
2008 Sep 16
1
sync always, strict sync, cache question
Hello, I've been using samba to share folders for a number of years now. thankyou very much to the samba team. Now I'm posed with some questions. I have a couple of servers hosting desktops for thinclient users. Until now I have been mounting /home with NFS on these servers. Recently we have upgraded the whole system and have run into write performance issues with the NFS server. time
2003 Jul 29
0
Samba Timeout Issue
...disconnect SMB TCP connection when slow response from heavily loaded server. This causes applications to terminate with an error, or worse: hang. Problem Details =============== Observations on client ---------------------- A test application on the client opens a file in write through mode (Win32:FILE_FLAG_WRITE_THROUGH) and writes a timestamp to this file every 10 seconds. After some time, the file access fails (typically with the error ERROR_NETNAME_DELETED). Observation on network (using Ethereal) --------------------------------------- At 14:07:53 a successful write is performed. This is correctly acked by th...
2018 Aug 17
0
Wine release 3.14
...t32/tests: Add test for VarBstrFromI4. oleaut32: Extend value range before getting absolute value in VarBstrFromI4. kernel32/tests: Add some CompareStringA/W tests. Dmitry Timoshkov (6): kernel32: Add support for MOVEFILE_WRITE_THROUGH to MoveFile. kernel32: Add support for FILE_FLAG_WRITE_THROUGH to CreateFile. kernel32/tests: Add a test for holding a critical section during process termination. ntdll: Don't allow blocking on a critical section during process termination. kernel32: Set environment variable %PUBLIC% at process start-up. winecfg: Allow to disable M...