Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print config should suppress data from JobDefs
Some specific config items in the Job resource could be coming from a JobDef so we should not print those values in the actual Job resource. We add a new bitmap analog to item_present bitmap already existing in the RES class. When we mark that bit when we populate the jobdef in the populate_jobdefs() function in src/dird/dird_conf.c we can check this bit in the printing function. (Overhead is currently 80 / 8 = 10 bytes) We also use the same bitmap for defaults so we can use some shortcut logic when printing the config as we then know that the default was set and never replaced by an other setting. We clear the bit in all other parse functions so we know the default is cleared. If the default is replaced with the same value as the original default that is still detected. Only real exception is when omit defaults is set to true then we just like before always print the defaults (but not the data populated from a JobDef.) Fixes #343: Print config should suppress data from JobDefs
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
f3a62db
commit 2d1f2b0
Showing
8 changed files
with
163 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.