samba-bugs at samba.org
2015-Apr-01  20:32 UTC
[Bug 11189] New: dry run gives incomplete log
https://bugzilla.samba.org/show_bug.cgi?id=11189
            Bug ID: 11189
           Summary: dry run gives incomplete log
           Product: rsync
           Version: 3.0.9
          Hardware: x64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: wayned at samba.org
          Reporter: riquet at petitbonum.be
        QA Contact: rsync-qa at samba.org
Created attachment 10930
  --> https://bugzilla.samba.org/attachment.cgi?id=10930&action=edit
a simple script and the files it produces
The log file created during a dry run doesn't list all the operations that
an
actual run will perform.
Dry run logs this :
2015/04/01 22:12:53 [3944] building file list
2015/04/01 22:12:53 [3944] cd+++++++++ subDirCreate/
2015/04/01 22:12:53 [3944] sent 200 bytes  received 26 bytes  452.00 bytes/sec
2015/04/01 22:12:53 [3944] total size is 95  speedup is 0.42 (DRY RUN)
While actual run does and logs this :
2015/04/01 22:12:53 [3947] building file list
2015/04/01 22:12:53 [3947] *deleting   subDirDelete/needsdelete2.txt
2015/04/01 22:12:53 [3947] *deleting   subDirDelete/
2015/04/01 22:12:53 [3947] cd+++++++++ subDirCreate/
2015/04/01 22:12:53 [3947] >f+++++++++ subDirCreate/needscreate2.txt
2015/04/01 22:12:53 [3947] *deleting   subDirUpdate/needsdelete1.txt
2015/04/01 22:12:53 [3947] >f+++++++++ subDirUpdate/needscreate1.txt
2015/04/01 22:12:53 [3947] >f.s....... subDirUpdate/needsupdate.txt
2015/04/01 22:12:53 [3947] sent 387 bytes  received 74 bytes  922.00 bytes/sec
2015/04/01 22:12:53 [3947] total size is 95  speedup is 0.21
The example is attached.
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=11189 --- Comment #1 from Kevin Korb <rsync at sanitarium.net> --- I believe the bug here is that it logged any changes during the dry run. The logfile is supposed to be a log of what it actually did not what it would do. The log-file setting was really made for rsyncd and there is no reason for it to log what it only pretended to do only what it actually did. BTW, the logfile will contain an entry for metadata changes like permissions too. -- You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=11189 --- Comment #2 from Jerome <riquet at petitbonum.be> --- Ok, so to check the impact of --delete, one has to use --verbose and --dry-run, and look at stdout -- You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=11189
Jerome <riquet at petitbonum.be> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Maybe Matching Threads
- Patch to fix dist rule in ocfs-tools with another minor fix
- which model suits for these kind of data
- Dovecot 2.0beta4 HG 11189: dovecot-uidvalidity warning with mdbox mailboxes
- IPv6 transport results in ICE with only IPv6 candidates
- strange error: modify/delete: sambaPwdCanChange: no such value (Success)