IP Library › Granted Patent US 12,530,496
Granted Patent B2
US 12,530,496 · App. 18/307,986 · Granted Jan 20, 2026

File anonymization method and apparatus, and storage medium

Inventor: Yonghui Li (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G06F21/6254G06F16/122
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,530,496
App. No.
18/307,986
Granted
Jan 20, 2026
Kind
B2
Abstract

The present disclosure provides a method, an apparatus, and a storage medium for file anonymization. The method is performed by a storage device. The method includes: receiving a file read command sent by a host, where the file read command is used to request a to-be-read file, the to-be-read file comprises a plurality of data blocks; obtaining the to-be-read file in response to the file read command, where the plurality of data blocks in the to-be-read file comprises one or more first data blocks that do not have anonymization processing performed thereon and one or more second data blocks that have anonymization processing completed thereon; performing anonymization processing on a first data block in the to-be-read file; and sending, to the host, the to-be-read file on which anonymization processing is completed.

Claims (50)

1 . A method for file anonymization, performed by a storage device, the method comprising:

receiving a file read command sent by a host, wherein the file read command is used to request a to-be-read file, the to-be-read file comprises a plurality of data blocks;

obtaining the to-be-read file in response to the file read command, wherein the plurality of data blocks in the to-be-read file comprises one or more first data blocks that do not have anonymization processing performed thereon and one or more second data blocks that have anonymization processing completed thereon;

performing anonymization processing on a first data block in the to-be-read file; and

sending, to the host, the to-be-read file on which anonymization processing is completed.

2 . The method according to claim 1 , further comprising:

storing the to-be-read file on which anonymization processing is completed in a hard disk of the storage device.

3 . The method according to claim 1 , further comprising:

obtaining a bitmap of the to-be-read file, wherein the bitmap indicates whether anonymization processing is completed on each data block of the plurality of data blocks comprised in the to-be-read file; and

identifying, based on the bitmap, the first data block in the to-be-read file.

4 . The method according to claim 3 , further comprising:

modifying, in the bitmap, a flag bit corresponding to a data block of the plurality of data blocks, to indicate that anonymization processing is completed on the particular data block.

5 . The method according to claim 1 , wherein the to-be-read file comprises an anonymization mark, and the anonymization mark indicates whether anonymization processing is completed on the to-be-read file; and

the method further comprises:

before performing the anonymization processing on the first data block in the to-be-read file, determining, based on the anonymization mark, that the to-be-read file is a file on which anonymization processing is not completed.

6 . The method according to claim 5 , further comprising:

modifying the anonymization mark of the to-be-read file on which anonymization processing is completed, to indicate that anonymization processing is completed on the to-be-read file.

7 . The method according to claim 1 , wherein the anonymization processing on the one or more second data blocks in the to-be-read file is completed through offline anonymization.

8 . The method according to claim 1 , wherein the to-be-read file comprises at least one of a text file, a report file, a picture file, an audio file, or a video file.

9 . An apparatus for file anonymization, comprising:

a processor; and

a memory, configured to store processor executable instructions,

wherein the processor is configured to:

receive a file read command sent by a host, wherein the file read command is used to request a to-be-read file, the to-be-read file comprises a plurality of data blocks;

obtain the to-be-read file in response to the file read command, wherein the plurality of data blocks in the to-be-read file comprises one or more first data blocks that do not have anonymization processing performed thereon and one or more second data blocks that have anonymization processing completed thereon;

perform anonymization processing on a first data block in the to-be-read file; and

send, to the host, the to-be-read file on which anonymization processing is completed.

10 . The file anonymization apparatus according to claim 9 , wherein the processor is further configured to store the to-be-read file on which anonymization processing is completed in a hard disk of the storage device.

11 . The file anonymization apparatus according to claim 9 , wherein the processor is further configured to:

obtain a bitmap of the to-be-read file, wherein the bitmap indicates whether anonymization processing is completed on each data block of the plurality of data blocks comprised in the to-be-read file; and

identify, based on the bitmap, the first data block in the to-be-read file.

12 . The file anonymization apparatus according to claim 11 , wherein the processor is further configured to:

modify, in the bitmap, a flag bit corresponding to a data block of the plurality of data blocks, to indicate that anonymization processing is completed on the particular data block.

13 . The file anonymization apparatus according to claim 9 , wherein the to-be-read file comprises an anonymization mark, and the anonymization mark indicates whether anonymization processing is completed on the to-be-read file, and wherein before performing the anonymization processing on the first data block in the to-be-read file, the processor is further configured to:

determine, based on the anonymization mark, that the to-be-read file is a file on which anonymization processing is not completed.

14 . The file anonymization apparatus according to claim 13 , wherein the processor is further configured to:

modify the anonymization mark of the to-be-read file on which anonymization processing is completed, to indicate that anonymization processing is completed on the to-be-read file.

15 . The file anonymization apparatus according to claim 9 , wherein the anonymization processing on the one or more second data blocks in the to-be-read file is completed through offline anonymization.

16 . The file anonymization apparatus according to claim 9 , wherein the to-be-read file comprises at least one of a text file, a report file, a picture file, an audio file, or a video file.

17 . A non-transitory computer-readable storage medium, storing computer-executable instructions, wherein the instructions, when executed, cause one or more processors to perform:

receiving a file read command sent by a host, wherein the file read command is used to request a to-be-read file, the to-be-read file comprises a plurality of data blocks;

obtaining the to-be-read file in response to the file read command, wherein the plurality of data blocks in the to-be-read file comprises one or more first data blocks that do not have anonymization processing performed thereon and one or more second data blocks that have anonymization processing completed thereon;

performing anonymization processing on a first data block in the to-be-read file; and

sending, to the host, the to-be-read file on which anonymization processing is completed.

18 . The non-transitory computer-readable storage medium according to claim 17 , wherein the instructions, when executed, cause the one or more processors to further perform:

enabling the storage device to store the to-be-read file on which anonymization processing is completed in a hard disk of the storage device.

19 . The non-transitory computer-readable storage medium according to claim 17 , wherein the instructions, when executed, cause the one or more processors to further perform:

obtaining a bitmap of the to-be-read file, wherein the bitmap indicates whether anonymization processing is completed on each data block of the plurality of data blocks comprised in the to-be-read file; and

identifying, based on the bitmap, the first data block in the to-be-read file.

20 . The non-transitory computer-readable storage medium according to claim 17 , wherein the anonymization processing on the one or more second data blocks in the to-be-read file is completed through offline anonymization.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 24, 2025
From: LI, YONGHUI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 072673/0776 →
Priority Claims (1)
CN 202011166187.4 · Oct 27, 2020 · national
Continuity (2)
Continuation PCTCN2021105808 · Jul 12, 2021
Related Publication 20230315906A1 · Oct 5, 2023
References Cited (24)
US 9338220B1 · Kothari · 2016 [cited by examiner]
US 11902257B1 · Kothari · 2024 [cited by examiner]
US 20150007249A1 · Bezzi · 2015 [cited by examiner]
US 20160162707A1 · Johansson · 2016 [cited by examiner]
US 20180082082A1 · Lowenberg · 2018 [cited by examiner]
US 20180288099A1 · Rubakha · 2018 [cited by examiner]
US 20200320406A1 · Antonatos · 2020 [cited by examiner]
US 20220129582A1 · Lange · 2022 [cited by examiner]
US 20220391537A1 · Gotthardt · 2022 [cited by examiner]
US 20240095400A1 · Poe · 2024 [cited by examiner]
US 20240184924A1 · Johnson · 2024 [cited by examiner]
US 20240187384A1 · Brost · 2024 [cited by examiner]
US 20240273238A1 · Stalling · 2024 [cited by examiner]
US 20240329837A1 · Cooper · 2024 [cited by examiner]
US 20240362202A1 · Chepak, Jr. · 2024 [cited by examiner]
US 20240387031A1 · Grantcharov · 2024 [cited by examiner]
US 20250021696A1 · Nichols · 2025 [cited by examiner]
US 20250045456A1 · Huang · 2025 [cited by examiner]
US 20250088490A1 · Ulrich · 2025 [cited by examiner]
US 20250111915A1 · Van Meter, II · 2025 [cited by examiner]
CN 110502515A · 2019 [cited by applicant]
CN 110532799A · 2019 [cited by applicant]
CN 110795756A · 2020 [cited by applicant]
CN 111460512A · 2020 [cited by applicant]