faubackup2/src/filesystem r_inodes.cpp,1.5,1.6 r_inodes.hpp,1.2,1.3

Erik Merkel <[email protected]> Wed, 22 Jun 2005 23:09:07 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/src/filesystem
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13353/src/filesystem

Modified Files:
	r_inodes.cpp r_inodes.hpp 
Log Message:
using references for faster calculation


Index: r_inodes.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/filesystem/r_inodes.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** r_inodes.cpp	14 Jun 2005 22:10:31 -0000	1.5
--- r_inodes.cpp	22 Jun 2005 23:09:05 -0000	1.6
***************
*** 44,48 ****
  }
  
! char *getRawInode(struct stat st, int &size)
  {
  	//	 struct stat
--- 44,48 ----
  }
  
! char *getRawInode(struct stat &st, int &size)
  {
  	//	 struct stat
***************
*** 191,195 ****
  }
  
! enum FileType whatType(struct stat st)
  {
  
--- 191,195 ----
  }
  
! enum FileType whatType(struct stat &st)
  {
  
***************
*** 233,237 ****
  }
  
! bool isHardlinked(struct stat st)
  {
  	if(st.st_nlink > 1)
--- 233,237 ----
  }
  
! bool isHardlinked(struct stat &st)
  {
  	if(st.st_nlink > 1)

Index: r_inodes.hpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/filesystem/r_inodes.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** r_inodes.hpp	14 Jun 2005 22:10:31 -0000	1.2
--- r_inodes.hpp	22 Jun 2005 23:09:05 -0000	1.3
***************
*** 12,16 ****
      order to be transfered over network. Size returns the length of the
      string */
! char *getRawInode(struct stat st, int &size);
  
  /*! returns an struct stat that is made from raw data produced by
--- 12,16 ----
      order to be transfered over network. Size returns the length of the
      string */
! char *getRawInode(struct stat &st, int &size);
  
  /*! returns an struct stat that is made from raw data produced by
***************
*** 22,28 ****
  bool existFile(string filename);
  
! bool isHardlinked(struct stat st);
  
! enum FileType whatType(struct stat st);
  
  }
--- 22,28 ----
  bool existFile(string filename);
  
! bool isHardlinked(struct stat &st);
  
! enum FileType whatType(struct stat &st);
  
  }



-------------------------------------------------------
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