Method and device for detecting change of file system and corresponding electronic device
A file system and detection method technology, which is applied in the fields of electronic equipment, detection devices, and detection methods for file system changes, can solve the problems of file processing errors, inappropriate system platforms, inefficient thread monitoring models, etc., and achieve the effect of improving performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] Such as figure 1 As shown, the detection method of the file system change in this embodiment includes:
[0072] Step 110, based on the file system change notification mechanism of the current operating system kernel, listen to the notification sent by the kernel when monitoring the file operation event on the monitoring instance;
[0073] Take inotify, the file system change notification mechanism provided by the Linux2.6 kernel, as an example. The kernel monitors file operation events (referred to as "events") in units of inotify instances created by the kernel. The events to be monitored by the inotify instance can be added by adding Watch object to set, including the file to be monitored and the type of operation on the file, such as "create file", "write file", "delete file", "modify file timestamp", "rename" and so on. When the kernel monitors that an event occurs, it will encapsulate the file operation information of the event into the inotify_event structure and...
Embodiment 2
[0123] Compared with the first embodiment, this embodiment does not consider the filtering process of the event structure, and the detection method of the file system change is as follows: image 3 shown, including:
[0124] Step 210, based on the file system change notification mechanism of the current operating system kernel, listen to the notification sent by the kernel when monitoring the file operation event on the monitoring instance;
[0125] This step is the same as step 110;
[0126] Step 220, after listening to the notification from the kernel, read the first event structure cached by the kernel, and the file operation information of the file operation event is encapsulated in the first event structure;
[0127] This step is the same as step 120;
[0128] Step 230, according to the type of the current operating system, analyze the first event structure accordingly, and repackage the file operation information obtained by the analysis into a unified second event str...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com