search for: do_scan

Displaying 6 results from an estimated 6 matches for "do_scan".

Did you mean: dmi_scan
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
...;t check for EOF and keeps asking for more characters until the inner loop runs at least once for every line it wants to skip. The following patch should avoid the wait in such cases: --- src/main/scan.c (revision 83797) +++ src/main/scan.c (working copy) @@ -835,7 +835,7 @@ attribute_hidden SEXP do_scan(SEXP call, SEXP op, SEXP args, SEXP rho) { SEXP ans, file, sep, what, stripwhite, dec, quotes, comstr; - int c, flush, fill, blskip, multiline, escapes, skipNul; + int c = 0, flush, fill, blskip, multiline, escapes, skipNul; R_xlen_t nmax, nlines, nskip; const char *p, *encodi...
2023 Mar 13
0
scan(..., skip=1e11): infinite loop; cannot interrupt
...or?more?characters?until?the?inner?loop?runs?at?least?once?for >?every?line?it?wants?to?skip.?The?following?patch?should?avoid?the >?wait?in?such?cases: > >?---?src/main/scan.c?(revision?83797) >?+++?src/main/scan.c?(working?copy) >?@@?-835,7?+835,7?@@ >???attribute_hidden?SEXP?do_scan(SEXP?call,?SEXP?op,?SEXP?args,?SEXP?rho) >???{ >???????SEXP?ans,?file,?sep,?what,?stripwhite,?dec,?quotes,?comstr; >?-????int?c,?flush,?fill,?blskip,?multiline,?escapes,?skipNul; >?+????int?c?=?0,?flush,?fill,?blskip,?multiline,?escapes,?skipNul; >???????R_xlen_t?nmax,?nlines,?nskip;...
2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...system are shown.\n" + "If --all-devices is passed, all devices are scanned." }, { do_df_filesystem, 1, "filesystem df", "<path>\n" @@ -96,9 +97,10 @@ static struct Command commands[] = { "Balance the chunks across the device." }, { do_scan, - 999, "device scan", "[<device> [<device>..]\n" + 999, "device scan", "[--all-devices|<device> [<device>..]\n" "Scan all device for or the passed device for a btrfs\n" - "filesystem." + "filesystem.\...
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
Hello, All: I have a 4.54 GB file that I'm trying to read in chunks using "scan(..., skip=__)". It works as expected for small values of "skip" but goes into an infinite loop for "skip=1e11" and similar large values of skip: I cannot even interrupt it; I must kill R. Below please find sessionInfo() with a toy example. My real problem is a large
2011 Jul 19
6
[PATCH 0/6] Move the infor for the help/man page in the source
The following series implement a way to generate the help messages and the btrfs man page from the sources comments for the "btrfs" commanda . The syntax and the detailed help of every subcommand are stored in the comments before the function which implements the subcommand. The fact that the help messages and the man page are generated from the same source should help to avoid
2011 Jul 18
5
[PATCH v3 0/5] btrfs-progs: scrub interface
This is the next patch series for scrub userland tools. Change log v1->v2: - commands now reachable as "btrfs scrub ..." instead of "btrfs filesystem scrub ..." - ability to scrub a single device instead of a whole file system - superfluous command line options removed - resume is now a separate command ("scrub resume") instead of "scrub start -r" -