Information processing system, information processing apparatus, and program
The information processing system addresses file transfer interruptions in mobile devices by using temporary storage areas and updated reference data to ensure complete file transfers and prevent partial file access, enhancing data integrity during network fluctuations.
Patent Information
- Application Number
- JP2023121659
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2025-02-06
AI Technical Summary
Mobile devices like smartphones face issues with unintentional network disconnections during file transfers to storage devices, leading to partial file losses due to background processing interruptions, which existing technologies fail to address effectively.
An information processing system and device that includes a control mechanism to transfer files to a temporary storage area separate from the main storage area during file transfers, ensuring complete transfer completion before moving files to the main area, and maintaining updated reference data to prevent partial file access during interruptions.
This approach prevents partial file writing and access during interruptions, ensuring complete file transfers and reducing the risk of file loss by managing file transfers and access through temporary storage areas and updated reference data.
Smart Images

Figure 2025018172000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system, an information processing device, and a program. [Background technology]
[0002] In recent years, multitasking has been implemented in mobile devices such as smartphones. However, unlike personal computers, devices such as smartphones may take into consideration the CPU processing load and the fact that they are battery-powered, and may suspend a process after a certain period of time if that process moves to background processing (execution without user interaction) during execution of that process. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2013-167975 A Summary of the Invention [Problem to be solved by the invention]
[0004] For example, under such circumstances, when writing a file from a smartphone to a storage device connected via a network, if the user shifts the process to the background during the writing process, the network connection may be unintentionally disconnected. As in this example, when transferring and writing a file to a storage device, if the process is interrupted, such as the network connection being disconnected during the transfer or writing process, the file will be partially written to the storage device, which is undesirable.
[0005] The present invention has been made in consideration of the above-mentioned situation, and one of its objectives is to provide an information processing system, an information processing device, and a program that can control access to a storage device so that access is not made in a state in which a partial file has been written.
[0006] Patent Document 1 discloses a technique for preventing file loss when a file is moved to a storage device equipped with a cache. [Means for solving the problem]
[0007] One aspect of the present invention for solving the problems of the above-mentioned conventional examples is an information processing system including an information processing device and a storage device, wherein the storage device has a file memory area for storing files within its memory area, and the information processing device has a holding means for holding a file to be transferred, and a control means, and when the control means transfers a file held in the holding means to the storage device, the control means transfers the file to be transferred to a temporary memory area different from the file memory area that is generated in the memory area of the storage device, and when the file transfer is completed, moves the file from the temporary memory area to the file memory area.
[0008] This makes it possible to control the file storage area of the storage device so that it is not put into a state in which a partial file has been written, and when accessing the storage device, it is possible to control so that it is not accessed in a state in which a partial file has been written.
[0009] Another aspect of the present invention for solving the problems of the above-mentioned conventional examples is an information processing device connected via a network to a storage device having a file memory area for storing files within its memory area, the information processing device having a holding means for holding a file to be transferred and a control means, and when the control means transfers a file held in the holding means to the storage device, the control means transfers the file to be transferred to a temporary memory area generated in the memory area of the storage device, different from the file memory area, and when the file transfer is completed, moves the file from the temporary memory area to the file memory area.
[0010] This makes it possible to control the file storage area of the storage device so that it is not put into a state in which a partial file has been written, and when accessing the storage device, it is possible to control so that it is not accessed in a state in which a partial file has been written.
[0011] Also, here, when the control means transfers a file held in the holding means to the storage device, it may further copy reference data holding a list of files stored in the file memory area of the storage device, update the copied reference data by adding the list of transferred files to the copied reference data, and when the file transfer is completed, perform a process of storing the updated reference data in the file memory area.When accessing a file stored in the file memory area of the storage device, it may obtain a list of files held by the reference data stored in the file memory area, and access a file included in the obtained list of files.
[0012] According to this example, access when a partial file has been written is restricted, and when accessing the storage device, it is possible to control so that access is not made when a partial file has been written.
[0013] Furthermore, after the control means moves the updated reference data, it may store management data in the storage device for identifying the updated reference data as the reference data to be read when accessing a file, and when accessing a file stored in the file memory area of the storage device, it may read the reference data identified by the management data to obtain a list of files, and access the files included in the obtained list of files.
[0014] According to this example, access when a partial file has been written is restricted, and when accessing the storage device, it is possible to control so that access is not made when a partial file has been written.
[0015] In addition, when transferring a file held in the holding means to the storage device, the control means may generate a temporary storage area different from the file storage area in the memory area of the storage device, and transfer the file to be transferred to the generated temporary storage area different from the file storage area.
[0016] The control means may also acquire the reference data and copy it to the holding means, update the copied reference data within the holding means by adding the list of the transferred files to the copied reference data, transfer it to the temporary storage area, and when the transfer of the files is completed, store the updated reference data in the file storage area, thereby updating the reference data.
[0017] In this example, by updating the reference data after the file has been transferred, access when a partial file has been written is restricted, and access to the storage device can be controlled so that it is not accessed when a partial file has been written.
[0018] In addition, when the control means deletes a file in the file memory area of the storage device, it may obtain reference data stored in the file memory area prior to deleting the file, delete information related to the file to be deleted from a list of files contained in the reference data, update the list of files, store the updated reference data including the updated list of files in the file memory area, and then execute a deletion process for the file to be deleted.
[0019] According to this example, even when deleting a file, access is restricted when a partial file has been deleted, and when accessing the storage device, control can be exercised to prevent access when a partial file has been written.
[0020] Furthermore, when updating the file list of the reference data, the control means may copy the reference data, update the file list of the copied reference data, and store the updated reference data with the updated file list in the file memory area.
[0021] Another aspect of the present invention is a program that causes an information processing device connected via a network to a storage device having a file memory area for storing files within its memory area to function as: means for transferring the file to be transferred to a temporary memory area generated in the memory area of the storage device, different from the file memory area, when transferring a file held in a holding means for holding the file to the storage device, and means for moving the file from the temporary memory area to the file memory area when the file transfer is completed. Effect of the Invention
[0022] According to the present invention, it is possible to control the file storage area of a storage device so that it is not accessed when a partial file has been written thereto. [Brief description of the drawings]
[0023] [Figure 1] 1 is a configuration block diagram of an information processing system according to an embodiment of the present invention. [Diagram 2] 2 is a functional block diagram illustrating an example of a control unit of an information processing device according to an embodiment of the present invention. FIG. [Diagram 3] 4 is a flowchart illustrating an example of the operation of the information processing system according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] An embodiment of the present invention will be described with reference to the drawings. As shown in Fig. 1, an information processing system 1 according to the embodiment of the present invention includes a storage device 10 and an information processing device 20 that are communicatively connected to each other via a network.
[0025] Here, the storage device 10 includes at least a storage unit 11, a control unit 12, a memory unit 13, and a communication unit 14. The information processing device 20 is, for example, a smartphone, and includes a control unit 21, a memory unit 22, an operation unit 23, a display unit 24, and a communication unit 25.
[0026] The storage unit 11 of the storage device 10 is a hard disk, an SSD, an SD card, or the like, and stores various information. The storage unit 11 of this embodiment is managed by a predetermined file system, and a file storage area 111 is set as shown in FIG. 1. In one example of this embodiment, this file storage area 111 is one of the directories (folders) set on a removable medium such as an SD card. However, this is just one example, and the storage unit 11 does not necessarily have to be a removable medium, as already mentioned.
[0027] The control unit 12 is a program-controlled device such as a microcomputer, and operates according to a program stored in the storage unit 13. In this embodiment, the control unit 12 creates or deletes a directory in the storage unit 11 according to an instruction received from the information processing device 20 via the network. The control unit 12 also executes a process of storing a file sent by the information processing device 20 in a specified directory of the information processing device 20 and deleting a file instructed by the information processing device 20 according to an instruction received from the information processing device 20.
[0028] Furthermore, the control unit 12 of this embodiment executes a process (file access process) of providing a file stored in the file memory area 111 of the storage unit 11 in response to a request from the information processing device 20. The process of the control unit 12 will be described in more detail later.
[0029] Furthermore, in one example of this embodiment, the storage device 10 may further include an optical drive (such as a CD drive, not shown) and the control unit 12 may perform a process of reading data from an optical disc (such as a CD) set in the optical drive, appropriately encoding it, and sending it to the information processing device 20.
[0030] The storage unit 13 holds a program executed by the control unit 12. In one example of the present embodiment, the program may be provided by being stored in a computer-readable and non-transitory recording medium, and may be stored in the storage unit 13. The storage unit 13 also operates as a work memory for the control unit 12.
[0031] The communication unit 14 is a wireless communication means such as a network interface such as Wi-Fi or a short-range communication interface such as Bluetooth (registered trademark), or a wired communication means such as a serial interface such as USB (Universal Serial Bus), and communicates with other devices connected via a network or the like in accordance with instructions input from the control unit 12. This communication unit 14 communicates with, for example, the information processing device 20, and transmits and receives various data.
[0032] The control unit 21 of the information processing device 20 is a program-controlled device such as a CPU, and operates according to a program stored in the storage unit 22. In one example of the present embodiment, the information processing device 20 is a smartphone, and the control unit 21 executes processes for realizing general functions of a smartphone, as well as executes programs stored in the storage unit 22 to perform the following operations.
[0033] This control unit 21 functions as the control means of the present invention, accesses the storage device 10, acquires a file stored in the file memory area 111 of the storage unit 11, and stores the file in the memory unit 22. Then, the control unit 21 executes a process using the file stored in the memory unit 22. In one example of the present embodiment, the file includes music data, and the control unit 21 plays and outputs the music data included in the acquired file.
[0034] Furthermore, the control unit 21 executes a process of transferring a file (for example, a file of a predetermined type) stored in the storage unit 22 to the storage device 10 at a predetermined timing such as a user's instruction. At this time, the control unit 21 transfers the file to be transferred to a temporary storage area different from the file storage area 111 in the storage unit 11, which is a storage area of the storage device 10, generated in the storage unit 11. Then, when the transfer of the file to be transferred is completed, the control unit 21 moves the file from the temporary storage area to the file storage area 111. In the description of this embodiment, the movement of a file may mean copying the entity (copy source) of the file in the original location to the file storage area 111 and then deleting the file of the copy source, or may mean a process of copying the entity (copy source) of the file in the original location to the file storage area 111.
[0035] When there are multiple files to be transferred, the files may be moved from the temporary storage area to the file storage area 111 each time a predetermined group of files is completed, or when the transfer of all the files is completed, the files may be moved from the temporary storage area to the file storage area 111. The details of the processing by the control unit 21 will be described later.
[0036] The storage unit 22 includes a memory device, a disk device, and the like. The storage unit 22 holds a program executed by the control unit 21. The program may be provided by being stored in a computer-readable and non-transitory recording medium, and may be copied and stored in the control unit 22. The storage unit 22 also operates as a work memory for the control unit 21.
[0037] The operation unit 23 is a mouse, a keyboard, a touch panel, or the like, which accepts user operations and outputs information indicating the contents of the operations to the control unit 21. The display unit 24 is a display, and if the operation unit 23 is equipped with a touch panel, it may be disposed below the touch panel. This display unit 24 displays and outputs the instructed information in accordance with instructions input from the control unit 21.
[0038] The communication unit 25 is a short-range communication interface such as Bluetooth (registered trademark) or a network interface, and communicates with other devices connected via a network or the like in accordance with instructions input from the control unit 21. The communication unit 25 communicates with, for example, the storage device 10, and transmits and receives various data.
[0039] [Processing of the control unit of the information processing device] Next, a description will be given of the processing of the control unit 21 of the information processing device 20 according to the present embodiment. In the example of the present embodiment, the control unit 21 functionally includes a function unit 31, a file transfer processing unit 32, and a data access processing unit 33, as exemplified in FIG.
[0040] The functional unit 31 realizes basic functions as the information processing device 20. As already described, if the information processing device 20 is a smartphone, the functional unit 31 executes processes for realizing general functions of a smartphone, that is, telephone conversations, communication via a network, operation as an application program, and the like.
[0041] [File transfer process] The file transfer processing unit 32 executes a process of transferring a file (file data) stored in the memory unit 22 to the storage device 10 at a predetermined timing such as a user instruction.
[0042] Specifically, when a file to be transferred is selected by the user from among files of a specified type stored in the memory unit 22 and an instruction to start the transfer is given, the file transfer processing unit 32 starts the transfer process of that file.
[0043] Here, the files may be specified individually, or in some unit including multiple files. For example, the files may be specified in directory units (which generally contain multiple files and correspond to folders in the GUI of an operating system). Also, if the files contain music data, the files may be specified as a group of music data, for example, as an album.
[0044] Upon receiving an instruction to start the transfer, the file transfer processing unit 32 transfers the file designated as the target of the transfer to a temporary storage area in the storage unit 11, which is the storage area of the storage device 10, and which is located at a path different from the file storage area 111 formed in the storage unit 11. If the temporary storage area does not exist at the specified path at this time, the storage device 10 may generate the temporary storage area at the specified path before accepting the transfer of the file. In this way, the file transfer processing unit 32 transfers the file designated as the target of the transfer to the temporary storage area, and causes the storage device 10 to store the transferred file in the temporary storage area.
[0045] The file transfer processing unit 32 determines whether the transfer of the file to be transferred has been completed, and if it determines that the transfer has been completed, instructs the storage device 10 to move the file from the temporary memory area to the file memory area 111.
[0046] Here, when there are multiple files to be transferred, the transfer may be determined to be complete each time the transfer of a specified group of files is completed, or the transfer may be determined to be complete when the transfer of all files selected as the files to be transferred has been completed.
[0047] In the former example, for example, when a file containing music data relating to multiple albums is selected as the target for transfer, the file transfer processing unit 32 instructs the storage device 10 to move the file from the temporary storage area to the file storage area 111 each time the transfer of music data relating to one album to the temporary storage area is completed.
[0048] [Data access processing] Furthermore, in response to an instruction from the user, the data access processor 33 requests the storage device 10 for a list of files stored in the storage device 10. In response to this request, the storage device 10 provides a predetermined list of files stored in the file memory area 111 within the storage device 10. The data access processor 33 presents the provided list of files to the user.
[0049] When the user instructs the execution of processing for at least one file from the listed files, the data access processing unit 33 retrieves the instructed file from the storage device 10 (at this time, the file may be copied and stored in the memory unit 22) and executes a predetermined processing.
[0050] For example, if the file contains music data, the data access processing unit 33 performs processing such as playing the music data contained in the file obtained from the storage device 10 and playing a sound through a speaker (not shown) or an earphone connected to the information processing device 20.
[0051] [Basic operation] According to the above-described example configuration of this embodiment, a file transferred from an information processing device 20a is first stored in a temporary storage area of the storage device 10. Therefore, even if an information processing device 20b other than the information processing device 20a accesses the file by data access processing during file transfer, the information processing device 20b acquires the file from the file storage area 111, thereby reducing the chance that the information processing device 20b accesses the file being transferred or some files in the album.
[0052] Furthermore, even if the user of the information processing device 20a performs an operation to interrupt the file transfer process (such as running the program executing the file transfer process in the background) during the file transfer process, and the file transfer process is interrupted as a result, the file has not been moved to the file memory area 111 at that point, so the opportunity for the information processing device 20b to access the file being transferred or some of the files in the album is reduced.
[0053] [Example of using a file list] In the above basic operation, after a file has been transferred to a temporary storage area, when the file is being moved to the file memory area 111, if the processing is interrupted by the information processing device 20 that performed the file transfer processing, it is possible that, at rare times, only a portion of the file may have been moved to the file memory area 111.
[0054] The chances of such a situation occurring can be further reduced by having the control unit 12 of the storage device 10 move files from the temporary storage area to the file storage area 111, for example, when the storage device 10 is connected to an AC power source and the user operates it carefully, or when the storage device 10 has a sufficient internal battery.
[0055] However, in consideration of the case where the storage device 10 is also battery-powered or the possibility of user negligence, the control unit 21 of the information processing device 20 may execute processing using the file list as follows.
[0056] Here is the file list: A first list: a list for holding reference information of files (corresponding to the reference data of the present invention); Second list: corresponds to a management list, and holds information for identifying the first list to be referred to in the file access process of the information processing device 20. Includes.
[0057] Here, the first list is stored in the file storage area 111, and includes a list of reference information (such as file names) of files that can be accessed in the file access process of the information processing device 20.
[0058] The following describes the processing performed by the storage device 10 and the information processing device 20 using these file lists.
[0059] In this example, the file transfer process of the information processing device 20 is performed as follows: When a user selects a file to be transferred from among files of a predetermined type stored in the storage unit 22 and issues an instruction to start the transfer, the control unit 21 of the information processing device 20 starts the file transfer process illustrated in FIG.
[0060] In this example, files may be specified individually or in some unit including multiple files. For example, files may be specified in directory units (corresponding to folders in the GUI of an operating system, which generally contain multiple files). If the file contains music data, the file may be specified as a group of music data, for example, as an album.
[0061] Upon receiving the instruction to start the transfer, the control unit 21 requests the storage device 10 to generate, in the storage unit 11 which is a storage area, a temporary storage area different from the file storage area 111 formed in the storage unit 11. The control unit 21 also requests at least the first list of the file lists stored in the file storage area 111 from the storage device 10 (S11: request to start transfer processing).
[0062] In response to these requests, the storage device 10 refers to the second list stored in the file storage area 111 with the latest update date and time (or creation date and time), and sends the first list identified by the referred second list to the information processing device 20 (S12). The storage device 10 also creates a temporary storage area in a path (path on the file system) specified in the request received from the information processing device 20 (S13). However, if a temporary storage area has already been created in the specified path, the created temporary storage area may be used as is (there is no need to create a new one). The order of steps S12 and S13 may be reversed.
[0063] The control unit 21 of the information processing device 20 stores the first list sent by the storage device 10 in the memory unit 22, and also transfers the files designated as the targets of transfer to a temporary storage area specified by the information provided by the storage device 10 (S14). Then, the control unit 21 causes the storage device 10 to store the transferred files in the temporary storage area.
[0064] Thereafter, the control unit 21 judges whether the transfer of the target file has been completed, and if it judges that the transfer has been completed, it adds a list of the files (which may be file names) whose transfer has been completed to the first list stored in the storage unit 22, and updates the first list (S15). The control unit 21 also issues a unique character string at that time (a character string consisting of characters that can be used as a file name, for example, a character string representing the date and time at that time), and generates a second list having the issued character string as part of its file name (S16). For example, if the issued character string is YYMMDDhhmmss, the file name in the second list may be YYMMDDhhmmss_2.
[0065] Furthermore, the control unit 21 changes the file name of the first list stored in the storage unit 22 and updated to a file name that includes the issued character string (the same character string as that included in the file name of the second list) as a part of the file name (S17). For example, if the issued character string is YYMMDDhhmmss, the control unit 21 changes the file name of the first list to YYMMDDhhmmss_1, for example.
[0066] Next, the control unit 21 transfers the first list, whose file names have been changed, and the generated second list to a temporary storage area of the storage device 10 (S18). Then, when these transfers are completed, the control unit 21 instructs the storage device 10 to move the files transferred to the temporary storage area from the temporary storage area to the file storage area 111 (S19).
[0067] The control unit 21 waits until all the transferred files have been moved to the file storage area 111 (until the move is complete) (S20), and when the move is complete, the control unit 21 instructs the storage device 10 to move the first list transferred in step S18 from the temporary storage area to the file storage area 111 (S21). After that, when the first list has been moved, the control unit 21 instructs the storage device 10 to move the transferred second list from the temporary storage area to the file storage area 111 (S22).
[0068] Through these operations, the transferred files are first moved from the temporary storage area to the file memory area 111 of the storage device 10, and after the move is complete, the first list is moved, and then the second list is moved.
[0069] In this example as well, when there are multiple files to be transferred, the transfer may be determined to be complete each time the transfer of a specified group of files is completed, or the transfer may be determined to be complete when the transfer of all files selected to be transferred has been completed.
[0070] In the former example, when a file containing music data relating to multiple albums is selected as the target for transfer, the file transfer processing unit 32 will instruct the storage device 10 to move the file from the temporary storage area to the file storage area 111, and then to move it to the first list and then to the second list, each time the transfer of music data relating to one album to the temporary storage area is completed.
[0071] In this example, the file access process by the control unit 21 of the information processing device 20 is as follows.
[0072] When the control unit 21 starts processing as the data access processing unit 33 in response to a user instruction, it requests the storage device 10 to refer to the second list stored in the file memory area 111 that has the most recent update date and time (or the creation date and time), and obtains from the file memory area 111 the first list identified by the referenced second list.
[0073] Specifically, the control unit 21 refers to the file name of the second list stored in the file memory area 111 of the storage device 10 that has the most recent update date and time (or the creation date and time), and obtains from the file memory area 111 a first list that contains a specified portion of the file name (for example, a portion up to a specified number of characters from the beginning) as the first list identified by the referenced second list.
[0074] The control unit 21 presents the user with a list of files included in the acquired first list, and when the user instructs the execution of a process for at least one file from the listed files, the control unit 21 acquires the instructed file from the storage device 10 (at this time, the file may be copied and stored in the memory unit 22) and executes a predetermined process (such as playback of music data).
[0075] In this example of the present embodiment, not only if the file transfer process is interrupted during file transfer, but also if some kind of failure occurs while the file is being moved from the temporary memory area to the file memory area 111 in the storage device 10 and the move process is interrupted, the updated first list and second list have not been moved at that point, so the file being moved will not be accessed.
[0076] Similarly, if the transfer process is interrupted while the first list is being transferred or while the second list is being transferred, the second list is not updated, and therefore the information processing device 20 does not access the first list being transferred. Since the update of the second list is completed in a sufficiently short time compared to the transfer of a file with content, because a file with almost no content is merely generated in the file storage area 111 by the transfer, the information processing device 20 does not access the file being transferred or some of the files in the album, and this significantly reduces the chances of the information processing device 20 accessing the file being transferred or some of the files in the album.
[0077] [File deletion process] Furthermore, in the case where a file list is used in this way, when the control unit 21 of the information processing device 20 deletes a file in the file storage area 111, the following process is carried out.
[0078] When the user selects a file to be deleted from the list of files presented to the user in the data access process and instructs the user to delete the file, the control unit 21 starts the next deletion process. That is, the control unit 21 deletes the file name of the instructed file from the first list stored in the storage unit 22, and updates the first list.
[0079] The control unit 21 also issues a unique string at that time (a string consisting of characters that can be used as a file name, for example a string representing the date and time at that time), generates a second list that has the issued string as part of its file name, and further changes the file name of the first list that has been stored and updated in the memory unit 22 to a file name that includes the issued string as part of it (the same string as included in the file name of the second list).
[0080] The control unit 21 transfers the updated first list with the changed file name and the generated second list to a temporary storage area of the storage device 10. Then, the control unit 21 instructs the storage device 10 to move the transferred first list (hereinafter referred to as the updated first list for distinction) from the temporary storage area to the file storage area 111, and after the first list has been moved, next, the control unit 21 instructs the storage device 10 to move the transferred second list (hereinafter referred to as the updated second list for distinction) from the temporary storage area to the file storage area 111.
[0081] Furthermore, the control unit 21 deletes the first and second lists that originally existed (before the update) from the file storage area 111, and updates the contents of the file storage area 111 so that the updated first list and the updated second list become the new first and second lists. Thereafter, the control unit 21 requests the storage device 10 to delete from the file storage area 111 the file designated by the user.
[0082] According to this example, even if the process of deleting a file is interrupted, the chances that the information processing device 20 accesses the file being deleted or some of the files in the album where the files are being deleted are reduced.
[0083] [Processing in storage device] When processing using a file list in this manner is performed, the storage device 10 may execute the following processing at a predetermined timing (for example, periodically, or at the time of startup, etc.).
[0084] At the above-mentioned specified timing, the storage device 10 refers to the second list stored in the file memory area 111 that has the most recent update date and time (or the creation date and time), and reads out from the file memory area 111 the first list identified by the referenced second list.
[0085] The storage device 10 may then execute a process of deleting files stored in the file storage area 111 other than the files identified by the file names included in the read first list.
[0086] Furthermore, the storage device 10 may delete, from the file memory area 111, second lists other than the one with the latest update date and time (which may be the creation date and time) among the second lists stored in the file memory area 111. The storage device 10 may delete, from the file memory area 111, first lists other than the first list identified by the one with the latest update date and time (which may be the creation date and time) among the second lists stored in the file memory area 111.
[0087] [Delete temporary storage area] The storage device 10 may also delete files in the temporary storage area or a directory serving as the temporary storage area in response to an instruction from the information processing device 20. Furthermore, when the temporary storage area is stored in the storage unit 11 at a point in time when it is determined that there is no access from the information processing device 20, such as at the time of startup (therefore, it may be a point in time when a period of no access from the information processing device 20 exceeds a predetermined time), the storage device 10 may delete the files in the temporary storage area or the directory itself serving as the temporary storage area.
[0088] Furthermore, in one example of this embodiment, the information processing device 20 may control the storage device 10 to delete a file previously stored in the temporary storage area before step S14 during the process illustrated in Fig. 3 (i.e., before transferring the file to the temporary storage area). However, this is just one example, and the file transfer process (step S14) may be performed without deleting the file in the temporary storage area, and if a file with the same name is already stored in the temporary storage area of the storage device 10 at that time, the already stored file may be overwritten with the file being transferred (i.e., the file previously stored may be deleted).
[0089] [Variations] In the examples so far, when updating the file list, the control unit 21 of the information processing device 20 copies the first list held by the storage device 10 to the memory unit 22 and updates it, but instead, the control unit 21 may copy the first list to a temporary memory area of the storage device 10 and update the first list copied to the temporary memory area.
[0090] In this example, the second list may also be created directly in the temporary storage area.
[0091] In addition, in the explanation so far, both the first and second lists have been described as being stored in the file memory area 111, but these file lists may also be stored and referenced in a file list memory area prepared separately from the file memory area 111.
[0092] Furthermore, in the above description, the reference data is not limited to the second list, and multiple types may be prepared in consideration of the usage manner on the information processing device 20 side. For example, when the files are music data files, album reference data that holds data related to the album and reference data that holds a list of files related to the music data in the album may be generated and used separately for each album that is a group of music data files. In these cases, when transferring files from the information processing device 20 to the file storage area 111, a temporary storage area is set in the storage device 10 and the files are transferred to the temporary storage area, and after the files are transferred, the transferred files are moved from the temporary storage area to the file storage area 111, and the album reference data is updated in the same manner as the first list, and after the files are moved to the file storage area 111, the updated album reference data is moved to the file storage area 111.
[0093] Similarly, in the case of deletion, the album reference data and the like are updated when the first list is updated, and then the actual file within the file storage area 111 is deleted.
[0094] In this example, the information processing device 20, for example, refers to the album reference data to identify files related to music data in an album specified by the user, and obtains and reads the identified files from the storage device 10 for playback or other processing. [Explanation of symbols]
[0095] 1 information processing system, 10 storage device, 11 storage section, 12, 21 control section, 13, 22 memory section, 14, 25 communication section, 20 information processing device, 23 operation section, 24 display section, 31 function section, 32 file transfer processing section, 33 data access processing section, 111 file storage area.
Claims
1. An information processing system including an information processing device and a storage device, the storage device includes a file storage area for storing files within a storage area; The information processing device includes: a holding means for holding the files to be transferred; and a control means, When the control means transfers the file held in the holding means to the storage device, the control means transfers the file to be transferred to a temporary storage area that is generated in a storage area of the storage device and is different from the file storage area; When the transfer of the file is completed, the information processing system moves the file from the temporary storage area to the file storage area.
2. An information processing device connected via a network to a storage device having a file storage area for storing files within the storage area, a holding means for holding the files to be transferred; and a control means, This control means When transferring the file held in the holding means to the storage device, the file to be transferred is transferred to a temporary storage area that is generated in a storage area of the storage device and is different from the file storage area; When the transfer of the file is completed, the information processing device moves the file from the temporary storage area to the file storage area.
3. 3. The information processing device according to claim 2, The control means when transferring the file held in said holding means to said storage device, further copying reference data holding a list of files stored in said file memory area of said storage device, updating said copied reference data by adding said list of transferred files to said copied reference data, and storing said updated reference data in said file memory area when the file transfer is completed; When accessing a file stored in the file memory area of the storage device, an information processing device obtains a list of files held by reference data stored in the file memory area, and accesses the files included in the obtained file list.
4. 4. The information processing device according to claim 3, The control means After the updated reference data is moved, management data for identifying the updated reference data as reference data to be read when accessing a file is stored in the storage device; An information processing device that, when accessing a file stored in the file memory area of the storage device, reads reference data identified by the management data to obtain a list of files, and accesses the files included in the obtained list of files.
5. 5. The information processing device according to claim 1, The control means of the information processing device generates a temporary storage area different from the file storage area in the storage device's memory area when transferring a file held in the holding means to the storage device, and transfers the file to be transferred to the generated temporary storage area different from the file storage area.
6. 5. The information processing device according to claim 3, The control means acquires the reference data and copies it to the storage means, updates the copied reference data within the storage means by adding the list of transferred files to the copied reference data, transfers it to the temporary storage area, and when the file transfer is completed, stores the updated reference data in the file storage area, thereby updating the reference data.
7. 4. The information processing device according to claim 3, The control means When deleting a file in the file memory area of the storage device, an information processing device obtains reference data stored in the file memory area prior to deleting the file, deletes information related to the file to be deleted from a list of files contained in the reference data, updates the list of files, stores the updated reference data including the updated list of files in the file memory area, and then executes a deletion process for the file to be deleted.
8. 7. The information processing device according to claim 6, The control means An information processing device that, when updating the file list of the reference data, copies the reference data, updates the file list of the copied reference data, and stores the updated reference data with the updated file list in the file memory area.
9. An information processing device connected via a network to a storage device having a file storage area for storing files within the storage area, a means for transferring a file held in a holding means for holding a file to be transferred to the storage device to a temporary storage area generated in a storage area of the storage device and different from the file storage area; means for moving the file from said temporary storage area to said file storage area when the transfer of the file is completed; A program that functions as a
Citation Information
Patent Citations
Data movement program for storage device, data movement method, host device, data movement system, and storage device
JP2013167975A