[vhffs-dev] [1378] fixed a bug when a file is moved this way: link(a, b); unlink(a);, we don't know about that, so let' s consider create events like any in_close_write event

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


Revision: 1378
Author:   gradator
Date:     2009-03-15 22:22:17 +0100 (Sun, 15 Mar 2009)

Log Message:
-----------
fixed a bug when a file is moved this way: link(a, b); unlink(a);, we don't know about that, so let's consider create events like any in_close_write event

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


Modified: trunk/vhffs-fssync/vhffsfssync_master.c
===================================================================
--- trunk/vhffs-fssync/vhffsfssync_master.c	2009-03-15 15:27:33 UTC (rev 1377)
+++ trunk/vhffs-fssync/vhffsfssync_master.c	2009-03-15 21:22:17 UTC (rev 1378)
@@ -1392,7 +1392,7 @@
 #if DEBUG_INOTIFY
 		printf("IN_CREATE\n");
 #endif
-		vhffsfssync_manage_event_create(inotifyfd, pathname, FALSE);
+		vhffsfssync_manage_event_create(inotifyfd, pathname, TRUE);
 
 	// deleted file, directory or symlink
 	} else if( event->mask & IN_DELETE )  {


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