search for: iflag

Displaying 20 results from an estimated 148 matches for "iflag".

Did you mean: flag
2020 Aug 17
3
[nbdkit PATCH] sh: Prefer dd bs=1 over iflag=count_bytes
While iflag=count_bytes combined with bs > 1 allows for more efficient operation, it is a feature of GNU dd, and not present on other implementations such as BSD. Sticking to just POSIX features makes things more portable. Signed-off-by: Eric Blake <eblake@redhat.com> --- docs/nbdkit-loop.pod...
2005 Apr 21
1
.Fortran() again
...of the file, I cannot get the result as expected. The next bit of data is an 50 by 20 integer array, which I cannot read proporly. Here is the command I tried. >readBin( mm5file,integer(),n=1) Another way I have tried uses .Fortran (). The fortran code were. 1.f subroutine readmm5(mm5file,IFLAG,MIF) integer iflag,MIF(50,20),MRF(20,20) CHARACTER*80 mm5file,MIFC(50,20),MRFC(20,20) OPEN (11,FILE=mm5file,FORM='UNFORMATTED') READ(11) IFLAG IF ( IFLAG .EQ. 0 ) THEN READ(mm5file) MIF,RMRF,MIFC,MRFC endif end $R CMD SHLIB 1.f $R >...
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...rN rsync-3.0.2-orig/generator.c rsync-3.0.2/generator.c --- rsync-3.0.2-orig/generator.c 2008-03-28 10:30:11.000000000 -0700 +++ rsync-3.0.2/generator.c 2008-05-07 15:35:08.317364774 -0700 @@ -1508,6 +1508,7 @@ if (preserve_links && S_ISLNK(file->mode)) { #ifdef SUPPORT_LINKS + int iflags = 0; const char *sl = F_SYMLINK(file); if (safe_symlinks && unsafe_symlink(sl, fname)) { if (verbose) { @@ -1528,7 +1529,15 @@ else if ((len = readlink(fname, lnk, MAXPATHLEN-1)) > 0 && strncmp(lnk, sl, len) == 0 && sl[len] == '\0') {...
2020 Aug 18
0
Re: [nbdkit PATCH] sh: Prefer dd bs=1 over iflag=count_bytes
On Mon, Aug 17, 2020 at 11:35:39AM -0500, Eric Blake wrote: > While iflag=count_bytes combined with bs > 1 allows for more efficient > operation, it is a feature of GNU dd, and not present on other > implementations such as BSD. Sticking to just POSIX features makes > things more portable. I'm not very convinced by this. Maybe we should persuade the BS...
2010 Dec 13
3
Slow I/O on ocfs2 file system
Hello, I have found, that ocfs2 is very slow when doing I/O operation without cache. See a simple test: ng-vvv1:~# dd if=/data/verejna/dd-1G bs=1k | dd of=/dev/null 1048576+0 records in 1048576+0 records out 1073741824 bytes (1.1 GB) copied, 395.183 s, 2.7 MB/s 2097152+0 records in 2097152+0 records out 1073741824 bytes (1.1 GB) copied, 395.184 s, 2.7 MB/s The underlying block device is quite
2024 Oct 22
1
invalid permissions
...loaded .libPaths(c("quantreg.Rcheck", .libPaths())) library(quantreg) example(plot.rqss) The crash happens in the Fortran code: Thread 1 "R" received signal SIGSEGV, Segmentation fault. 0x00007ffff3d77bd4 in pchol (m=5, n=1, xpnt=..., x=..., mxdiag=6971508156.8648586, ntiny=0, iflag=0, smxpy=0x7ffff3d75b80 <smxpy8>, tiny=<error reading variable: Cannot access memory at address 0xe00000000>, large=<error reading variable: Cannot access memory at address 0x5b14e898>) at cholesky.f:4927 4927 IF (DIAG .LE. tiny * MXDIAG) THEN (gdb) bt #...
2018 Dec 14
2
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
On 12/14/18 4:16 PM, Richard W.M. Jones wrote: > This implements something like a readonly 1MB disk reading as zeroes: > > nbdkit sh script=- <<'EOF' > case "$1" in > get_size) echo 1M ;; > pread) dd if=/dev/zero count=$3 iflag=count_bytes ;; > *) exit 2 ;; > esac > EOF > > Use of "-" is analogous to reading passwords from stdin. > --- > @@ -26,6 +30,19 @@ like this: > You may have to add further C<key=value> arguments to the command > line. > > +=head2 Inl...
2005 Apr 23
0
reading fortran binary file
Hi r-help, I have some troubles reading fortran binary file(from mm5) in R. Here is what I have done. 1. Use a fortran subroutine to read this file in R. The subroutine is as the following. subroutine freadmm5(filenamet,out2d) integer iflag,var1,miy,mjx,mkz,mt,z,t character*4 crdt,corder character*24 chrdate character*9 cname,var character*25 cunit,uunit,vunit,wunit character*80 filename real out2d(157,109),out3d(157,109,24) OPEN (11,FILE=filename,FORM='UNFORMATTED') 10 READ(11) IFL...
2024 Oct 22
1
invalid permissions
Gurus: I have a new version of my quantreg package with minimal changes, mainly to fix some obscure fortran problems. It fails R CMD check ?as-cran with the error: Running examples in ?quantreg-Ex.R? failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot.rqss > ### Title: Plot Method for rqss Objects
2005 Jul 26
1
itemize() needs to use CHMOD_BITS (patch)
...asking them with CHMOD_BITS. Here is a fix, tested with 2.6.6pre1. PS: I'm not subscribed to this mailing list, please Cc: if you need more info from me. Thanks. --- generator.c.~1~ Thu Jun 30 13:03:14 2005 +++ generator.c Tue Jul 26 12:51:11 2005 @@ -327,7 +327,8 @@ && (!(iflags & ITEM_XNAME_FOLLOWS) || *xname)) || (keep_time && cmp_modtime(file->modtime, st->st_mtime) != 0)) iflags |= ITEM_REPORT_TIME; - if (preserve_perms && file->mode != st->st_mode) + if (preserve_perms && (st->st_mode & CHMOD_BITS) +...
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...gt; 0 && code != FCLIENT) code = FLOG; + } else if (code == FLOG_AFTER) { + code = FLOG; } else if (send_msgs_to_gen) { assert(!is_utf8); /* Pass the message to our sibling in native charset. */ @@ -813,6 +816,12 @@ void log_item(enum logcode code, struct file_struct *file, int iflags, const cha { const char *s_or_r = am_sender ? "send" : "recv"; + if (code == FLOG_AFTER) { + if (logafter_format && *logafter_format) + log_formatted(FLOG_AFTER, logafter_format, s_or_r, file, NULL, iflags, hlink); + return; + } + if (code != FLOG &&...
2020 Mar 28
0
[klibc:update-dash] dash: main: Print \n upon EOF (CTRL-D) when run interactively
...+++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr/dash/main.c b/usr/dash/main.c index e8e42565..6d53e009 100644 --- a/usr/dash/main.c +++ b/usr/dash/main.c @@ -221,8 +221,15 @@ cmdloop(int top) if (!top || numeof >= 50) break; if (!stoppedjobs()) { - if (!Iflag) + if (!Iflag) { + if (iflag) { + out2c('\n'); +#ifdef FLUSHERR + flushout(out2); +#endif + } break; + } out2str("\nUse \"exit\" to leave shell.\n"); } numeof++;
2009 Jun 02
2
Which function in generator trigger the file transfer?
Dear List, I checked the function "generate_files", which might be simply stand for generator, but didn't find where triggers the file transfer. As receiver will use "read_ndx_and_attrs" to read iflags to judge if it's need to be transfered? If I'm wrong, please correct me. Can anyone help to point it out? Thanks. -- Daniel Li
2018 Dec 15
0
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
...12/14/18 4:16 PM, Richard W.M. Jones wrote: > >This implements something like a readonly 1MB disk reading as zeroes: > > > >nbdkit sh script=- <<'EOF' > > case "$1" in > > get_size) echo 1M ;; > > pread) dd if=/dev/zero count=$3 iflag=count_bytes ;; > > *) exit 2 ;; > > esac > >EOF > > > >Use of "-" is analogous to reading passwords from stdin. > >--- > > >@@ -26,6 +30,19 @@ like this: > > You may have to add further C<key=value> arguments to the command...
2019 Apr 01
2
[PATCH nbdkit] log: Decode the extent type in output.
...type=3’, this changes the output to show the hole and zero flags separately. For example: $ ./nbdkit -U - --filter=log sh - logfile=/dev/stdout \ --run 'qemu-img map $nbd' <<'EOF' case "$1" in get_size) echo 1M ;; pread) dd if=/dev/zero count=$3 iflag=count_bytes ;; can_extents) exit 0 ;; extents) echo "0 32K zero" echo "32K 32K hole,zero" echo "64K 983040 " ;; *) exit 2 ;; esac EOF [...] 2019-04-01 11:49:40.818357 connection=1 Extents id=2 offset=0x...
2006 May 13
2
using -v and -q together
...$ rm -r test2 the new output in 2.6.8 comes from the calls to maybe_log_item() and log_item() in send_files() ... one way to fix this would be to update the code around that to check the 'quiet' variable: +++ sender.c @@ extern int verbose; +extern int quiet; @@ send_files() if (!(iflags & ITEM_TRANSFER)) { + if (!quiet) maybe_log_item(file,?iflags,?itemizing,?xname); @@ send_files() if (!do_xfers) { /* log the transfer */ - if (!am_server && log_format) + if (!am_server && log_format && !quiet) log_item(file, &stats, iflags, NULL)...
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
...6 08:04:40 -0000 1.282 +++ generator.c 2 Jun 2006 13:00:01 -0000 @@ -45,6 +45,7 @@ extern int preserve_gid; extern int preserve_times; extern int omit_dir_times; +extern int omit_dir_changes; extern int delete_mode; extern int delete_before; extern int delete_during; @@ -348,10 +349,11 @@ iflags |= ITEM_REPORT_TIME; if ((file->mode & CHMOD_BITS) != (st->st_mode & CHMOD_BITS)) iflags |= ITEM_REPORT_PERMS; - if (preserve_uid && am_root && file->uid != st->st_uid) + if (preserve_uid && am_root && file->uid != st->st_uid +...
2019 Sep 12
3
Re: [PATCH nbdkit v2 3/3] tests: Add a simple test of nbdkit_export_name.
...ke the handle _be_ the export name: open) printf %s "$3" ;; > + get_size) > + stat -c '%s' "$2" > + ;; at which point, you can simplify to: get_size) echo ${#2} ;; > + pread) > + dd if="$2" skip=$4 count=$3 iflag=skip_bytes,count_bytes > + ;; and this would be something like: pread) echo "$2" | dd skip=$4 count=$3 iflag=skip_bytes,count_bytes ;; or bypass dd by exploiting your knowledge of the client: pread) if test $4.$3 = "0.${#2}"; then printf %s "$2"...
2011 Dec 11
5
New Guess OS Creation Problem
Hi All, I am running on CentOS Released 6.1 final. Been using and running Linux KVM quite well for quite some time, something goes wrong after I perform yum upgrade. I created new VM yesterday without any problem, same exact installation procedure, installed FreeBSD 8.2. I tried to create a new VM today after yum upgrade, it's able to detect the hard disk, when I start commit FreeBSD 8.2
2016 Jan 21
1
[Bug 11683] New: hang on select when send many files
..._135901/aifang_dw/contract_snapshot_detail_20151103.MYD 682244 2015/12/05-18:53:33 recv 114409 fullbak\n", len=147, is_utf8=0) at log.c:277 #4 0x000000000042299c in log_formatted (code=FLOG, format=<value optimized out>, op=0x45170a "recv", file=0x7f976a8cb360, fname=0x0, iflags=40960, hlink=0x0) at log.c:769 #5 0x0000000000422eaa in log_item (code=FINFO, file=0x7f976a8cb360, iflags=40960, hlink=0x0) at log.c:806 #6 0x0000000000413966 in recv_files (f_in=3, f_out=7, local_name=0x0) at receiver.c:852 #7 0x000000000041d3dc in do_recv (f_in=3, f_out=7, local_name=0x0) at...