[vhffs-dev] [1637] IN_CLOSE_WRITE is useless, we can rely only on IN_MODIFY, divided by two files upload pressure

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


Revision: 1637
Author:   gradator
Date:     2010-10-30 00:54:03 +0200 (Sat, 30 Oct 2010)
Log Message:
-----------
IN_CLOSE_WRITE is useless, we can rely only on IN_MODIFY, divided by two files upload pressure

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

Modified: trunk/vhffs-fssync/vhffsfssync_master.c
===================================================================
--- trunk/vhffs-fssync/vhffsfssync_master.c	2010-10-27 17:41:49 UTC (rev 1636)
+++ trunk/vhffs-fssync/vhffsfssync_master.c	2010-10-29 22:54:03 UTC (rev 1637)
@@ -57,8 +57,9 @@
 /* -- inotify stuff -- */
 
 #define VHFFSFSSYNC_BUF_LEN 4096
-#define VHFFSFSSYNC_WATCH_MASK IN_ATTRIB|IN_CREATE|IN_DELETE|IN_CLOSE_WRITE|IN_MODIFY|IN_MOVED_FROM|IN_MOVED_TO|IN_DONT_FOLLOW|IN_ONLYDIR
+#define VHFFSFSSYNC_WATCH_MASK IN_ATTRIB|IN_CREATE|IN_DELETE|IN_MODIFY|IN_MOVED_FROM|IN_MOVED_TO|IN_DONT_FOLLOW|IN_ONLYDIR
 // Not used yet: IN_DELETE_SELF, IN_MOVE_SELF
+// Use to be used: IN_CLOSE_WRITE
 // Will never be used: IN_ACCESS, IN_OPEN, IN_CLOSE_NOWRITE
 
 // each monitor entry is associated with a path, we need to keep it to compute the path


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