We have a solution to move all cold data (unused for a long time) from expensive storage to a cloud in order to reduce storage costs on the CIFS server. All files moved to the cloud are marked offline (FILE_ATTRIBUTE_OFFLINE file attribute set to files).
When users access these files from the Windows CIFS client, the Windows operating system recognizes the FILE_ATTRIBUTE_OFFLINE attribute and does not recall the cloud files to create a thumbnail or preview when browsing in the files. files unless users explicitly open a file object.
Under MacOS, the attribute FILE_ATTRIBUTE_OFFLINE is not respected and remembers all files to create thumbnails and previews when browsing files in the QuickLookSatellite Finder, which is very expensive for customers.
We have implemented the kauth API to block downloads from miniature processes, as well as the Network Kernel Extension API to track all SMB calls in order to inform our server that MAC OS is the customer.
But according to the release notes of MAC 10.15 (1), it is indicated that kauth and NKE are deprecated on MAC OS 10.15 and later.
Is there an alternative (to Kauth and NKE) or an interface to access an SMBClient offline attribute to the kernel and user space?
If not, can we take advantage of any API or system attribute used by Apple's iCloud to not download files while browsing?
- The Network Core Extension API is now obsolete. (49284108)
- The kauth API is obsolete. (50419013)
Thank you in advance.