-
公开(公告)号:US11301436B2
公开(公告)日:2022-04-12
申请号:US16687070
申请日:2019-11-18
Applicant: Huawei Technologies Co., Ltd.
IPC: G06F12/00 , G06F16/00 , G06F16/185 , G06F16/11 , G06F16/13
Abstract: A method for file storage and a storage device are disclosed. The method includes: receiving, by a file system, a file create request sent by an application, where the file create request includes a file storage characteristic and a file storage path; selecting, by the file system from M domains based on the file storage characteristic, a domain whose domain storage characteristic has a highest degree of conformity with the file storage characteristic as a target domain; creating, by the file system, a file in the target domain; and adding, by the file system, the file to a directory tree based on the file storage path. The method can facilitate file and directory management in a storage device.