Displaying 20 results from an estimated 92 matches for "dry_run".
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...on-existing, a daemon exclude, or a mkdir failure. On a --dry-run,
the generator can also note the missingness of a directory while still scanning
its contents. These two scenarios were conflated using a single set of
missing_below/missing_dir variables in combination with transient increments in
dry_run; this caused at least three bugs.
Now recv_generator has separate variables for the two scenarios, called skip_dir
and dry_missing_dir, respectively. For simplicity, we take the F_DEPTH instead
of having separate *_below variables. We mark both kinds of missing dirs with
FLAG_MISSING_DIR. (dry_...
2005 Feb 25
1
smbclient's tar to /dev/null behaves unexpectedly
...ent to create a tar file at /dev/null, it skips most of
the steps. This behavior
If I type something like this:
smbclient '\\puffin\c$' -U 'amanda%password' -E -d1 -Tca /dev/null '/Kathy/DATA/2120 WNmod/*'
I receive the following message:
Output is /dev/null, assuming dry_run
source/client/clitar.c:
if (tar_type=='c' && (dry_run || strcmp(argv[Optind], "/dev/null")==0)) {
if (!dry_run) {
DEBUG(0,("Output is /dev/null, assuming dry_run\n"));
dry_run = True;
}
This is unexpected behavior. If a person wants to use a...
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...c-0.7.5_with_colour_patch/lib/spec/runner/formatter/
base_text_formatter.rb 2006-12-21 01:47:16.000000000 -0800
@@ -5,10 +5,11 @@ module Spec
# non-text based ones too - just ignore the +output+ constructor
# argument.
class BaseTextFormatter
- def initialize(output, dry_run=false, colour=false)
+ def initialize(output, dry_run=false, colour=false,
force_colour=false)
@output = output
@dry_run = dry_run
- @colour = colour
+ @colour = colour || force_colour
+ @force_colour = force_colour
begin ; req...
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...onsoledev] /real-root /sbin/init [args]\n",
+ "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n",
program);
exit(1);
}
@@ -64,6 +65,7 @@ int main(int argc, char *argv[])
const char *init;
const char *error;
const char *drop_caps = NULL;
+ bool dry_run = false;
char **initargs;
/* Variables... */
@@ -72,11 +74,13 @@ int main(int argc, char *argv[])
/* Parse the command line */
program = argv[0];
- while ((o = getopt(argc, argv, "c:d:")) != -1) {
+ while ((o = getopt(argc, argv, "c:d:n")) != -1) {
if (o == 'c...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...ms_c.tpu AND prj_src:syscall.tpu on
6-JAN-2
002 23:12:41.17 OPENVMS_AXP */
/*
Copyright (C) Andrew Tridgell 1998
@@ -28,22 +29,24 @@
#define CHECK_RO if (read_only || list_only) {errno = EROFS; return -1;}
-int do_unlink(char *fname)
+int do_unlink(const char *fname)
{
if (dry_run) return 0;
CHECK_RO
return unlink(fname);
}
-int do_symlink(char *fname1, char *fname2)
+#if SUPPORT_LINKS
+int do_symlink(const char *fname1, const char *fname2)
{
if (dry_run) return 0;
CHECK_RO
return symlink(fname1, fname2);
}
+#endif
-#if HA...
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...consoledev] [-n] /real-root /sbin/init [args]\n",
++ "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n",
+ program);
+ exit(1);
+ }
+@@ -69,6 +72,7 @@ int main(int argc, char *argv[])
+ const char *error;
+ const char *drop_caps = NULL;
+ bool dry_run = false;
++ bool persist_initramfs = false;
+ char **initargs;
+
+ /* Variables... */
+@@ -77,13 +81,15 @@ int main(int argc, char *argv[])
+ /* Parse the command line */
+ program = argv[0];
+
+- while ((o = getopt(argc, argv, "c:d:n")) != -1) {
++ while ((o = getopt(argc, argv, &q...
2002 Apr 03
3
metadata in dryrun mode
...in dryrun mode.
I offered to make a patch and that offer still stands. I didn't have the
time for it until now and want to pick it up again. I had some ugly hack
back then but I want to redo it in a clean way.
I would like some input on my thoughts.
IMHO, it would be ideally if the check for dry_run would be pushed down as
far as possible. That would be in the syscall wrapper functions if I am
correct.
If that is not possible, then it is fine with me.
Please let me know and I will create the appropriate patch.
Mark
--
Mark Santcroos RIPE Network Coordination Centre
http://www.ripe.net/...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...aps] [-c consoledev] [-n] /real-root /sbin/init [args]\n",
+ "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n",
program);
exit(1);
}
@@ -69,6 +72,7 @@ int main(int argc, char *argv[])
const char *error;
const char *drop_caps = NULL;
bool dry_run = false;
+ bool persist_initramfs = false;
char **initargs;
/* Variables... */
@@ -77,13 +81,15 @@ int main(int argc, char *argv[])
/* Parse the command line */
program = argv[0];
- while ((o = getopt(argc, argv, "c:d:n")) != -1) {
+ while ((o = getopt(argc, argv, "c:d:pn...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...aps] [-c consoledev] [-n] /real-root /sbin/init [args]\n",
+ "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n",
program);
exit(1);
}
@@ -69,6 +72,7 @@ int main(int argc, char *argv[])
const char *error;
const char *drop_caps = NULL;
bool dry_run = false;
+ bool persist_initramfs = false;
char **initargs;
/* Variables... */
@@ -77,13 +81,15 @@ int main(int argc, char *argv[])
/* Parse the command line */
program = argv[0];
- while ((o = getopt(argc, argv, "c:d:n")) != -1) {
+ while ((o = getopt(argc, argv, "c:d:pn...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...onsoledev] /real-root /sbin/init [args]\n",
+ "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n",
program);
exit(1);
}
@@ -64,6 +68,7 @@ int main(int argc, char *argv[])
const char *init;
const char *error;
const char *drop_caps = NULL;
+ bool dry_run = false;
char **initargs;
/* Variables... */
@@ -72,11 +77,13 @@ int main(int argc, char *argv[])
/* Parse the command line */
program = argv[0];
- while ((o = getopt(argc, argv, "c:d:")) != -1) {
+ while ((o = getopt(argc, argv, "c:d:n")) != -1) {
if (o == 'c...
2002 Dec 20
1
smbclient and large file support
...info.ctime = finfo1 -> ctime;
+ finfo.name = finfo1 -> name;
}
else {
finfo.size = def_finfo.size;
@@ -652,13 +653,14 @@
finfo.mtime = def_finfo.mtime;
finfo.atime = def_finfo.atime;
finfo.ctime = def_finfo.ctime;
+ finfo.name = def_finfo.name;
}
if (dry_run)
{
- DEBUG(3,("skipping file %s of size %d bytes\n",
+ DEBUG(3,("skipping file %s of size %12.0f bytes\n",
finfo.name,
- (int)finfo.size));
+ (double)finfo.size));
shallitime=0;
ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...)!=0) {
rprintf(FERROR,"make_bak_dir chown %s : %s\n",fullpath,strerror(errno));
};
*** sender.c@@/main/original/1 Tue Apr 9 14:03:44 2002
--- sender.c Fri Apr 12 11:09:52 2002
***************
*** 26,33 ****
extern int io_error;
extern int dry_run;
extern int am_server;
-
/*
receive the checksums for a buffer
*/
--- 26,36 ----
extern int io_error;
extern int dry_run;
extern int am_server;
+ extern int preserve_atime;
/*
receive the checksums for a buffer
*/
***************
*** 184,189 ****
--- 197,204 ----...
2003 Mar 04
1
2.5.6 needs following fix on WinNTs
Hi,
Here is the problem (syscall.c, function do_open) on NT, Win2K, WinXP,
with stripped "/" for UNC path convention, detected in release 2.5.5,
2.5.6:
int do_open(char *pathname, int flags, mode_t mode)
{
if (flags != O_RDONLY) {
if (dry_run) return -1;
CHECK_RO
}
#ifdef O_BINARY
/* for Windows */
flags |= O_BINARY;
#endif
/* some systems can't handle a double / */
if (pathname[0] == '/' && pathname[1] == '/') pathname++;
return open(pathname, flags, mode);
}
I suggest the following fix, allowi...
2003 May 14
1
Bug with Large Files on AIX
...ion, so you
can't transfer files > 2GB to an AIX machine.
Here is a fix:
diff -c -r rsync-2.5.6.orig/syscall.c rsync-2.5.6/syscall.c
*** rsync-2.5.6.orig/syscall.c Sun Jan 26 21:09:02 2003
--- rsync-2.5.6/syscall.c Wed May 14 13:55:15 2003
***************
*** 151,157 ****
if (dry_run) return -1;
if (read_only) {errno = EROFS; return -1;}
! #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)
{
int fd = mkstemp(template);
if (fd == -1) return -1;
--- 151,157 ----
if (dry_run) return -1;
if (read_only)...
2013 Jan 24
2
rsync parameters errors
...le rsync
command the way I'm used to doing it. I just do a lot of setup and
checking before I get to it.
When I run it, it gets very unhappy with me. It's probably something
very simple.
I need to build the rsync command in a string so that some things can go
away - like if my variables DRY_RUN and DELETE are undefined, they
should be gone when the string is evaluated. Without this, DRY_RUN
turns into "" and rsync still sees it as the first (null) parameter and
gets totally lost. I brought this up in a previous thread here awhile ago.
The ls commands are only in the script to...
2004 Sep 15
0
[Bug 1764] New: dry-run does not show changes in owner / group, permission, or timestamp
...mod: b
wrote 54 bytes read 20 bytes 49.33 bytes/sec
total size is 0 speedup is 0.00
2. Patch
--- rsync-2.6.2/rsync.c Tue Mar 23 11:16:15 2004
+++ rsync-2.6.2-new/rsync.c Wed Sep 15 01:35:16 2004
@@ -129,7 +129,6 @@
STRUCT_STAT st2;
int change_uid, change_gid;
- if (dry_run) return 0;
if (!st) {
if (link_stat(fname,&st2) != 0) {
@@ -142,6 +141,10 @@
if (preserve_times && !S_ISLNK(st->st_mode) &&
cmp_modtime(st->st_mtime, file->modtime) != 0) {
+ if (dry_run) {
+...
2002 Apr 23
1
patch: timeout problem solved
...return s;
}
@@ -230,7 +200,6 @@
int fd;
STRUCT_STAT st;
struct map_struct *buf;
- struct sum_struct *s;
int statret;
struct file_struct *file = flist->files[i];
char *fnamecmp;
@@ -389,7 +358,7 @@
if (statret == -1) {
if (errno == ENOENT) {
write_int(f_out,i);
- if (!dry_run) send_sums(NULL,f_out);
+ if (!dry_run) send_null_sums(f_out);
} else {
if (verbose > 1)
rprintf(FERROR, RSYNC_NAME
@@ -406,7 +375,7 @@
/* now pretend the file didn't exist */
write_int(f_out,i);
- if (!dry_run) send_sums(NULL,f_out);
+ if (!dry_run) send_null_sum...
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of
klibc.
Ben.
Ben Hutchings (1):
[klibc] run-init: Add dry-run mode
Jay Vosburgh (1):
[klibc] ipconfig: Use separate sockets for DHCP from multiple
interfaces
Mathieu Trudel-Lapierre (1):
[klibc] ipconfig: Set broadcast when sending DHCPREQUEST and
DHCPDISCOVER
YunQiang Su (1):
[klibc] mips: setjmp.S: don't
2004 May 06
2
rsync-2.6.2: NFS clients confused after an rsync
We use rsync to update an nfs server. After an update, we noticed that
a large number of clients didn't see the updated data.
It took me a while to be able to reliably reproduce this problem, but it
happens on old and new versions of rysnc. It also happens across all
the platforms we use here (sun/linux/netapp).
This shows the problem: [Note my home directory is NFS mounted]
2005 Jan 05
1
rsync filename heuristics
...t(fnamecmpbuf,&st);
> - if (!S_ISREG(st.st_mode))
> - statret = -1;
> - if (statret == -1)
> - errno = saveerrno;
> - else
> - fnamecmp = fnamecmpbuf;
> - }
> -
> - if (statret == -1) {
> - if (errno == ENOENT) {
> - write_int(f_out,i);
> - if (!dry_run) send_sums(NULL,f_out);
> - } else {
> - if (verbose > 1)
> - rprintf(FERROR, RSYNC_NAME
> - ": recv_generator failed to open \"%s\": %s\n",
> - fname, strerror(errno));
> - }
> - return;
> - }
> -
> - if (!S_ISREG(st.st_mode)) {...