发明名称 FILE SCANNING METHOD AND APPARATUS
摘要 A file scanning method and apparatus. The method comprises: acquiring the number of hard links of a to-be-scanned file serving as a scanning object (100); if the number of the hard links of the to-be-scanned file is greater than 1, when the to-be-scanned file serves as the scanning object for the first time, invoking a scanning engine to scan the to-be-scanned file so as to acquire a scanning result, and storing a file identification identifier used for uniquely identifying the to-be-scanned file and the scanning result into a storage unit (102); and when the to-be-scanned file serves as the scanning object again, querying and acquiring the scanning result of the to-be-scanned file from the storage unit according to the file identification identifier (104). A file with the number of hard links greater than 1 is scanned only when the file serves as a to-be-scanned file for the first time, and the result of the first scanning is directly acquired when the file serves as the to-be-scanned file again, so as to avoid repeated scanning, which effectively reduces IO overheads and CPU overheads in the scanning process and improves the file scanning efficiency.
申请公布号 WO2016029441(A1) 申请公布日期 2016.03.03
申请号 WO2014CN85545 申请日期 2014.08.29
申请人 BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD. 发明人 GUO, MINGQIANG;QIAN, KEMING;CAO, LIANG
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址
您可能感兴趣的专利