search for: finfo

Displaying 20 results from an estimated 195 matches for "finfo".

Did you mean: info
2002 Dec 20
1
smbclient and large file support
...125,11 @@ int blocksize=20; int tarhandle; -static void writetarheader(int f, char *aname, int size, time_t mtime, +static void writetarheader(int f, char *aname, SMB_BIG_UINT size, time_t mtime, char *amode, unsigned char ftype); static void do_atar(char *rname,char *lname,file_info *finfo1); static void do_tar(file_info *finfo); -static void oct_it(long value, int ndgs, char *p); +static void oct_it(SMB_BIG_UINT value, int ndgs, char *p); static void fixtarname(char *tptr, char *fp, int l); static int dotarbuf(int f, char *b, int n); static void dozerobuf(int f, int n); @@ -168,...
2007 Feb 07
3
Redirect --stats to STDERR.
...ain.c 2007-02-06 19:28:08.000000000 +0100/ /@@ -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",...
2018 Apr 20
2
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...+static LIST_HEAD(failover_list); > +static DEFINE_SPINLOCK(failover_lock); > + > +static int failover_slave_pre_register(struct net_device *slave_dev, > + struct net_device *failover_dev, > + struct failover_ops *failover_ops) > +{ > + struct failover_info *finfo; > + bool standby; > + > + if (failover_ops) { > + if (!failover_ops->slave_pre_register) > + return -EINVAL; > + > + return failover_ops->slave_pre_register(slave_dev, > + failover_dev); > + } > + > + finfo = netdev_priv(failover_dev); > + standb...
2018 Apr 20
2
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...+static LIST_HEAD(failover_list); > +static DEFINE_SPINLOCK(failover_lock); > + > +static int failover_slave_pre_register(struct net_device *slave_dev, > + struct net_device *failover_dev, > + struct failover_ops *failover_ops) > +{ > + struct failover_info *finfo; > + bool standby; > + > + if (failover_ops) { > + if (!failover_ops->slave_pre_register) > + return -EINVAL; > + > + return failover_ops->slave_pre_register(slave_dev, > + failover_dev); > + } > + > + finfo = netdev_priv(failover_dev); > + standb...
2018 Apr 20
0
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...+#include <net/failover.h> + +static LIST_HEAD(failover_list); +static DEFINE_SPINLOCK(failover_lock); + +static int failover_slave_pre_register(struct net_device *slave_dev, + struct net_device *failover_dev, + struct failover_ops *failover_ops) +{ + struct failover_info *finfo; + bool standby; + + if (failover_ops) { + if (!failover_ops->slave_pre_register) + return -EINVAL; + + return failover_ops->slave_pre_register(slave_dev, + failover_dev); + } + + finfo = netdev_priv(failover_dev); + standby = (slave_dev->dev.parent == failover_dev->dev.parent...
2018 Apr 20
0
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...ist); >> +static DEFINE_SPINLOCK(failover_lock); >> + >> +static int failover_slave_pre_register(struct net_device *slave_dev, >> + struct net_device *failover_dev, >> + struct failover_ops *failover_ops) >> +{ >> + struct failover_info *finfo; >> + bool standby; >> + >> + if (failover_ops) { >> + if (!failover_ops->slave_pre_register) >> + return -EINVAL; >> + >> + return failover_ops->slave_pre_register(slave_dev, >> + failover_dev); >> + } >> + >> + finf...
2004 Jan 27
1
Differentiating debug messages from both sides
...#include "rsync.h" extern int verbose; +extern char *who_am_i; struct exclude_struct **exclude_list; struct exclude_struct **local_exclude_list; @@ -102,7 +103,7 @@ void free_exclude_list(struct exclude_st struct exclude_struct **list = *listp; if (verbose > 2) - rprintf(FINFO,"clearing exclude list\n"); + rprintf(FINFO, "[%c] clearing exclude list\n", *who_am_i); if (!list) return; @@ -203,12 +204,14 @@ static void report_exclude_result(char c * then it is stripped out by make_exclude. So as a special * case we add it back in here. */...
2018 Apr 20
13
[PATCH net-next v7 0/4] Enable virtio_net to act as a standby for a passthru device
The main motivation for this patch is to enable cloud service providers to provide an accelerated datapath to virtio-net enabled VMs in a transparent manner with no/minimal guest userspace changes. This also enables hypervisor controlled live migration to be supported with VMs that have direct attached SR-IOV VF devices. Patch 1 introduces a new feature bit VIRTIO_NET_F_STANDBY that can be used
1998 Apr 12
0
Long file name support for smbclient
...:45:45 1998 +++ clitar.c Sat Apr 11 18:08:45 1998 @@ -155,6 +155,7 @@ long chk, fchk; int i; char *jp; + static char *long_file_name; /* * read in a "standard" tar format header - we're not that interested @@ -184,23 +185,43 @@ return -1; } - strcpy(finfo->name, prefix); - - /* use l + 1 to do the null too; do prefix - prefcnt to zap leading slash */ - unfixtarname(finfo->name + strlen(prefix), hb->dbuf.name, - strlen(hb->dbuf.name) + 1); - /* can't handle links at present */ if (hb->dbuf.linkflag != '0') { -...
2002 Aug 05
5
[patch] read-devices
...ead_devices) + csum_length = MIN(8,SUM_LENGTH); + /* Because streams must succeed on first attempt. This is a protocol change! + It would be better to allow checksum lengths to differ between files. #ET# XXX */ + else + csum_length = 2; + } else + csum_length = SUM_LENGTH; + rprintf(FINFO, "#ET# csum_length=%d\n", csum_length); } @@ -171,9 +176,9 @@ } void sum_end(char *sum) { - if (sumresidue) { + if (sumresidue) { /* remove the test to address http://lists.samba.org/pipermail/rsync/2002-August/008011.html */ mdfour_update(&md, (uchar *)sumrbuf, sumresi...
2001 Nov 29
1
patch from faith@alephnull to add rate indicator to --progress
...int_progress(OFF_T ofs, OFF_T size, struct timeval *now) +{ + int pct = (int)((100.0*ofs)/size); + unsigned long diff = msdiff(&start_time, now); + double rate = diff ? ((ofs-start_ofs) / diff) * 1000.0/1024.0 : 0; + + if (ofs == size) pct = 100; + + rprintf(FINFO,"%12.0f %3d%%", (double)ofs, pct); + + if (rate > 1024*1024) rprintf(FINFO, " %7.2fGB/s", rate/1024.0/1024.0); + else if (rate > 1024) rprintf(FINFO, " %7.2fMB/s", rate/1024.0); + else rprintf(FINFO, " %7.2fKB/s", rate); + +...
2005 May 30
2
smbclient hangs
Hello, I'm having problems with using smbclient on a win2k share. The server runs samba 3.0.14a on Solaris 9. I want to tar the whole directory of a share. Into a file on the server What I found out so far is, that it works until a maximum file count of 35. It is not size dependant but if the file count in that share exceeds more than 35 the smbclient hangs for ever and with the time is
2002 Mar 13
2
[PATCH] fix install-strip target in Makefile
...an5 install-strip: $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install --- flist.c.orig Sun Feb 3 07:08:14 2002 +++ flist.c Sun Feb 3 07:00:22 2002 @@ -89,8 +89,8 @@ { if (verbose && recurse && !am_server) { /* This overwrites the progress line, if any. */ - rprintf(FINFO, RSYNC_NAME ": %d files to consider.\n", - flist->count); + rprintf(FINFO, RSYNC_NAME ": %d file%sto consider.\n", + flist->count, flist->count==1?" ":"s "); } } -- | G r e g L o u i s | gpg public key: | | http://www.b...
2018 Apr 20
2
[PATCH v7 net-next 2/4] net: Introduce generic failover module
On Fri, Apr 20, 2018 at 08:21:00AM -0700, Samudrala, Sridhar wrote: > > > + finfo = netdev_priv(failover_dev); > > > + > > > + primary_dev = rtnl_dereference(finfo->primary_dev); > > > + standby_dev = rtnl_dereference(finfo->standby_dev); > > > + > > > + if (slave_dev != primary_dev && slave_dev != standby_dev) > >...
1999 Oct 05
0
smbclient tar restore problem (linkflag) from tape-drive
...m appears to be due to the linkflag: /* can't handle some links at present */ if ((hb->dbuf.linkflag != '0') && (hb -> dbuf.linkflag != '5')) { if (hb->dbuf.linkflag == 0) { DEBUG(6, ("Warning: NULL link flag (gnu tar archive ?) %s\n", finfo->name)); ... In the following code, since linkflag is NULL, it switches to the "default" case, which is to skip the file. linkflag = ((union hblock *)buffer_p) -> dbuf.linkflag; switch (linkflag) { case '0': /* Should use symbolic names--FIXME */ /*...
2003 Apr 08
2
[Patch] Require extra --stats to emit heap statistics
...+82,7 @@ extern int remote_version; int send_stats; - if (do_stats) { + if (do_stats > 1) { /* These come out from every process */ show_malloc_stats(); show_flist_stats(); @@ -139,12 +139,12 @@ rprintf(FINFO,"File list size: %d\n", stats.flist_size); rprintf(FINFO,"Total bytes written: %.0f\n", (double)stats.total_written); - rprintf(FINFO,"Total bytes read: %.0f\n\n", + rprintf(FINFO,"Total bytes re...
2004 Sep 03
1
more filelist --stats
...me(NULL) - stats.flist_xfertime; + if (flist->hlink_pool) { pool_destroy(flist->hlink_pool); flist->hlink_pool = NULL; --- rsync-2.6.3pre1/main.c 2004-08-05 14:17:44.000000000 -0400 +++ rsync-2.6.3pre1+tykhe/main.c 2004-09-03 10:18:46.869429000 -0400 @@ -178,6 +178,10 @@ rprintf(FINFO,"Matched data: %.0f bytes\n", (double)stats.matched_data); rprintf(FINFO,"File list size: %d\n", stats.flist_size); + rprintf(FINFO,"File list generation: %lu seconds\n", + stats.flist_buildtime); + rprintf(FINFO,"File list transfer...
2004 Jan 06
2
[patch] making rsync less verbose
...@@ -76,15 +76,12 @@ static int show_filelist_p(void) { - return verbose && (recurse || files_from) && !am_server; + return do_progress && verbose && (recurse || files_from) && !am_server; } static void start_filelist_progress(char *kind) { - rprintf(FINFO, "%s ... ", kind); - if ((verbose > 1) || do_progress) - rprintf(FINFO, "\n"); - rflush(FINFO); + rprintf(FINFO, "%s ... \n", kind); } @@ -96,20 +93,16 @@ static void maybe_emit_filelist_progress(const struct file_list *flist) { - if (do_progress &&amp...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
2004 Apr 10
0
patches for copying atimes
...t.st_mode); } Index: batch.c =================================================================== RCS file: /cvsroot/rsync/batch.c,v retrieving revision 1.31 diff -u -w -r1.31 batch.c --- batch.c 6 Mar 2004 07:45:52 -0000 1.31 +++ batch.c 10 Apr 2004 23:28:35 -0000 @@ -342,6 +342,8 @@ rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags); rprintf(FINFO, "flist->modtime=%#lx\n", (long unsigned) fptr[i]->modtime); + rprintf(FINFO, "flist->atime=%#lx\n", + (long unsigned) fptr[i]->atime); rprintf(FINFO, "flist->length=%.0f\n&quo...