Posts

Post not yet marked as solved
2 Replies
2.8k Views
Facing kernel panic on accessing "Offline" attribute of SMB protocol in our custom kext. How to debug these kernel panics on MAC OS Catalina.The debugging kernel extension steps are not supported for Catalina because of Read-only file system. Also kext with IOKit.framework does not load on MAC OS 10.14.x with errorThere is no "/Volumes/KernelDebugKit/mach_kernel" as per the documentation https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptDebugger/debug_tutorial.html#//apple_ref/doc/uid/20002367-CHDIHFDI,gdb -arch i386 /Volumes/KernelDebugKit/mach_kernel Unable to create PanicDumps directory to collect panic through kdump daemon under '/' volume, as Catalina is read-only file systemRef: https://developer.apple.com/library/archive/technotes/tn2004/tn2118.htmlUnable to load kexts with IOKit framework references with errors on MAC OS 10.14 to debug:The super class vtable '__ZTV9IOService' for vtable '__ZTV23com_microfocus_cisiokit' is out of date. Make sure your kext has been built against the correct headers.The super class vtable '__ZTV12IOUserClient' for vtable '__ZTV8cisiokit' is out of date. Make sure your kext has been built against the correct headers.Is there any documentation that specifies how to debug kernel panic on mac os catalina with read-only file system set up?Note: Disabling SIP also does not work.Thanks in advance.
Posted
by lakshmi_s.
Last updated
.
Post marked as solved
2 Replies
1.5k Views
We have a solution to move all cold data (Unused for a long time) from expensive storage to cloud to save storage cost on CIFS server. All files which are moved to cloud are marked as offline (The file attribute FILE_ATTRIBUTE_OFFLINE set on files).When users access those files from Windows CIFS client, Windows OS recognizes the FILE_ATTRIBUTE_OFFLINE attribute and does not recall files from cloud to create thumbnail or preview while browsing the files unless users explicitly open a file object.In MacOS, The FILE_ATTRIBUTE_OFFLINE attribute is not honoured and recall all files to create thumbnail and preview while browsing files in Finder by QuickLookSatellite, which is very expensive to the customers.We implemented kauth API to block downloads from thumbnail processes and also Network Kernel Extension API to track all SMB calls for informing our server about MAC OS is the client.But from MAC 10.15 Release notes[1], figured out that both kauth and NKE are deprecated on MAC OS 10.15 and above.Is there any alternative (to Kauth and NKE) or interface to access an offline attribute from SMBClient to kernel and user space?Alternatively, can we leverage any API or system attribute that is used by Apple’s iCloud for not downloading files on browsing?[1] https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_beta_8_release_notesThe Network Kernel Extension API is now deprecated. (49284108)The kauth API has been deprecated. (50419013)Thanks in advance.
Posted
by lakshmi_s.
Last updated
.
Post not yet marked as solved
5 Replies
1k Views
We are watching for DFS target mounted on smb volume using NSWorkSpace’s NSWorkspaceDidMountNotification notification in our code. But didMount notification is inconsistent and not reliable. Only for the first time, didMount notification is notified. Later on we are not getting notified with didMount notification, though notification is successful.Is there any other better approach to be notified on DFS junction mount?
Posted
by lakshmi_s.
Last updated
.