Abstract:
A trim management method for a storage device includes activating, by a processor configured by an application program, a pattern check function of a device driver, requesting, by the processor configured by the application program, a file system to write a file of a specified pattern, converting, by the processor configured by the file system, the file to management unit data of the storage device, transmitting, by the processor configured by the file system, the management unit data to the device driver, checking, by the processor configured by the device driver, whether a data pattern of the management unit data is the same as the specified pattern, and transmitting, by the processor configured by the device driver, a trim command for trimming a storage area corresponding to the management unit data, to the storage device based on results of the checking.
Abstract:
A trim management method for a storage device includes activating, by a processor configured by an application program, a pattern check function of a device driver, requesting, by the processor configured by the application program, a file system to write a file of a specified pattern, converting, by the processor configured by the file system, the file to management unit data of the storage device, transmitting, by the processor configured by the file system, the management unit data to the device driver, checking, by the processor configured by the device driver, whether a data pattern of the management unit data is the same as the specified pattern, and transmitting, by the processor configured by the device driver, a trim command for trimming a storage area corresponding to the management unit data, to the storage device based on results of the checking.
Abstract:
A method used by an electronic device receiving a geo-fence service, determines whether a current position of the electronic device, determined using a cellular positioning system (CPS), is located within a first distance from a central point of a geo-fence service area. In response to determining that the current position is located within the first distance, the current position is determined using a Wi-Fi positioning system (WPS) and it is further determined whether the WPS determined current position is located within a second distance from the central point of the geo-fence service area. In response to the determination the current position is located within the second distance, it is determined whether the current position calculated using a global positioning system (GPS), is located within a boundary of a geo-fence service area.