[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] "File <name> was modified while being copied"
From: |
Peter Smith |
Subject: |
[Bug-cpio] "File <name> was modified while being copied" |
Date: |
Wed, 2 Jun 2004 12:31:26 +1000 |
Hello,
This may not be the right place for this question, but I am not having much
luck elsewhere ...
I have a backup machine which mounts all the public shares on our network as
smbfs mounts. These shares are hosted by machines running, variously,
RedHat 7.3, Windows NT4 and Windows 2000. The backup machine was originally
running RedHat 7.3, but has been changed to SuSE 9. As part of the backup
process, cpio copies files from the shares to local disk.
When I use GNU cpio version 2.5 under SuSE 9.0 to copy a Windows file which
has uppercase letters in the path or filename, I get the warning:
"File <name> was modified while being copied".
This is a bit of a problem as it gives me about 3000 unnecessary lines in
the log file every night.
A Google search on the error text returns just one entry the cpio 2.5
source code that creates the message. Now, that's real open source, but I am
not competent to go there :(
This did not happen when using the same script with GNU cpio version 2.4.2
under RedHat 7.3.
Is this a cpio feature, a SuSE feature or a Samba feature? How can I find
how to turn it off?
More details:
On the SuSE machine:
backserv:/home/pas # uname -a
Linux backserv 2.4.21-192-default #1 Wed Feb 18 19:26:28 UTC 2004 i686 i686
i386 GNU/Linux
backserv:/home/pas # cpio --version
GNU cpio version 2.5
backserv:/home/pas # smbd -V
Version 2.2.8a-SuSE
On the RedHat machine:
address@hidden root]# uname -a
Linux machserv 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 EST 2003 i686
unknown
address@hidden root]# cpio --version
GNU cpio version 2.4.2
address@hidden root]# smbd -V
Version 2.2.7-security-rollup-fix
The script I am using is:
# $1 is the destination partition (back0x)
# $2 is the date (20021220)
# $3 is the date directory (2002_12_20)
# $4 is the source share (/clients/eco_g)
touch -t $20000 /usr/local/Backup/IncBack/TimeFlag
find $4 -depth -noleaf -type d -print | cpio -p --make-directories /$1/$3
find $4 -depth -noleaf -type f -newer
/usr/local/Backup/IncBack/TimeFlag -print | cpio -p /$1/$3
echo /$1/$3 `find $4 -depth -noleaf -type f -newer
/usr/local/Backup/IncBack/TimeFlag -print | wc -l` files $4 >>
/usr/local/Backup/IncBack/inclog
Any help would be appreciated.
Regards,
Peter
- [Bug-cpio] "File <name> was modified while being copied",
Peter Smith <=