faubackup2/tests fileinfo_tester.cpp,1.1.1.1,1.2

Erik Merkel <[email protected]> Sun, 03 Jul 2005 18:37:18 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7948/tests

Modified Files:
	fileinfo_tester.cpp 
Log Message:
fixed hardlink bug: if a new created hardlink is transfered before the 
existing (unchanged) file is transfered, the hardlink is treated as a new
file and the existing (unchanged) file is created as a link to this new
file. These files need space on the disc. They should be both linked to an 
old backupset if the existing file is unchanged.

hardlink checking moved from InformationSender to FileSender

hardlinks are now transfered at the end of the backup process

directorys are now transferd after the sending of the hardlinks because
creating of hardlinks will change the modification time of directorys


Index: fileinfo_tester.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/tests/fileinfo_tester.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** fileinfo_tester.cpp	2 Jun 2005 09:31:13 -0000	1.1.1.1
--- fileinfo_tester.cpp	3 Jul 2005 18:37:15 -0000	1.2
***************
*** 30,34 ****
  
  	Fileinfo info("teststring", "/home/sa/faubackup.conf");
- 	info.setNameForLink("bla");
  	info.setBackupMode(KeepExisting);
  
--- 30,33 ----
***************
*** 36,40 ****
  	cout << "EntryMode: " << info.getFileType() << endl;
  	cout << "BackupMode " << info.getBackupMode() << endl;
- 	cout << "Linkname: " <<  info.getNameForLink() << endl;
  	cout << "Zeit: " << info.getChangeTime() << endl;
  	cout << "Size: " << info.getFileSize() << endl;
--- 35,38 ----
***************
*** 49,53 ****
  	cout << "EntryMode: " << neu.getFileType() << endl;
  	cout << "BackupMode " << neu.getBackupMode() << endl;
- 	cout << "Linkname: " <<  neu.getNameForLink() << endl;
  	cout << "Zeit: " << neu.getChangeTime() << endl;
  	cout << "Size: " << neu.getFileSize() << endl;
--- 47,50 ----



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click