| CPC G06F 13/1673 (2013.01) [G06F 12/0253 (2013.01); G06F 13/4068 (2013.01)] | 13 Claims |

|
1. An electronic device comprising:
a storage device comprising a plurality of segments configured to store data;
a buffer memory configured to store segment attributes corresponding to the plurality of segments, respectively; and
at least one processor electrically connected to the storage device and the buffer memory,
wherein the at least one processor is configured to:
determine, based on two or more parameters related to a data requested to be written, a data attribute;
store the data requested to be written in a segment of the plurality of segments, the segment of the plurality of segments being corresponding to the data attribute among the plurality of segments;
store, in the buffer memory, a segment attribute of the segment, the segment attribute in the buffer memory being determined based on the data attribute in the buffer memory;
update the data attribute, based on at least a data modification time of the data requested to be written; and
update the segment attribute, based on the updated data attribute, and
wherein the two or more parameters comprise an extension name of the data requested to be written and a path name of the data requested to be written.
|