search for: read_file

Displaying 20 results from an estimated 150 matches for "read_file".

2006 Jul 10
2
ArcView + Samba: Performance nightmare under Linux, ok under Solaris or HP-UX
...t identical between Solaris and Linux systems. Here the application opens its control files and some data files. At some specific point the logfiles beginn to differ: with the Solaris samba server, the ArcView application reads the data files with 4k blocks in a sequential manner like this: [...] read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 0, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 4096, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 8192, size = 4096, returned 4096 read_file (daten/covers/dhm_offse...
2006 Jul 10
1
ArcView + Samba: Performance nightmare under Linux, o k under Solaris or HP-UX
...t identical between Solaris and Linux systems. Here the application opens its control files and some data files. At some specific point the logfiles beginn to differ: with the Solaris samba server, the ArcView application reads the data files with 4k blocks in a sequential manner like this: [...] read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 0, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 4096, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 8192, size = 4096, returned 4096 read_file (daten/covers/dhm_offse...
2005 Dec 12
2
Extremely slow Samba3 performance with ArcView/WinXP
...e lots of the following lines: [...] [2005/12/12 14:37:16, 3] smbd/process.c:switch_message(900) switch message SMBreadX (pid 16879) conn 0x84431d0 [2005/12/12 14:37:16, 4] smbd/uid.c:change_to_user(217) change_to_user: Skipping user change - already user [2005/12/12 14:37:16, 10] smbd/fileio.c:read_file(105) read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 831488, size = 512, returned 512 [2005/12/12 14:37:16, 3] smbd/reply.c:send_file_readX(2585) send_file_readX fnum=10031 max=512 nread=512 [2005/12/12 14:37:16, 5] lib/util.c:show_msg(454) [2005/12/12 14:37:16, 5] lib/util.c:show_msg...
2009 Oct 19
2
Old application very slow
...g.c:is_locked(98) is_locked: optimisation - exclusive oplock on file ACE/TIKKLOK/PCBNR.NTX [2009/10/19 14:45:28, 10] locking/locking.c:is_locked(136) is_locked: flavour = WINDOWS_LOCK brl start=0 len=12 unlocked for fnum 6473 file ACE/TIKKLOK/PCBNR.NTX [2009/10/19 14:45:28, 10] smbd/fileio.c:read_file(104) read_file (ACE/TIKKLOK/PCBNR.NTX): pos = 0, size = 12, returned 12 [2009/10/19 14:45:28, 3] smbd/reply.c:reply_read(3123) read fnum=6473 num=12 nread=12 [2009/10/19 14:45:28, 5] lib/util.c:show_msg(647) [2009/10/19 14:45:28, 5] lib/util.c:show_msg(657) size=60 smb_com=0xa smb...
2012 Apr 24
0
help with GUI interface
..."fill","sep", label="file", ) ), aContainer("assign.to", aFrame("output", label="Preview") ), horizontal=TRUE)) dlg$read_file <- function(., file.type, output, assign.to, ...) { if(file.type != "") { out <- try(do.call(sprintf("read.%s",file.type), list(...)), silent=TRUE) if(inherits(out, "try-error")) { cat("Error reading file of type,", file.type, &quot...
2008 Nov 20
0
strange problem with kernel oplocks
...=24 unlocked for fnum 5756 file ????????????? ??? ???/??????????/???????? ???????-2005?/Podschet_Sos n_ispr_2005/??? I. ?????1 ?????. ?????.????/??????? ? ??.1,2,3,4,10/ris.2.1.Tekt.wmf [2008/11/19 11:32:28, 10] smbd/fileio.c:read_file(105) read_file (????????????? ??? ???/??????????/???????? ???????-2005?/Podschet_Sosn_ispr_2005/??? I. ?????1 ?????. ?????.????/??????? ? ??.1,2,3,4,10/ris.2.1 .Tekt.wmf): pos = 330004, size =...
2017 Sep 02
1
readLines() segfaults on large file & question on how to work around
Thank you for your suggestion. Unfortunately, while R doesn't segfault calling readr::read_file() on the test file I described, I get the error message: Error in read_file_(ds, locale) : negative length vectors are not allowed Jen On Sat, Sep 2, 2017 at 1:38 PM, Ista Zahn <istazahn at gmail.com> wrote: > As s work-around I suggest readr::read_file. > > --Ista > > &gt...
2011 May 29
1
febootstrap: what am I doing wrong?
...tstrap-supermin-helper with -vv produces these lines before the error: ,---- | ext2_file_stat /var/tmp 041777 | supermin helper [06516ms] visiting supermin.d/init.img | cpio header 070701016E4031000081ED000003E8000003E8000000014DE27BEC00000030000000090000000000000000000000000000000500000000 | ext2 read_file init 100755 | ext2 read_file dirname init basename init | cpio header 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000 | ext2 read_file TRAILER!!! 0 | ext2_file_stat /lib/modules/2.6.39-1-amd64 040755 | febootstrap-supermin-helper: ext2:...
2016 Mar 29
3
[PATCH 0/2] added filesystem_walk API
The filesystem_walk API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. This is the end user API for inspecting a disk partition content. The command can handle filenames with special characters. Example
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk API
...t;guestfs_protocol.h" +#include "guestfs-internal.h" +#include "guestfs-internal-all.h" +#include "guestfs-internal-actions.h" + +#ifdef HAVE_LIBTSK + +static int deserialise_inode_info +(guestfs_h *g, XDR *xdrs, struct guestfs_tsk_node *node_info); +static size_t read_file(guestfs_h *g, const char *path, char **dest); +static struct guestfs_tsk_node_list * +parse_filesystem_walk0 (guestfs_h *g, char *buf, size_t bufsize); +static void free_nodes(struct guestfs_tsk_node_list *nodes); + +struct guestfs_tsk_node_list * +guestfs_impl_filesystem_walk(guestfs_h *g, const c...
2016 Apr 26
1
[PATCH] image embedding can result in flac file corruption
Currently it's possible to corrupt FLAC file with flac and metaflac tools. If image filesize is just slightly less than 2^24 bytes then the size of PICTURE metadata block will be more that this limit. The first patch (fix1.patch) adds additional check in /share/grabbag/picture.c/read_file() and removes rather useless check from FLAC__metadata_object_picture_set_data(). It's enough to fix the command-line tools, but I think that it also makes sense to add additional checks into libFLAC library; so fix2.patch adds two checks of metadata block length. -------------- next part ----...
2000 Dec 11
1
fixing shuffle in ogg123
...+ int nb = argc - optind; + int *p = alloca(sizeof(int) * nb); + for (i = 0; i < nb; i++) p[i] = i; + + srand (time (NULL)); + for (i = 1; i < nb; i++) { - srand (time (NULL)); - j = (int) ((float) (argc - optind) * rand () / (RAND_MAX + 1.0)); - param.read_file = argv[j+optind]; + int j = i * ((float) rand() / RAND_MAX); + int temp = p[j]; p[j] = p[i]; p[i] = temp; + } + for (i = 0; i < nb; i++) + { + param.read_file = argv[p[i]+optind]; play_file (); } } -=-=-- -- Guillaume Cottenceau - http://us.mandrakesoft.c...
2005 Feb 03
3
Reading Dates in a csv File
Hi all. I'm reading in a flat, comma-delimited flat file using read.csv. It works marvelously for the most part. I am using the colClasses argument to, basically, create numeric, factor and character classes for the columns I'm reading in. However, a couple of the fields in the file are date fields. I'm fully aware that POSIXct can be used as a class, however the field must obey,
2015 Jun 23
2
[PATCH] lib: Add optional 'append' parameter to copy-(device|file)-to-file APIs.
...uot;; "/copyff/src"; "/copyff/dest"; ""; ""; ""; ""]; + ["copy_file_to_file"; "/copyff/src"; "/copyff/dest"; ""; ""; ""; ""; "false"]; ["read_file"; "/copyff/dest"]], "compare_buffers (ret, size, \"hello, world\", 12) == 0"), []; - let size = 1024 * 1024 in InitScratchFS, Always, TestResultTrue ( + let size = 1024 * 1024 in [["mkdir"; "/copyff2"];...
2014 Aug 21
3
Re: [PATCH] v2v: adding input -i ova
...p; String.lowercase (String.sub file (len-3) 3) = ".mf" then > + mf := file > + ) files; > + > + (* verify sha1 from manifest file *) > + let mf = dir // !mf in > + let rex = Str.regexp "SHA1(\\(.*\\))= *\\(.*?\\).*$" in > + let lines = read_file mf in > + List.iter ( > + fun line -> > + if Str.string_match rex line 0 then > + let file = Str.matched_group 1 line in > + let sha1 = Str.matched_group 2 line in > + > + let cmd = sprintf "sha1sum %s" (dir // file) in Q...
2005 Feb 03
1
filling a string buffer in a C routine
I am trying to write a C function that reads lines from a file and passes them back to R. Here is a simplified version: --- C code --- #include <R.h> void read_file(char **filename, char **buf, char **buflen) { FILE *infile; infile = fopen(*filename, "r"); fgets(*buf, *buflen, infile); fclose(infile); } --- R code --- buffer = "xxxxxxxxxx" # kludge! read.file <- function(filename) .C("read_climate",...
2014 Aug 21
2
[PATCH] v2v: adding input -i ova
Shahar: This is the same patch as you posted, but I have rebased it on top of current HEAD. You'll have to do save the next email to a file, and do: git reset --hard HEAD^ git pull git am /path/to/saved_email There are no changes in this patch, except what is needed to make it compile. Will follow-up with comments. Rich.
2017 Sep 18
0
[PATCH v9 4/7] builder: add Index.write_entry function
...t;do-not-use-curl" + ~cache:None ~tmpdir + +(* Utils. *) +let write_entries file entries = + let chan = open_out (tmpdir // file) in + List.iter ( + fun (entry) -> + Index_parser.write_entry chan entry; + ) entries; + close_out chan + +let read_file file = + read_whole_file (tmpdir // "out") + +let parse_file file = + let source = { Sources.name = "input"; + uri = tmpdir // file; + gpgkey = Utils.No_Key; + proxy = Curl.SystemProxy; + format = Sources.FormatNa...
2017 Oct 27
0
[PATCH v11 6/8] builder: add Index.write_entry function
..._downloader = Downloader.create ~curl:"do-not-use-curl" + ~cache:None ~tmpdir + +(* Utils. *) +let write_entries file entries = + let chan = open_out (tmpdir // file) in + List.iter (Index_parser.write_entry chan) entries; + close_out chan + +let read_file file = + read_whole_file (tmpdir // "out") + +let parse_file file = + let source = { Sources.name = "input"; + uri = tmpdir // file; + gpgkey = Utils.No_Key; + proxy = Curl.SystemProxy; + format = Sources.FormatNa...
2017 Oct 05
0
[PATCH v11 4/6] builder: add Index.write_entry function
...t;do-not-use-curl" + ~cache:None ~tmpdir + +(* Utils. *) +let write_entries file entries = + let chan = open_out (tmpdir // file) in + List.iter ( + fun (entry) -> + Index_parser.write_entry chan entry; + ) entries; + close_out chan + +let read_file file = + read_whole_file (tmpdir // "out") + +let parse_file file = + let source = { Sources.name = "input"; + uri = tmpdir // file; + gpgkey = Utils.No_Key; + proxy = Curl.SystemProxy; + format = Sources.FormatNa...