-
公开(公告)号:US20160232166A1
公开(公告)日:2016-08-11
申请号:US15133446
申请日:2016-04-20
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jiaxing Shi , Jun Li , Fan Fang
IPC: G06F17/30
CPC classification number: G06F16/122 , G06F16/13 , G06F16/14 , G06F16/148 , G06F16/156 , G06F16/22
Abstract: A method and an apparatus for accessing a file, where the method includes that a file system receives a file access request from an application layer, acquires metadata of a file when the file access request is to acquire content of the file according to a query condition, where the metadata of the file includes index information of the file, and the query condition is used to select content of the file with respect to the index information of the file, determining, according to the index information of the file, content that is of the file and that meets the query condition, and acquiring, using a magnetic disk input/output controller, all content that is of the file and that meets the query condition such that the application layer accesses the file, and hence the memory usage is reduced by means of filtering out a part of data.
Abstract translation: 一种用于访问文件的方法和装置,其中所述方法包括文件系统从应用层接收文件访问请求,当文件访问请求根据查询条件获取文件的内容时,获取文件的元数据 其中文件的元数据包括文件的索引信息,并且使用查询条件来相对于文件的索引信息选择文件的内容,根据文件的索引信息确定是 的文件,并且满足查询条件,并且使用磁盘输入/输出控制器获取所有文件的内容并且满足查询条件,使得应用层访问该文件,因此存储器使用是 通过过滤掉一部分数据来减少。