]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add XATTRS flag to files affected by set_xattr and remove_xattr hooks
authorOndrej Kozina <okozina@redhat.com>
Fri, 15 Mar 2013 16:25:32 +0000 (17:25 +0100)
committerOndrej Kozina <okozina@redhat.com>
Fri, 15 Mar 2013 16:25:32 +0000 (17:25 +0100)
snapper/Btrfs.cc

index 088cef184acb9bffeb0b7e3ac388d771f6737db4..52d5cdc65565deef05533ee2101eb397ace6e020 100644 (file)
@@ -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;
     }