[vhffs-dev] [1582] not needed since file cancelling destroy all references to file structure

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1582
Author:   gradator
Date:     2010-03-29 00:38:31 +0200 (Mon, 29 Mar 2010)
Log Message:
-----------
not needed since file cancelling destroy all references to file structure

Modified Paths:
--------------
    trunk/vhffs-fssync/vhffsfssync_master.c

Modified: trunk/vhffs-fssync/vhffsfssync_master.c
===================================================================
--- trunk/vhffs-fssync/vhffsfssync_master.c	2010-03-28 22:23:45 UTC (rev 1581)
+++ trunk/vhffs-fssync/vhffsfssync_master.c	2010-03-28 22:38:31 UTC (rev 1582)
@@ -481,13 +481,6 @@
 	file = g_hash_table_lookup(vhffsfssync_net_files, pathname);
 	if(file) {
 		file->ref++;
-		// update size of file (it might have changed)
-		if( fstat(fileno(file->file_stream), &st) < 0 )  {
-			fprintf(stderr, "fstat() failed on %s: %s\n", pathname, strerror(errno));
-		}
-		else {
-			file->file_size = st.st_size;
-		}
 		return file;
 	}
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/