Usage of masks for EA
Sascha Ochsenknecht <s.ochsenknecht-S0/[email protected]> Thu, 27 Mar 2008 19:26:32 +0100
| Newsgroups | gmane.comp.sysutils.backup.dar.libdar |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm currently working on KDar to make it work with the latest libdar
release.
I'm struggling with the Extended Attributes (EA) and the libdar::mask to
specify which EA to archive, restore etc.
The user should be able to switch on/off system and user EA, so I
created the mask like this:
// --- snip ---
using namespace libdar;
et_mask mask; // AND mask, should match if all added masks match
mask.add_mask(bool_mask(true)); // all EA
// ignore user EA
if ( !userEA() ) {
mask.add_mask(not_mask(regular_mask("user.*", false)));
}
if ( !systemEA() ) {
mask.add_mask(not_mask(regular_mask("system.*", false)));
}
// now use the mask to create/restore archive, e.g. archive::archive()
archive::op_extract() ...
// --- snip ---
But the EA are always stored/restored, even when I try to filter out
system and user EA.
Did I misunderstand something? Why it is not working as expected?
Thanks in advance,
Regards,
Sascha
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace