Bug 2472 - A different kind of the 'mkdir "*" failed: File exists' bug.
A different kind of the 'mkdir "*" failed: File exists' bug.
Status: CLOSED FIXED
Product: rsync
Classification: Unclassified
Component: core
2.6.3
x86 Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-16 16:09 UTC by Jobst Schmalenbach
Modified: 2005-04-01 11:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jobst Schmalenbach 2005-03-16 16:09:20 UTC
OS: fedora core 2, most updates but due to device driver I run 2.6.5-1.358
rsync: 2.6.3
all my machines run same OS/packages, they are basically clones of each other.

Bug:

In version prior 2.6.2 there was a bug that showed an error:

   mkdir "/foo/bar/blah" failed: File exists

This was fixed, thank you.
However, using 2.6.3 this message is still occuring when a SOURCE DIRECTORY
tree was deleted as shown in the example below.

Explanation:

I have a number of large USB based hardisks I use to store incremental backups.
This harddisks are attached to the most central machine which uses rsync
to connect to other machines as well as "to itself" (I use tapes as well).

Anyway, I deleted some users on one machine including their home directories 
as I had moved them to another machine.
Running 

/usr/bin/rsync -rlptgoD --force --ignore-errors --delete --delete-excluded
--exclude .snapshot/ --exclude "*~"   --backup
--backup-dir=/mnt/usb/ronnie/incremental_March.0/home ronnie:/home/
/mnt/usb/ronnie/current/home

will yield following errors:

rsync: mkdir "/mnt/usb/ronnie/incremental_March.0/home/rsa/tmp" failed: File
exists (17)
rsync: mkdir
"/mnt/usb/ronnie/incremental_March.0/home/rsa/src/fvwm-themes-0.6.2/themes/redmond98/modules/taskbarpos"
failed: File exists (17)
rsync: mkdir
"/mnt/usb/ronnie/incremental_March.0/home/rsa/src/fvwm-themes-0.6.2/themes/redmond98/modules/taskbar"
failed: File exists (17)
rsync: mkdir
"/mnt/usb/ronnie/incremental_March.0/home/rsa/src/fvwm-themes-0.6.2/themes/redmond98/modules/pager"
failed: File exists (17)
rsync: mkdir
"/mnt/usb/ronnie/incremental_March.0/home/rsa/src/fvwm-themes-0.6.2/themes/redmond98/modules/buttonbar"
failed: File exists (17

etc .... which can ONLY be the case when the SOURCE directory is deleted and
hence they need to be moved to the incremental directory.


jobst
Comment 1 Wayne Davison 2005-03-16 16:27:12 UTC
This has been fixed in CVS for a long time (and is fixed in the 2.6.4
pre-releases too -- please test them).  See the final comment in bug #1412 for
the patch that was applied to 2.6.3.