faubackup2/src/common system_calls.cpp,1.9,1.10 system_calls.hpp,1.4,1.5
Erik Merkel <[email protected]> Thu, 23 Jun 2005 14:55:40 +0000
| Newsgroups | gmane.comp.sysutils.backup.faubackup.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/faubackup/faubackup2/src/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10337/src/common
Modified Files:
system_calls.cpp system_calls.hpp
Log Message:
small speed improvments
Index: system_calls.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/system_calls.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** system_calls.cpp 23 Jun 2005 13:14:48 -0000 1.9
--- system_calls.cpp 23 Jun 2005 14:55:37 -0000 1.10
***************
*** 53,57 ****
}
! void getRegFileLink(string name, string link_dest, struct stat st)
{
int ret;
--- 53,57 ----
}
! void getRegFileLink(string name, string link_dest, struct stat &st)
{
int ret;
***************
*** 87,95 ****
void makeHardLink(string source, string dest)
{
!
! getRegFileLink(dest, source, getStat(source.c_str()));
}
! void getDir(string name, struct stat st)
{
int ret;
--- 87,95 ----
void makeHardLink(string source, string dest)
{
! struct stat st = getStat(source.c_str());
! getRegFileLink(dest, source, st);
}
! void getDir(string name, struct stat &st)
{
int ret;
***************
*** 111,115 ****
}
! void getChr(string name, struct stat st)
{
--- 111,115 ----
}
! void getChr(string name, struct stat &st)
{
***************
*** 134,138 ****
! void getBlk(string name, struct stat st)
{
int ret;
--- 134,138 ----
! void getBlk(string name, struct stat &st)
{
int ret;
***************
*** 153,157 ****
setPermissions( name, st, SET_ALL );
}
! void getFifo(string name, struct stat st)
{
//should not be backuped
--- 153,157 ----
setPermissions( name, st, SET_ALL );
}
! void getFifo(string name, struct stat &st)
{
//should not be backuped
***************
*** 160,164 ****
! void getSlnk(string name, string link_dest, struct stat st)
{
--- 160,164 ----
! void getSlnk(string name, string link_dest, struct stat &st)
{
***************
*** 183,187 ****
}
! void getSock(string name, struct stat st)
{
//should not be backuped
--- 183,187 ----
}
! void getSock(string name, struct stat &st)
{
//should not be backuped
***************
*** 189,193 ****
! void setPermissions(string path, struct stat st, int flags)
{
output.information(F_("setPermissions: %s") % path, DEBUG_OUTPUT);
--- 189,193 ----
! void setPermissions(string path, struct stat &st, int flags)
{
output.information(F_("setPermissions: %s") % path, DEBUG_OUTPUT);
Index: system_calls.hpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/system_calls.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** system_calls.hpp 14 Jun 2005 20:45:35 -0000 1.4
--- system_calls.hpp 23 Jun 2005 14:55:37 -0000 1.5
***************
*** 23,53 ****
/*! Make a hardlink with "name" against a existing file, which name is
received as a string */
! void getRegFileLink(string name, string link_dest, struct stat st);
void makeHardLink(string source, string dest);
/*! Create a directory with "name" and apply the attributes from st */
! void getDir(string name, struct stat st);
/*! Create a character device node with "name" and apply the attributes
from st */
! void getChr(string name, struct stat st);
/*! Create a block device node with "name" and apply the attributes
from st */
! void getBlk(string name, struct stat st);
/*! Fifos should not be backuped */
! void getFifo(string name, struct stat st);
/*! Create a symbolic link with "name" and apply the attributes
from st. The destination would be received as a string */
! void getSlnk(string name, string link_dest, struct stat st);
/*! Sockets should not be backuped */
! void getSock(string name, struct stat st);
/*! apply the attributes "flags" from "st" to file "name" */
! void setPermissions(string name, struct stat st, int flags);
/*! i dont know if i will need this */
--- 23,53 ----
/*! Make a hardlink with "name" against a existing file, which name is
received as a string */
! void getRegFileLink(string name, string link_dest, struct stat &st);
void makeHardLink(string source, string dest);
/*! Create a directory with "name" and apply the attributes from st */
! void getDir(string name, struct stat &st);
/*! Create a character device node with "name" and apply the attributes
from st */
! void getChr(string name, struct stat &st);
/*! Create a block device node with "name" and apply the attributes
from st */
! void getBlk(string name, struct stat &st);
/*! Fifos should not be backuped */
! void getFifo(string name, struct stat &st);
/*! Create a symbolic link with "name" and apply the attributes
from st. The destination would be received as a string */
! void getSlnk(string name, string link_dest, struct stat &st);
/*! Sockets should not be backuped */
! void getSock(string name, struct stat &st);
/*! apply the attributes "flags" from "st" to file "name" */
! void setPermissions(string name, struct stat &st, int flags);
/*! i dont know if i will need this */
-------------------------------------------------------
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