diff --git a/policy/list-path-dirplus b/policy/list-path-dirplus new file mode 100644 index 0000000000000000000000000000000000000000..d75c82f68bb75ce9cfe8147fe3118b06c7334a1d --- /dev/null +++ b/policy/list-path-dirplus @@ -0,0 +1,28 @@ +/* list of files to include */ +define( include_list, + (PATH_NAME LIKE 'FILEPATH%') +) + +/* define access_age */ +define(access_age, + (DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME)) +) + +RULE 'gather-exec' EXTERNAL LIST 'gather-info' EXEC '' OPTS 'JOBID' ESCAPE '%' +RULE 'list-path' LIST 'gather-info' + DIRECTORIES_PLUS + SHOW ('|size=' || varchar(FILE_SIZE) || + '|kballoc='|| varchar(KB_ALLOCATED) || + '|access=' || varchar(ACCESS_TIME) || + '|create=' || varchar(CREATION_TIME) || + '|modify=' || varchar(MODIFICATION_TIME) || + '|uid=' || varchar(USER_ID) || + '|gid=' || varchar(GROUP_ID) || + '|heat=' || varchar(FILE_HEAT) || + '|pool=' || varchar(POOL_NAME) || + '|mode=' || varchar(MODE) || + '|misc=' || varchar(MISC_ATTRIBUTES) || + '|' + ) + WHERE include_list +