Displaying 20 results from an estimated 2000 matches similar to: "win32-file: nread and nwrite"
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
2004 Nov 17
1
nread and nwrite optimizations
Hi all,
So far, so good. Things seem to work just fine and, in the case of
nread, I am getting incredible performance. I can''t tell if this is due
to some kind of caching, however.
Anyway, there a couple of things I want to work out yet. The first is
File#nread and Really Big Files. I created a 500 mb text file and
sucked it into memory using Ruby''s File#read method just
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
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 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
2004 May 20
0
Latest win32-file commit
All,
I''ve committed an alpha version of a win32-file that supports a native
open, close and write. I''ve got a couple issues that I was hoping you
could help with.
First, should we overload these methods? In other words, for the open
method, if it''s 1 argument use the default Ruby method, but if it''s 5
arguments (the number of arguments that CreateFile()
2004 Nov 11
0
File.nopen alpha - another followup
Hi all,
> fh = File.nopen("C:\\temp.txt",File::WRITE_ATTRIBUTES)
> fh.hidden = true
> fh.close
>
> I get "test.rb:16:in `hidden='': cannot convert nil into
> String (TypeError)"
It looks like this line is the culprit:
rbPath = rb_funcall(self,rb_intern("path"),0,0);
Hm...we could use GetFullPathName() if rbPath is nil. That, however,
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 Nov 13
0
Sanity check for win32-file
Hi all,
The code that I checked in yesterday that seemed to work just fine now
fails. When I run this:
require "win32/file"
fh = File.nopen("C:\\test.txt")
fh.close
I now get:
test.rb:12:in `initialize'': Invalid argument (Errno::EINVAL)
from test.rb:12:in `nopen''
Specifically, it''s failing on this in file.c:
args[0] =
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
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
2012 Feb 07
5
Table rearranging
I have a table that looks like this:
measurement?? ?date??? door ?? color
0.93529385?? ?513?? ?open?? ?red
0.97419293?? ?420??? open ?? red
0.962053514?? ?513?? ?closed?? ?red
0.963909937?? ?1230?? ?open?? ?blue
0.97652034?? ?1230?? ?open?? ?green
0.989310795?? ?1230?? ?closed?? ?blue
0.9941022?? ?917?? ?closed?? ?yellow
I would like to create a table that has: Open measurement, Closed
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: