Merge branch '19954-permission-dedup-doc'
[arvados.git] / services / fuse / arvados_fuse / __init__.py
index 2b282af44f2e87efa35a24a82ebfcbc7f7c46108..31afcda8d12267970631372014706793ef95c9f3 100644 (file)
@@ -329,6 +329,8 @@ def catch_exceptions(orig_func):
             raise
         except EnvironmentError as e:
             raise llfuse.FUSEError(e.errno)
+        except NotImplementedError:
+            raise llfuse.FUSEError(errno.ENOTSUP)
         except arvados.errors.KeepWriteError as e:
             _logger.error("Keep write error: " + str(e))
             raise llfuse.FUSEError(errno.EIO)
@@ -475,24 +477,13 @@ class Operations(llfuse.Operations):
 
             for item in self.inodes.inode_cache.find_by_uuid(ev["object_uuid"]):
                 item.invalidate()
-                # if ev.get("object_kind") == "arvados#collection":
-                #     pdh = new_attrs.get("portable_data_hash")
-                #     # new_attributes.modified_at currently lacks
-                #     # subsecond precision (see #6347) so use event_at
-                #     # which should always be the same.
-                #     stamp = ev.get("event_at")
-                #     if (stamp and pdh and item.writable() and
-                #         item.collection is not None and
-                #         item.collection.modified() and
-                #         new_attrs.get("is_trashed") is not True):
-                #         item.update(to_record_version=(stamp, pdh))
 
             oldowner = old_attrs.get("owner_uuid")
             newowner = ev.get("object_owner_uuid")
             for parent in (
                     self.inodes.inode_cache.find_by_uuid(oldowner) +
                     self.inodes.inode_cache.find_by_uuid(newowner)):
-                parent.child_event(ev)
+                parent.invalidate()
 
     @getattr_time.time()
     @catch_exceptions