From: Ondrej Kozina Date: Fri, 15 Mar 2013 16:25:32 +0000 (+0100) Subject: - add XATTRS flag to files affected by set_xattr and remove_xattr hooks X-Git-Tag: v0.1.3~18^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2fc202ad0c5bde6d2746211394acab4b0a8bb88;p=thirdparty%2Fsnapper.git - add XATTRS flag to files affected by set_xattr and remove_xattr hooks --- diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index 088cef18..52d5cdc6 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -930,6 +930,13 @@ namespace snapper y2deb("set_xattr path:'" << path << "'"); #endif +#ifdef ENABLE_XATTRS + StreamProcessor* processor = (StreamProcessor*) user; + + tree_node* node = processor->files.insert(path); + node->status |= XATTRS; +#endif + return 0; } @@ -941,6 +948,13 @@ namespace snapper y2deb("remove_xattr path:'" << path << "'"); #endif +#ifdef ENABLE_XATTRS + StreamProcessor* processor = (StreamProcessor*) user; + + tree_node* node = processor->files.insert(path); + node->status |= XATTRS; +#endif + return 0; }