File Attribute Setting Method and Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsMingqian Zhang, Jing Yang
Life of this patent
Estimating the term…
Abstract
A method includes a network attached storage (NAS) server that receives an attribute setting request sent by a client, where the attribute setting request indicates a target directory and a target attribute, the target directory includes a plurality of objects, and the objects are files or subdirectories. The NAS server performs attribute setting on the objects in the target directory based on the target attribute, where the target attribute includes one or more of an owner attribute, a read-only attribute, a hidden attribute, a time attribute, or a permission attribute. The NAS server sends a response message for the attribute setting request to the client.
Claims20
A method, comprising:
- receiving, an attribute setting request indicating a target directory and a target attribute, wherein the target directory comprises a plurality of objects, wherein the target attribute comprises one or more of an owner attribute, a read-only attribute, a hidden attribute, a time attribute, or a permission attribute, and wherein the objects are files or subdirectories;
- performing, based on the attribute setting request and the target attribute, attribute setting for the objects;
- and
- sending, after performing the attribute setting, a response message corresponding to the attribute setting request.
An apparatus, comprising:
- one or more memories configured to store instructions;
- and
- one or more processors coupled to the one or more memories, wherein when executed by the one or more processors, the instructions cause the apparatus to:
- receive an attribute setting request indicating a target directory and a target attribute, wherein the target directory comprises a plurality of objects, wherein the target attribute comprises one or more of an owner attribute, a read-only attribute, a hidden attribute, a time attribute, or a permission attribute, and wherein the objects are files or subdirectories;
- perform, based on the target attribute according to the attribute setting request, attribute setting for the objects;
- and
- send, after performing the attribute setting, a response message corresponding to the attribute setting request.
Dependencies are inferred from the claim text.