New -xattr mode "any" to process all xattr namespaces of local filesystem

This commit is contained in:
2017-10-23 12:08:16 +02:00
parent 25e24911d9
commit cbc5dbf496
14 changed files with 264 additions and 114 deletions

View File

@ -2189,10 +2189,13 @@ int Xorriso_option_xattr(struct XorrisO *xorriso, char *mode, int flag)
{
int ret;
xorriso->do_aaip&= ~(4 | 8 | 1024);
if(strcmp(mode, "off")==0)
xorriso->do_aaip&= ~12;
else if(strcmp(mode, "on")==0)
;
else if(strcmp(mode, "on") == 0 || strcmp(mode, "user") == 0)
xorriso->do_aaip|= (4 | 8);
else if(strcmp(mode, "any")==0)
xorriso->do_aaip|= (4 | 8 | 1024);
else {
sprintf(xorriso->info_text, "-xattr: unknown mode '%s'", mode);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);