]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Cosmetics.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 21 May 2015 14:45:18 +0000 (15:45 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 21 May 2015 14:45:18 +0000 (15:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py
src/allmydata/windows/inotify.py

index 75fcb69a13a02b77940eb3217826745a14f51105..84df4f97e4a8d3accc07c65c9c9ad70505073c48 100644 (file)
@@ -118,7 +118,7 @@ class DropUploader(service.MultiService):
             islink = os.path.islink(childpath)
 
             if islink:
-                self.warn("WARNING: cannot backup symlink %s" % quote_local_unicode_path(childpath))
+                self.warn("WARNING: magic folder: cannot upload symlink %s" % quote_local_unicode_path(childpath))
             elif isdir:
                 # process directories unconditionally
                 self._append_to_deque(childpath)
@@ -130,7 +130,7 @@ class DropUploader(service.MultiService):
                 if must_upload:
                     self._append_to_deque(childpath)
             else:
-                self.warn("WARNING: cannot backup special file %s" % quote_local_unicode_path(childpath))
+                self.warn("WARNING: magic folder: cannot upload special file %s" % quote_local_unicode_path(childpath))
 
     def startService(self):
         self._db = backupdb.get_backupdb(self._dbfile)
index 887c63848676d820cbcb9614e44117677098d6d4..7343109197b63e3b022d4f47419ba04ace2d7b6f 100644 (file)
@@ -74,10 +74,10 @@ ReadDirectoryChangesW = WINFUNCTYPE(
 FILE_NOTIFY_CHANGE_FILE_NAME     = 0x00000001
 FILE_NOTIFY_CHANGE_DIR_NAME      = 0x00000002
 FILE_NOTIFY_CHANGE_ATTRIBUTES    = 0x00000004
-#FILE_NOTIFY_CHANGE_SIZE         = 0x00000008
+FILE_NOTIFY_CHANGE_SIZE          = 0x00000008
 FILE_NOTIFY_CHANGE_LAST_WRITE    = 0x00000010
 FILE_NOTIFY_CHANGE_LAST_ACCESS   = 0x00000020
-#FILE_NOTIFY_CHANGE_CREATION     = 0x00000040
+FILE_NOTIFY_CHANGE_CREATION      = 0x00000040
 FILE_NOTIFY_CHANGE_SECURITY      = 0x00000100
 
 # <https://msdn.microsoft.com/en-us/library/windows/desktop/aa364391%28v=vs.85%29.aspx>
@@ -339,9 +339,9 @@ class INotify(PollMixin):
         self._called_stopReading = True
 
         # This is tricky. We don't know where the notifier thread is in its loop,
-        # so it could block in get_notifications *after* any pending I/O has been
-        # cancelled. Therefore, we need to continue interrupting until we see
-        # that the thread has actually stopped.
+        # so it could block in get_notifications *after* any pending I/O from a previous
+        # call to get_notifications has been cancelled. Therefore, we need to continue
+        # interrupting until we see that the thread has actually stopped.
         def _try_to_stop():
             if self._stopped:
                 return True