Displaying 20 results from an estimated 3000 matches similar to: "nread and nwrite optimizations"
2004 Nov 16
2
win32-file: nread and nwrite
Hi all,
I''ve got alpha versions of nread and nwrite now added to the win32-file
class in CVS. They seem to work fine, although I''ve noticed one bug in
the File#read method. Let''s say we have a text file with "hello world"
in it. If I call nread with no arguments, it works fine:
fh = File.nopen("C:\\test.txt")
p fh.nread -> "hello
2004 Nov 21
3
win32-file, overlapped added
Hi all,
I''ve got overlapped and offset support in both nread and nwrite. The only
thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING
to work. Unfortunately, I can''t get it to work.
Park, I looked at that site you sent (and borrowed some code from it), but I
don''t see anything special happening for NO_BUFFERING. I thought it
required
2007 Sep 25
2
Using callbacks with ReadFileEx
Hi all,
First, I just realized I''ll need to go back and fix some of the
prototype declarations for windows-pr. The callback parameters will now
need to be set to ''K''. ReadFileEx is one example of this. For purposes
of my question, let''s assume ReadFileEx has been declared like so:
API.new(''ReadFileEx'', ''LPLPK'',
2008 Jul 05
4
iostat and monitoring
Hi gurus,
I like zpool iostat and I like system monitoring, so I setup a script
within sma to let me get the zpool iostat figures through snmp.
The problem is that as zpool iostat is only run once for each snmp
query, it always reports a static set of figures, like so:
root at exodus:snmp # zpool iostat -v
capacity operations bandwidth
pool used avail read
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all,
Looking at the IO.readlines source in io.c, it looks to me like they
grab 8k chunks, split on the input record separator, and buffer accordingly.
Since it looks like ReadFileScatter() does some of that work
automatically (in page file sized chunks), I thought I''d give it a try.
Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
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,
2002 Dec 20
1
smbclient and large file support
smbclient (and smbtar) in version 2.2.7a (and prior) has problems with
large files (> 4GB). The following patch (against 2.2.7a) fixes all
known problems with this. This code has been checked into the CVS tree
in all branches as well.
--
======================================================================
Herb Lewis Silicon Graphics
Networking Engineer
2003 Aug 24
1
readdir() and read() errors ignored
We've just been hit rather badly by a very nasty bug that can cause rsync
to silently discard files or fill them with zeroes. It happens when e.g.
opendir() succeeds but readdir() returns an error; rsync does not check
for an error from readdir() and so simply ignores the error (along with
any remaining files in the directory). No error is reported to the user,
who will then happily
2004 Jan 14
1
signing failures during smbclient tar operation: SMB signature check failed
(Samba 3.0.1, RedHat 9, share is a w2k3, security = ADS)
Here is a snippet of debug level 3 output of an smbclient tar operation,
with error at the end. Command is:
# smbclient \\\\snapper\\dfs <password> -U Administrator -E -W CISWINNET
-D home -d3 -Tqca /tmp/test.tar
[2004/01/14 15:05:10, 3] lib/util.c:dos_clean_name(549)
dos_clean_name
2008 Sep 11
3
ZFS Crypto [Prelim] Codereview
Here''s my comments for the preliminary ZFS Crypto review.
- Dan
Webrev: http://cr.opensolaris.org/~darrenm/zfs-crypto-gate/webrev/
General comments:
DEA-1 - SCCS keywords need to be removed
DEA-2 - Copyright updated
------------------------------------------------------------------
usr/src/lib/libcryptoutil/common/keyfile.c pkcs11_read_data()
This code in pkcs11_read_data() scares
2007 May 04
0
[ win32utils-Feature Requests-1435 ] Move native IO routines to the IO class
Feature Requests item #1435, was opened at 2005-02-03 12:19
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=1435&group_id=85
Category: win32-file
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Daniel Berger (djberg96)
Summary: Move native IO routines to the IO class
Initial Comment:
The
2006 Jan 12
1
XP to Samba printer access delay
Hi all,
I've got a question, may be somebody can help me:
1. I've got a printer (Epson Stylus Photo R220)
2. Attached to Linux box via usb (Mandriva 2006+)
3. Configured with cups (cups-1.2.0-0.4892.1mdk)
4. Shared with samba (samba-server-3.0.21a-1mdk), user - tried guest and
real linux user
5.On WinXP native driver install from CD (later updated from Espon site)
6.From WinXP I can see
1999 Jul 05
1
smbtar/smbclient and backups of NT
I've looked at samba archives (mailing lists), I've looked at altavista,
and deja.com. No help.
I want to do a backup of NT machine using smbclient. I call it like:
# smbclient //MACHINE/Share Pass -U Administrator -E -c tarmode full -D usr
-d0 -Tc test.tar
It starts fine, but after some time thing like this happen:
...
Error reading file \usr\mail\Vanja\Attach\att11.eml. Got 0 bytes
2012 Aug 06
1
with streams_xattr enabled, ads are written correctly but not retrieved
Hello,
I'm running Samba 3.6.6-1 on my x64 Arch Linux installation. I recently
decided to have my samba share support NTFS's Alternate Data Streams by
using streams_xattr or streams_depot. With streams_xattr I discovered that
if I copy a file having an ADS from a win7 box, on the linux console, I can
see the ADS as an xattr attached to the file. However when I copy the file
back to my
2013 Jul 15
2
Invalid listing, samba 3.6.6
Hello list,
i do have a problem with Amanda and Smbclient again.
Im trying to backup some shares and I do get some errors which i cannot fix:
?
? smbclient: Error reading file \Dtel\El\2009-11 u TEST\2009-11\Logos\meeting, England\P1020272.MOV : NT_STATUS_OK
? smbclient: Didn't get entire file. size=86525282, nread=61719840
? smbclient: NT_STATUS_OK opening remote file \Dr\P1020273.JPG
2011 Apr 12
2
samba/backuppc error: NT_STATUS_CONNECTION_RESET
I am getting the following error from backuppc when trying to backup a
windows7 machine from my ubuntu machine(though I believe this error
comes directly from samba):
[CODE][ skipped 44618 lines ]
Error reading file \medSchool\body\dissectionimages\practice.pptx :
NT_STATUS_CONNECTION_RESET
Didn't get entire file. size=272456645, nread=126584640[/CODE]
The backup occurs fine for *hours*
2002 Aug 05
5
[patch] read-devices
Greetings,
I'd like to propose a new option to rsync, which causes it to read
device files as if they were regular files. This includes pipes,
character devices and block devices (I'm not sure about sockets). The
main motivation is cases where you need to synchronize a large amount of
data that is not available as regular files, as in the following scenarios:
* Keep a copy of a block
2018 Jun 18
4
Memdisk and big floppy images
Dear Syslinux folks,
For a firmware update I am following the Gentoo Wiki [1] to create a floppy
image of 20 MB, so that the vendor update utility fits.
Unfortunately, FreeDOS does not load, and it seems to hang loading the
FreeDOS kernel. The original FreeDOS image boots. Do you know if that issue
is memdisk related? It?s started from GRUB with the commands below.
linux16 /boot/memdisk
2002 Aug 22
2
HELP: XP cannot login to Samba 2.2.5
Greetings,
Perhaps someone can offer some advice on how to get
this working. I will detail my process and whats been
done.
on the XP side of the house (client side)
1. XP_signorseal registry hack applied, value at 0
now.
2. following values set to disabled:
domain member: Digitally encrypt secure channel data
(always)
domain member: Digitally encrypt secure channel (when
possible)
domain member:
2008 May 20
10
Asynchronous Pipe::Server problems
Hi all,
I''ve been working on the win32-pipe library (again) and I''ve reworked
the interface. Instead of Pipe.new_server or Pipe.new_client, there''s
now a base Pipe class, with Pipe::Server and Pipe::Client subclasses.
You can find the latest code in the CVS repo.
Oh, and you''ll need to update your windows-pr library with the latest
from CVS if you want to