Skip to content

Commit

Permalink
windows: suppress warnings and information about ACL and XATTR
Browse files Browse the repository at this point in the history
As we now have enabled acl and xattr support by default, we now
get useless and distracting job messages on windows.

This commit disables those messages.
  • Loading branch information
pstorz committed Dec 13, 2018
1 parent e39ce06 commit eba160c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/filed/dir_cmd.cc
Expand Up @@ -1847,6 +1847,7 @@ static bool BackupCmd(JobControlRecord *jcr)
/**
* Validate some options given to the backup make sense for the compiled in options of this filed.
*/
#ifndef HAVE_WIN32
if (!have_acl) {
ClearFlagInFileset(
jcr, FO_ACL,
Expand All @@ -1858,7 +1859,7 @@ static bool BackupCmd(JobControlRecord *jcr)
jcr, FO_XATTR,
_("XATTR support requested in fileset but not available on this platform. Disabling ...\n"));
}

#endif
if (!have_encryption) {
ClearFlagInFileset(
jcr, FO_ENCRYPT,
Expand All @@ -1867,9 +1868,10 @@ static bool BackupCmd(JobControlRecord *jcr)

ClearCompressionFlagInFileset(jcr);

#ifndef HAVE_WIN32
LogFlagStatus(jcr, FO_XATTR, "Extended attribute support ");
LogFlagStatus(jcr, FO_ACL, "ACL support ");

#endif
if (!GetWantedCryptoCipher(jcr, &cipher)) {
dir->fsend(BADcmd, "backup");
goto cleanup;
Expand Down

0 comments on commit eba160c

Please sign in to comment.