On Thu, 03 May 2018 16:52:44 +0100, Jonathan Buzzard said:
The test that I have used in the past for if a file is migrated with a high degree of accuracy is
if the space allocated on the file system is less than the file size, and equal to the stub size then presume the file is migrated.
At least for LTFS/EE, we use something like this: define(is_premigrated,(MISC_ATTRIBUTES LIKE '%M%' AND MISC_ATTRIBUTES NOT LIKE '%V%')) define(is_migrated,(MISC_ATTRIBUTES LIKE '%V%')) define(is_resident,(NOT MISC_ATTRIBUTES LIKE '%M%')) RULE 'MIGRATED' LIST 'ltfsee_files' FROM POOL 'system' SHOW('migrated ' || xattr('dmapi.IBMTPS') || ' ' || all_attrs) WHERE is_migrated AND (xattr('dmapi.IBMTPS') LIKE '%:%' ) Not sure if the V and M misc_attributes are the same for other tape backends...
