search for: num_fil

Displaying 20 results from an estimated 27 matches for "num_fil".

Did you mean: num_file
2006 Sep 21
0
layer7 http
...t 1 $TC_BIN class add dev $INTER_OUT parent 1: classid 1:1 htb rate $LINK_RATE_UP $TC_BIN filter add dev $INTER_OUT parent 1:0 protocol all u32 match u32 0 0 classid 1:1 ## BuildInChains $TC_BIN class add dev $INTER_OUT parent 1:1 classid 1:11 htb rate $LINK_RATE_UP ceil $LINK_RATE_UP quantum 1532 NUM_file=12 NB_class=$NB_file while [ $NB_class -ge 0 ] do PRIO=$((5-$NB_class)) case $NUM_file in 12) RATE_PIPE=$RATE_12 ;; 13) RATE_PIPE=$RATE_13 ;; 14) RATE_PIPE=$RATE_14 ;; esac $TC_BIN class add dev $INTER_OUT parent 1:11 classid 1...
2007 Feb 07
3
Redirect --stats to STDERR.
.../@@ -227,39 +227,39 @@/ / {/ / if (do_stats) {/ / rprintf(FCLIENT, "\n");/ /- rprintf(FINFO,"Number of files: %d\n", stats.num_files);/ /- rprintf(FINFO,"Number of files transferred: %d\n",/ /+ rprintf(FERROR,"Number of files: %d\n", stats.num_files);/ /+ rprintf(FERR...
2004 Jan 13
3
Progress reporting: N more to check
...long diff = msdiff(&start_time, now); double rate = diff ? (double) (ofs-start_ofs) * 1000.0 / diff / 1024.0 : 0; @@ -72,10 +74,16 @@ static void rprint_progress(OFF_T ofs, O remain_m = (int) (remain / 60.0) % 60; remain_h = (int) (remain / 3600.0); + if (is_last) { + int todo = stats.num_files - stats.num_untransferred_files + - stats.num_transferred_files; + snprintf(eol, sizeof eol, " (#%d; %d more to check)\n", + stats.num_transferred_files, todo); + } else + strcpy(eol, "\r"); rprintf(FINFO, "%12.0f %3d%% %7.2f%s %4d:%02d:%02d%s", (double)...
2008 Oct 22
1
[PATCH] Make progress output show "done" instead of "to-chk".
...-- a/progress.c +++ b/progress.c @@ -72,9 +72,9 @@ static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now, if (is_last) { int len = snprintf(eol, sizeof eol, - " (xfr#%d, to-chk=%d/%d)\n", + " (xfr#%d, done=%d/%d)\n", stats.xferred_files, - stats.num_files - current_file_index - 1, + current_file_index, stats.num_files); if (INFO_GTE(PROGRESS, 2)) { static int last_len = 0; -- 1.6.0.2.593.g91df
2016 Aug 20
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...num; i++) { + g_free(files[i]); + } + g_free(files); + + return ret; +} + +static ssize_t virtio_pstore_do_open(VirtIOPstore *s) +{ + /* scan all pstore files */ + prefix_idx = 0; + prefix_count = ARRAY_SIZE(virtio_pstore_file_prefix); + + s->file_idx = 0; + s->num_file = scandir(s->directory, &s->files, filter_pstore, alphasort); + + return s->num_file >= 0 ? 0 : -1; +} + +static ssize_t virtio_pstore_do_close(VirtIOPstore *s) +{ + int i; + + for (i = 0; i < s->num_file; i++) { + g_free(s->files[i]); + } + g_free(s-...
2016 Nov 10
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...t virtio_pstore_do_open(VirtIOPstore *s) > > > +{ > > > + /* scan all pstore files */ > > > + prefix_idx = 0; > > > + prefix_count = ARRAY_SIZE(virtio_pstore_file_prefix); > > > + > > > + s->file_idx = 0; > > > + s->num_file = scandir(s->directory, &s->files, filter_pstore, alphasort); > > > + > > > + return s->num_file >= 0 ? 0 : -1; > > > +} > > > + > > > +static ssize_t virtio_pstore_do_close(VirtIOPstore *s) > > > +{ > > > + int i...
2011 Aug 05
2
Which is more efficient?
...i ] <- t.test ( temp[ , j ], temp[ , k ], var.equal=TRUE) ------------- I have three loops, i, j, k. One to test the all of <i> files in a directory. One to tease out column <j> and compare it by means of t-test to column <k> in each of the files. --------------- for ( i in 1:num_files ) { temp <- read.table ( files_to_test [ i ], header=TRUE, sep="\t") num_cols <- ncol ( temp ) ## Define Columns To Compare ## for ( j in 2 : num_cols ) { for ( k in 3 : num_cols ) { ## t-test ## colA <- temp [ , j ] colB <- te...
2004 Aug 10
2
out of memory in receive_file_entry rsync-2.6.2
...uer" # evil hack to get around rsync's 3mil file limit # Accepts two arguments as the srcpath and dstpath. Will not work # if srcpath is local. srchost=`echo $1 | awk -F: '{ print $1 }'` srcdir=`echo $1 | awk -F: '{ print $2 }'` num_files=`ssh root@$srchost "find $srcdir | wc -l"` if [ $((num_files)) -gt 2000000 ] then echo "WARNING! file count greater than 2mil, recursing into subdirs." for file in `ssh root@$srchost "ls $srcdir"` do...
2018 Jan 24
4
geo-replication command rsync returned with 3
....any idea ? best regards Dietmar gfs 3.12.5 geo-rep log on master : [2018-01-24 15:50:35.347959] I [master(/brick1/mvol1):1385:crawl] _GMaster: slave's time stime=(1516808792, 0) [2018-01-24 15:50:35.604094] I [master(/brick1/mvol1):1863:syncjob] Syncer: Sync Time Taken duration=0.0294??? num_files=1??? job=2??? return_code=3 [2018-01-24 15:50:35.605490] E [resource(/brick1/mvol1):210:errlog] Popen: command returned error??? cmd=rsync -aR0 --inplace --files-from=- --super --stats --numeric-ids --no-implied-dirs --existing --xattrs --acls --ignore-missing-args . -e ssh -oPasswordAuthenti...
2017 Sep 29
1
Gluster geo replication volume is faulty
...aulty N/A N/A Here is the output of the geo replication log file [root at gfs1 ~]# tail -n 100 $(gluster volume geo-replication gfsvol geo-rep-user at gfs4::gfsvol_rep config log-file) [2017-09-29 15:53:29.785386] I [master(/gfs/brick2/gv0):1860:syncjob] Syncer: Sync Time Taken duration=0.0357 num_files=1 job=3 return_code=12 [2017-09-29 15:53:29.785615] E [resource(/gfs/brick2/gv0):208:errlog] Popen: command returned error cmd=rsync -aR0 --inplace --files-from=- --super --stats --numeric-ids --no-implied-dirs --existing --xattrs --acls . -e ssh -oPasswordAuthentication=no -oStrictHostKeyCheckin...
2018 Jan 25
0
geo-replication command rsync returned with 3
...t; > gfs 3.12.5 geo-rep log on master : > > [2018-01-24 15:50:35.347959] I [master(/brick1/mvol1):1385:crawl] > _GMaster: slave's time stime=(1516808792, 0) > [2018-01-24 15:50:35.604094] I [master(/brick1/mvol1):1863:syncjob] > Syncer: Sync Time Taken duration=0.0294 num_files=1 job=2 > return_code=3 > [2018-01-24 15:50:35.605490] E [resource(/brick1/mvol1):210:errlog] > Popen: command returned error cmd=rsync -aR0 --inplace --files-from=- > --super --stats --numeric-ids --no-implied-dirs --existing --xattrs --acls > --ignore-missing-args . -e ssh...
2004 Sep 03
1
more filelist --stats
...opyright (C) by Andrew Tridgell 1996, 2000 Copyright (C) Paul Mackerras 1996 Copyright (C) 2001, 2002 by Martin Pool <mbp@samba.org> @@ -520,6 +521,8 @@ int64 literal_data; int64 matched_data; int flist_size; + time_t flist_buildtime; + time_t flist_xfertime; int num_files; int num_transferred_files; int current_file_index;
2007 Aug 01
0
[PATCH] prevent negative "time left" values with --progress when file grows
...tman Index: progress.c =================================================================== RCS file: /cvsroot/rsync/progress.c,v retrieving revision 1.23 diff -u -r1.23 progress.c --- progress.c 10 Jul 2007 13:55:49 -0000 1.23 +++ progress.c 1 Aug 2007 12:43:33 -0000 @@ -104,9 +104,16 @@ stats.num_files); } else strlcpy(eol, "\r", sizeof eol); - rprintf(FCLIENT, "%12s %3d%% %7.2f%s %4d:%02d:%02d%s", - human_num(ofs), pct, rate, units, - remain_h, remain_m, remain_s, eol); + if (remain < 0) + /* file size increased on sending side during xfer */ + /* so prevent neg...
2016 Aug 20
7
[RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3)
Hello, This is another iteration of the virtio-pstore work. In this patchset I addressed most of feedbacks from previous version and drooped the support for PSTORE_TYPE_CONSOLE for simplicity. It'll be added once the basic implementation * changes in v3) - use QIOChannel API (Stefan, Daniel) - add bound check for malcious guests (Daniel) - drop support PSTORE_TYPE_CONSOLE for now
2016 Aug 20
7
[RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3)
Hello, This is another iteration of the virtio-pstore work. In this patchset I addressed most of feedbacks from previous version and drooped the support for PSTORE_TYPE_CONSOLE for simplicity. It'll be added once the basic implementation * changes in v3) - use QIOChannel API (Stefan, Daniel) - add bound check for malcious guests (Daniel) - drop support PSTORE_TYPE_CONSOLE for now
2018 Jan 25
2
geo-replication command rsync returned with 3
...p log on master : > > [2018-01-24 15:50:35.347959] I [master(/brick1/mvol1):1385:crawl] > _GMaster: slave's time??? stime=(1516808792, 0) > [2018-01-24 15:50:35.604094] I > [master(/brick1/mvol1):1863:syncjob] Syncer: Sync Time Taken??? > duration=0.0294??? num_files=1 job=2??? return_code=3 > [2018-01-24 15:50:35.605490] E > [resource(/brick1/mvol1):210:errlog] Popen: command returned > error??? cmd=rsync -aR0 --inplace --files-from=- --super --stats > --numeric-ids --no-implied-dirs --existing --xattrs --acls > --ignore-mi...
2018 Jan 29
0
geo-replication command rsync returned with 3
...t; >> [2018-01-24 15:50:35.347959] I [master(/brick1/mvol1):1385:crawl] >> _GMaster: slave's time??? stime=(1516808792, 0) >> [2018-01-24 15:50:35.604094] I >> [master(/brick1/mvol1):1863:syncjob] Syncer: Sync Time Taken??? >> duration=0.0294??? num_files=1 job=2??? return_code=3 >> [2018-01-24 15:50:35.605490] E >> [resource(/brick1/mvol1):210:errlog] Popen: command returned >> error??? cmd=rsync -aR0 --inplace --files-from=- --super --stats >> --numeric-ids --no-implied-dirs --existing --xattrs --acls >...
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...io_pstore_do_read(VirtIOPstore *s, VirtQueueElement *elem) > +{ > + char *filename = NULL; > + int fd, idx; > + struct stat stbuf; > + struct pstore_read_arg *rarg = NULL; > + Error *err = NULL; > + int ret = -1; > + > + if (s->file_idx >= s->num_file) { > + return 0; > + } > + > + rarg = g_malloc(sizeof(*rarg)); > + if (rarg == NULL) { > + return -1; > + } > + > + idx = s->file_idx++; > + filename = virtio_pstore_from_filename(s, s->files[idx]->d_name, > +...
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...io_pstore_do_read(VirtIOPstore *s, VirtQueueElement *elem) > +{ > + char *filename = NULL; > + int fd, idx; > + struct stat stbuf; > + struct pstore_read_arg *rarg = NULL; > + Error *err = NULL; > + int ret = -1; > + > + if (s->file_idx >= s->num_file) { > + return 0; > + } > + > + rarg = g_malloc(sizeof(*rarg)); > + if (rarg == NULL) { > + return -1; > + } > + > + idx = s->file_idx++; > + filename = virtio_pstore_from_filename(s, s->files[idx]->d_name, > +...
2013 May 20
1
[PATCH] xfstests: btrfs 308: regression test for btrfs send
I''m not sure how the numbering is supposed to work now that we''ve split everything out so I''m just going with the next number in the directory. This is a regression test for btrfs send, we had a problem where we''d try to send a file that had been deleted in the source snapshot. This is just to make sure we don''t have the same problem in the future.