From cbd1770462b2325372f90ef9200110dc66245377 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 20 Aug 2010 13:29:49 -0700 Subject: handle "changed" status properly * original backend implementation uses unionfs-specific "changes only" dir to determine "changed" status. this breaks when it involves deactivated nodes. * new library design uses explicit per-node "changed" marker. however, since previously "commit" only handles a root "changed" marker, the new library could not implement this scheme and used a workaround instead. * now add API functions for "commit" to properly clean up "changed" markers. * modify "commit" to use these API functions and remove the workaround from the new library. --- src/cstore/unionfs/cstore-unionfs.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cstore/unionfs/cstore-unionfs.hpp') diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp index 9e49064..bff4844 100644 --- a/src/cstore/unionfs/cstore-unionfs.hpp +++ b/src/cstore/unionfs/cstore-unionfs.hpp @@ -158,6 +158,7 @@ private: bool mark_deactivated(); bool unmark_deactivated(); bool unmark_deactivated_descendants(); + bool unmark_changed_with_descendants(); bool mark_changed(); bool remove_comment(); bool set_comment(const string& comment); -- cgit v1.2.3