WO2024041188A1 - 一种数据管理的方法及相应设备 - Google Patents
一种数据管理的方法及相应设备 Download PDFInfo
- Publication number
- WO2024041188A1 WO2024041188A1 PCT/CN2023/103675 CN2023103675W WO2024041188A1 WO 2024041188 A1 WO2024041188 A1 WO 2024041188A1 CN 2023103675 W CN2023103675 W CN 2023103675W WO 2024041188 A1 WO2024041188 A1 WO 2024041188A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- storage device
- local storage
- terminal device
- file
- metadata
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 102
- 238000013523 data management Methods 0.000 title claims abstract description 31
- 230000004044 response Effects 0.000 claims abstract description 6
- 238000007726 management method Methods 0.000 claims description 59
- 238000004590 computer program Methods 0.000 claims description 29
- 230000006854 communication Effects 0.000 claims description 23
- 238000004891 communication Methods 0.000 claims description 22
- 238000004458 analytical method Methods 0.000 claims description 15
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000001960 triggered effect Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 230000011664 signaling Effects 0.000 description 8
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000001934 delay Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
- G06F16/1824—Distributed file systems implemented using Network-attached Storage [NAS] architecture
- G06F16/1827—Management specifically adapted to NAS
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
Definitions
- This application relates to the field of storage technology, and specifically to a data management method and corresponding equipment.
- NAS network attached storage
- This application provides a data management method for improving the flexibility of data access on local storage devices.
- This application also provides corresponding equipment, systems, computer-readable storage media, computer program products, etc.
- a first aspect of this application provides a data management method, including: a first terminal device responds to a user's access operation to a target file through a first application, and obtains metadata of the target file; the target file is stored on a local storage device; The first application is different from the second application.
- the second application is an exclusive application of the local storage device installed on the first terminal device.
- the first terminal device stores metadata of the files stored on the local storage device; the first terminal The device sends an access request to the local storage device, and the access request includes metadata; the first terminal device receives the target file sent by the local storage device.
- the first terminal device may be a mobile phone, a tablet computer, a notebook computer, a personal computer, a smart TV, a smart wearable device, or other devices that can install applications (apps).
- a local storage device can be an independent device with storage functions, such as a network attached storage (NAS) device.
- NAS network attached storage
- the first application may be an application that can directly or indirectly access the local storage device, for example, it may be a system album management application, a file management application, or a third-party application.
- the second application refers to a dedicated application of the local storage device. Files on the local storage device can be accessed through the first application, files can be inserted into the local storage device, files on the local storage device can be modified, or files on the local storage device can be deleted. An initial connection between the first terminal device and the local storage device can be established through the second application, and the first terminal device is configured under the corresponding account recorded on the local storage device.
- you can also manage files on the regional storage device through the second application such as adding, deleting, modifying, querying and other management operations. You can also manage the regional storage device through the second application, such as playing games through the second application.
- the domain storage device is shut down or restarted, and the files are shared to the terminal devices of other family members through the second application.
- Metadata may be an index of a file or other information that can uniquely identify a file.
- the files in this application can be various types of data such as pictures, videos, audios, documents, etc.
- the first terminal device because the metadata of files stored on the local storage device is stored in the first terminal device, when the user searches for the target file stored on the local storage device through the first application, the first terminal device The target file can be searched from the local storage device through the metadata of the target file. The files on the local storage device can be queried without using a second application dedicated to the local storage device, which increases the need for local storage. Flexibility in equipment use.
- the first terminal device includes an application layer, a framework service layer and a storage layer; the application layer is configured with a first application and a second application; the storage layer is configured with distributed files, and the distributed files are provided for the application layer The ability to access local storage device files; the framework service layer is configured with an application calling interface, a metadata management module and a synchronization module.
- the application calling interface is the entrance for the first application to enter the framework service layer and is used to call the metadata management module.
- the data management module is used to manage the metadata of files stored on local storage devices.
- the synchronization module is logically connected to distributed files and performs file transfer with local storage devices.
- the first application calls the application calling interface to enter the framework service layer, and then the data transmission between the first terminal device and the local storage device can be realized through the metadata management module, distributed file and synchronization module. Without the user being aware of it, communication with the local storage device through the first application is achieved.
- the storage layer is also configured with local files, and the local files store files generated by the first terminal device; the metadata management module is also used to manage metadata of files stored in the local files.
- the metadata management module can manage files in local files and data in regional storage devices, realizing the management of data on the first terminal device and files on the local storage device. unified management.
- the framework service layer includes a file cache area, which is used to cache target files, or thumbnail information of files within a preset time period from the time when the target file is generated.
- the thumbnail information can be a thumbnail
- the file cache area can be used to cache the latest files generated or recently accessed by the user, as well as the thumbnail information of files in a similar time period, which can avoid Network delays and freezes improve user experience.
- the first metadata in the metadata management module includes identification information
- the first metadata is the metadata of the first file
- the identification information is used to indicate that the first file is stored on the first terminal device. , and stored on the local storage device.
- a piece of metadata can be used to manage the first file stored in both locations. By adding identification information to the first metadata, corresponding instructions can be given.
- This metadata fusion management method can reduce metadata redundancy.
- the first terminal device responds to the user's management operation on the first file, manages the first file on the first terminal device according to the identification information contained in the first metadata, and sends the response to the local storage device.
- the operation instructions are used by the local storage device to manage the first file stored on the local storage device.
- the storage can be managed according to an operation instruction.
- the first file on the first terminal device and the local storage device can avoid the inconsistency of multiple copies of the first file and improve the management accuracy of the same file.
- the first terminal device receives metadata of the changed files in the local storage device from the local storage device, and the changed files in the local storage device include at least one of the following: the second terminal device Newly generated files are files on the local storage device modified by the second terminal device, or files on the local storage device deleted by the second terminal device.
- the second terminal device and the first terminal device are in the local storage device.
- the device is associated with the same registered account; the first terminal device synchronously updates the metadata stored on the first terminal device according to the metadata of the changed file and the change instructions.
- the local storage device can synchronize the corresponding metadata to the first terminal device, so that The data of each terminal device under the same registered account can be kept synchronized.
- the method further includes: the first terminal device sending changed data in the first terminal device to the local storage device, where the changed data in the first terminal device includes at least one of the following: first The metadata of the files newly generated by the terminal device and the newly generated files, the metadata of the files on the local storage device and the modified files modified by the first terminal device, or the local storage device deleted by the first terminal device. Metadata of files on the storage device; changed files are used by the local storage device to synchronously update the files or/and metadata stored on the local storage device.
- newly generated files or modified or deleted files of the first terminal device will also be synchronized to the local storage device.
- the local storage device can also synchronize the metadata of the data changed by the first terminal device.
- the data of each terminal device under the same registered account can be kept synchronized.
- the method further includes: the first terminal device responds to the user's deletion operation of the second file, deleting the second file from the local file of the first terminal device, and the second file has been stored in the local area. on the storage device.
- files that have been stored in the local storage device can be deleted from the local files to release local storage space without affecting the user's experience of accessing the files through the first application.
- the method further includes: the first terminal device receiving an analysis result from the local storage device, where the analysis result is obtained by the local storage device analyzing the files on the local storage device.
- the local storage device is a user's private storage device and has strong computing power
- some automatic analysis can be performed on the local storage device. Based on these analysis results, users' data can be revitalized, making it easier for users to retrieve and manage these data.
- the local storage device not only provides storage space for the terminal device, but also supports computing power and saves the power of the terminal device.
- a second aspect of this application provides a data management method, including: a local storage device receiving an access request sent by a first terminal device, the access request being triggered by the first terminal device in response to a user's access operation to a target file through a first application.
- the target file is stored on the local storage device
- the first application is different from the second application
- the second application is an exclusive application of the local storage device installed on the first terminal device
- the access request includes metadata of the target file
- the domain storage device searches for the target file based on the access request and metadata; the local storage device sends the target file to the first terminal device.
- the method further includes: the local storage device sending metadata of the changed files in the local storage device to the first terminal device, and the changed files in the local storage device include at least one of the following: : Files newly generated by the second terminal device, files on the local storage device modified by the second terminal device, or files on the local storage device deleted by the second terminal device, the second terminal device and the first terminal The device is associated with the same registered account in the local storage device.
- the method further includes: the local storage device receiving changed data in the first terminal device sent by the first terminal device, where the changed data in the first terminal device includes at least one of the following: Metadata of files newly generated by a terminal device and newly generated files, metadata of files on a local storage device and modified files modified by the first terminal device, or files deleted by the first terminal device. Metadata of files on domain storage devices; local storage devices synchronize and update files or/and metadata stored on local storage devices based on changed files.
- the method further includes: the local storage device analyzes the files on the local storage device to obtain analysis results; and the local storage device sends the analysis results to the first terminal device.
- a third aspect of this application provides a terminal device for executing the method in the above first aspect or any possible implementation of the first aspect.
- the client includes modules or units for executing the method in the above-mentioned first aspect or any possible implementation of the first aspect, such as: a processing unit, a sending unit and a receiving unit.
- a fourth aspect of the present application provides a local storage device for executing the method in the above second aspect or any possible implementation of the second aspect.
- the local storage device includes modules or units for performing the method in the above second aspect or any possible implementation of the second aspect, such as: a receiving unit, a processing unit and a sending unit.
- the fifth aspect of the present application provides a terminal device, including a transceiver, a processor and a memory.
- the transceiver and the processor are coupled to the memory.
- the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the terminal The device performs the method in the foregoing first aspect or any possible implementation of the first aspect.
- a sixth aspect of this application provides a local storage device.
- the local storage device may include at least one processor, memory, and communication interface.
- the processor is coupled to memory and communication interfaces.
- the memory is used to store instructions
- the processor is used to execute the instructions
- the communication interface is used to communicate with other network elements under the control of the processor.
- the instruction causes the processor to execute the method of the second aspect or any possible implementation of the second aspect.
- the seventh aspect of this application provides a chip system, which includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory of the terminal device , and sends a signal to the processor, where the signal includes computer instructions stored in the memory; when the processor executes the computer instructions, the terminal device performs the method in the foregoing first aspect or any possible implementation of the first aspect.
- the eighth aspect of this application provides a chip system.
- the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to transfer memory from a local storage device to A signal is received and sent to the processor, where the signal includes computer instructions stored in the memory; when the processor executes the computer instructions, the local storage device performs the method in the aforementioned second aspect or any possible implementation of the second aspect.
- a ninth aspect of the present application provides a computer-readable storage medium on which a computer program or instructions are stored.
- the computer program or instructions When the computer program or instructions are run on a computer, the computer is caused to execute the aforementioned first aspect or any possible method of the first aspect. Methods in the implementation.
- a tenth aspect of the present application provides a computer-readable storage medium on which a computer program or instructions are stored.
- the computer program or instructions When the computer program or instructions are run on a computer, the computer is caused to perform the aforementioned second aspect or any possible method of the second aspect. Methods in the implementation.
- An eleventh aspect of the present application provides a computer program product.
- the computer program product includes a computer program code.
- the computer program code When executed on a computer, it causes the computer to execute the foregoing first aspect or any possible implementation of the first aspect. method in.
- a twelfth aspect of the present application provides a computer program product.
- the computer program product includes a computer program code.
- the computer program code When executed on a computer, it causes the computer to execute the aforementioned second aspect or any possible implementation of the second aspect. method in.
- a thirteenth aspect of the present application provides a data management system.
- the data management system includes a local storage device and a plurality of terminal devices.
- a first terminal device among the plurality of terminal devices is used to perform the aforementioned first aspect or the method of the first aspect.
- the method in any possible implementation manner, the local storage device is used to perform the method in the aforementioned second aspect or any possible implementation manner of the second aspect.
- Figure 1A is an architectural schematic diagram of a data management system provided by an embodiment of the present application.
- Figure 1B is an architectural schematic diagram of the data management system provided by an embodiment of the present application.
- Figure 2A is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- Figure 2B is a schematic structural diagram of a local storage device provided by an embodiment of the present application.
- Figure 3 is a schematic diagram of an embodiment of the data management method provided by the embodiment of the present application.
- FIG. 4 is another architectural schematic diagram of the data management system provided by the embodiment of the present application.
- FIG. 5 is another architectural schematic diagram of the data management system provided by the embodiment of the present application.
- Figure 6A is a schematic diagram of another embodiment of the data management method provided by the embodiment of the present application.
- Figure 6B is a schematic diagram of another embodiment of the data management method provided by the embodiment of the present application.
- FIG. 7A is a schematic diagram of a scenario example provided by an embodiment of the present application.
- Figure 7B is another schematic diagram of a scenario example provided by the embodiment of the present application.
- Figure 7C is another schematic diagram of a scene example provided by the embodiment of the present application.
- Figure 8 is an interface diagram of a terminal device provided by an embodiment of the present application.
- Figure 9 is a schematic diagram of another embodiment of the data management method provided by the embodiment of the present application.
- Figure 10 is another schematic structural diagram of a terminal device provided by an embodiment of the present application.
- Figure 11 is another schematic structural diagram of a local storage device provided by an embodiment of the present application.
- the embodiment of the present application provides a data management method for improving the flexibility of data access on a local storage device.
- This application also provides corresponding equipment, systems, computer-readable storage media, computer program products, etc. Each is explained in detail below.
- FIG. 1A is an architectural schematic diagram of a data management system provided by an embodiment of the present application.
- the data management system provided by the embodiment of the present application includes a local storage device and multiple terminal devices.
- the local storage device can communicate with each terminal device through the network, and the local storage device can also communicate with the cloud through the network. disk communication.
- the local storage device can be a server, a physical machine with storage function and certain computing power.
- the local storage device can also be understood as a network attached storage (network attached storage, NAS) device:
- NAS device is a special
- a data storage server generally consists of several parts such as hardware, operating system, and file system on it. NAS equipment has the characteristics of high capacity, high performance, and high reliability.
- local area storage refers to data storage within a certain user range, such as family storage, which only stores the data of several family members pre-registered on the local area storage device.
- NAS storage devices can be used, mainly for mass consumers. After users purchase them, they can place them at home and plug in the electricity to connect to the Internet. It supports multiple users to use a home storage device together, which can meet the normal use of a family or a certain number of users; the data between users is isolated from each other and encrypted for storage, and supports double backup to ensure the user's data security and privacy to the maximum extent.
- Local storage devices are private devices of users. In addition to having storage functions, they can also perform artificial intelligence (AI) analysis on user data, such as face clustering, text recognition, etc. In this way, local storage devices can By building a search model, we can revitalize user data and improve user experience.
- AI artificial intelligence
- the multiple terminal devices may be various types of terminal devices, such as: mobile phone, tablet computer, notebook computer, personal computer (personal computer, PC), hard disk, mobile Internet device (mobile internet device) device (MID), smart TV, smart wear, virtual reality (VR) equipment, augmented reality (AR) equipment, wireless electronic devices in industrial control (industrial control), self-driving (self-driving) Wireless electronic equipment in remote medical surgery, wireless terminal equipment in smart grid, wireless terminal equipment in transportation safety, and smart city Wireless terminal equipment, wireless terminal equipment in smart home, etc.
- the terminal device can be a device running Android system, IOS system, Windows system and other systems.
- the first terminal device among the plurality of terminal devices may run an application that can access the local storage device, such as a photo album management application, a file management application or a third-party application, and may also run a dedicated application for the local storage device.
- the first terminal device may be any terminal device that can install applications.
- FIG. 1A only illustrates several types as examples and should not be understood as limiting the types of terminal equipment.
- Figure 1A expresses the communication relationship between the terminal device and the local storage device through a general network form.
- the communication relationship between the terminal device and the local storage device can involve home scenarios and non-home scenarios, such as
- FIG 1B in a home scenario, wireless communication terminal devices (such as mobile phones, tablets) can communicate with local storage devices through home routing and switching devices, and other wired devices in the home (PCs, large screens (smart phones) The TV)) can communicate with the local storage device through the switching device.
- wireless communication terminal devices such as mobile phones, tablets
- base stations and core networks can be used to communicate with base stations and core networks.
- the cloud disk is a storage resource in the network.
- the cloud disk can be understood as a special type of terminal device similar to a hard disk.
- the structure of the terminal device provided by the embodiment of the present application can be understood by referring to Figure 2A below, and the structure of the local storage device can be understood by referring to Figure 2B below.
- the terminal device may include a processor 101, a transceiver 102, a memory 103, and a bus 104.
- the processor 101, the transceiver 102 and the memory 103 are connected to each other via a bus 104.
- the processor 101 is used to control and manage the actions of the terminal device 10.
- the processor 101 is used to respond to the user's operation and obtain metadata of the target file.
- the transceiver 102 is used to support the terminal device 10 to communicate.
- the transceiver 102 can perform the steps of sending an access request or receiving a target file.
- the memory 103 is used to store program codes and data of the terminal device 10 .
- the processor 101 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with this disclosure.
- the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on.
- the bus 104 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- FIG. 1 above introduces the structure of the terminal device.
- the structure of the local storage device will be introduced below in conjunction with Figure 2B.
- FIG. 2B is a schematic diagram of a possible logical structure of a local storage device provided by an embodiment of the present application.
- the local storage device 20 provided by the embodiment includes: a processor 201, a communication interface 202, a memory 203, and a bus 204.
- the processor 201, the communication interface 202 and the memory 203 are connected to each other through a bus 204.
- the processor 201 is used to control and manage the actions of the local storage device 20.
- the processor 201 is used to perform a target file search process.
- the communication interface 202 is used to support the local storage device 20 to communicate.
- the communication interface 202 can perform the steps of receiving an access request and sending a target file.
- Memory 203 is used to store program codes and data of the local storage device 20 .
- the processor 201 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with this disclosure.
- the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on.
- the bus 204 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- any terminal device that can install an application among multiple terminal devices can be called a first terminal device and can perform the following data management process.
- an embodiment of the data management method provided by the embodiment of the present application includes:
- the first terminal device responds to the user's access operation to the target file through the first application, and obtains the metadata of the target file.
- the target file is stored on the local storage device.
- the first application is different from the second application.
- the second application is an exclusive application of the local storage device installed on the first terminal device.
- the first terminal device stores the local storage device. Metadata for files stored on .
- the first application may be an application that can directly or indirectly access the local storage device, for example, it may be a system album management application, a file management application, or a third-party application.
- the second application refers to a dedicated application of the local storage device. Files on the local storage device can be accessed through the first application, files can be inserted into the local storage device, files on the local storage device can be modified, or files on the local storage device can be deleted. An initial connection between the first terminal device and the local storage device can be established through the second application, and the first terminal device is configured under the corresponding account recorded on the local storage device.
- you can also manage files on the regional storage device through the second application such as adding, deleting, modifying, querying and other management operations. You can also manage the regional storage device through the second application, such as playing games through the second application.
- the domain storage device is shut down or restarted, and the files are shared to the terminal devices of other family members through the second application.
- Metadata may be an index of a file or other information that can uniquely identify a file.
- Files can be various types of data such as pictures, videos, audios, documents, etc.
- the first terminal device sends an access request to the local storage device.
- the local storage device receives the access request.
- Access requests include metadata.
- the local storage device searches for the target file based on the access request and metadata.
- the local storage device sends the target file to the first terminal device.
- the first terminal device receives the target file sent by the local storage device.
- the first terminal device because the metadata of files stored on the local storage device is stored in the first terminal device, when the user searches for the target file stored on the local storage device through the first application, the first terminal device The target file can be searched from the local storage device through the metadata of the target file. The files on the local storage device can be queried without using a second application dedicated to the local storage device, which increases the need for local storage. Flexibility in equipment use.
- the internal structure of the terminal device and the local storage device can be divided into multiple layers to implement different functions.
- the terminal device can include an application layer, a framework service layer and a storage layer, where,
- the framework service layer includes data synchronization services for establishing connections with local storage devices.
- the application layer is used to configure applications, such as the first application and the second application, and the storage layer is used to store data.
- the local storage device may include a gateway, a data synchronization service module, a data management service module and a storage layer, where the gateway is used to establish a connection with the terminal device.
- the gateway is used to establish a connection with the terminal device.
- the data synchronization service module is used to interface with terminal devices and is responsible for data synchronization protocol interaction;
- the data management service module is used for data management of local storage devices;
- the storage layer is used to Data persistence storage.
- the network address can be converted between the terminal device and the local storage device through a Network Address Translation (NAT) device to complete the communication between the terminal device and the storage device.
- NAT Network Address Translation
- the connection between the terminal device and the local storage device can also be through The signaling server (Signal Server) or the relay server ((session traversal utilities NAT, STUN)/(traversal using relays around NAT, TURN)) communicates.
- a signaling server can be used to coordinate the communication process between the two and assist in establishing data transmission.
- collaborative information mainly includes session control messages, fault information, key information, network information, etc.
- the first terminal device may include an application layer, a framework service layer and a storage layer; the application layer is configured with a first application and a second application.
- the storage layer is configured with distributed files and local files.
- the distributed files provide the application layer with the ability to access local storage devices, and the local files store files generated by the first terminal device.
- the framework service layer is configured with an application calling interface, metadata management module and synchronization module.
- the application calling interface is the entrance for the first application to enter the framework service layer.
- the first terminal device can respond to the user's operation and enter the framework service layer by calling the application calling interface through the first application.
- the application calling interface may include a metadata access interface and a file management interface, where the metadata access interface is logically connected to the metadata management module, and the metadata management module can be called through the metadata access interface.
- the file management interface is logically connected to distributed files and local files. Files in local storage devices or local files can be managed through the file management interface, such as adding, deleting, modifying, etc.
- the metadata management module is used to manage the metadata of files stored on regional storage devices and the metadata of files stored in local files.
- the synchronization module may include a metadata synchronization module and a file synchronization module.
- the metadata management module can communicate with the metadata synchronization module in the synchronization module, and synchronize metadata to the local storage device through the metadata synchronization module, or receive metadata from the local storage device through the metadata synchronization module.
- the file synchronization module is logically connected to distributed files and can download files from local storage devices to distributed files or send files to local storage devices.
- the application calling interface may also include a file access interface, which can logically communicate with the distributed file, so that files downloaded from the local storage device in the distributed file can be accessed.
- the framework service layer can also include a file cache area.
- the file cache area is used to cache the target file, or the thumbnail information of the file within the preset time period when the target file is generated. If the file is a picture, the thumbnail information can be It is a thumbnail.
- the file cache area caches the latest files generated or accessed by users, as well as the thumbnail information of files in a similar time period. This can avoid network delays and freezes and improve user experience.
- the file access interface can logically communicate with the file cache area, so that quick access to newly generated files or recently accessed related files can be achieved.
- the first application calls the application calling interface to enter the framework service layer, and then through the metadata management module, distributed file and synchronization module, data transmission between the first terminal device and the local storage device can be realized without the user being present. In the case of sensing, communication with the local storage device through the first application is achieved.
- the metadata management module can use a piece of metadata to manage files stored both on the first terminal device and on the local storage device. In order to better indicate which files are stored on both the first terminal device and the local storage device, this can be achieved by adding identification information to the piece of metadata. In this way, if the first metadata in the metadata management module includes identification information, and the first metadata is the metadata of the first file, the identification information is used to indicate that the first file is both stored on the first terminal device and stored on the first terminal device. on a local storage device.
- the metadata fusion management method provided by the embodiments of the present application can reduce metadata redundancy.
- the embodiments of the present application provide that for a first file that is stored on both the first terminal device and the local storage device, when the user wants to operate the first file, the user can manage the first file stored in the first terminal device according to an operation instruction.
- the first terminal device and the first file on the local storage device The process may be that the first terminal device responds to the user's management operation on the first file and manages the first terminal device on the first terminal device according to the identification information contained in the first metadata.
- a file and sends the corresponding operation instruction to the first file to the local area storage device, and the operation instruction is used for the local area storage device
- the storage device manages the first file stored on the local storage device. In this way, inconsistency among multiple copies of the first file can be avoided, and the management accuracy of the same file can be improved.
- the second application can be understood as a front-end application of the local storage device, which is used for binding, configuring, and managing home storage devices, and can also be used for data viewing and management of home storage.
- multiple registered accounts can be stored on the local storage device, and each registered account can be associated with multiple terminal devices. Data can be exchanged between terminal devices associated with the same registered account through the local storage device. Synchronization, devices under different registered accounts cannot access files under other registered accounts. If a public storage area is set up on the local storage device, terminal devices under each registered account can access or execute files in the public storage area. Other management operations.
- the downlink data synchronization process for the first terminal device includes: one or more second terminal devices upload files and metadata of the file to the local storage device through the network. These files can be corresponding to the second terminal device. Files newly generated by the device.
- the local storage device will send the metadata of the files that are changed to the first terminal device in real time or periodically.
- the files that are changed in the local storage device include at least one of the following: files newly generated by the second terminal device, through the second terminal device Modified files on the local storage device, or files on the local storage device deleted through the second terminal device.
- the first terminal device can synchronously update the metadata stored on the first terminal device according to the metadata of the changed file and the change instruction.
- the local storage device can send the metadata of the above-mentioned changed file to the first terminal device multiple times through multiple signaling, and can give a change instruction in the corresponding signaling, for example: by inserting ) signaling to send metadata of a newly generated file, update (update) signaling to send the metadata of a file on the local storage device modified by the second terminal device, and deletion (delete) signaling to send the metadata of the file to the second terminal.
- Metadata for files on local storage devices deleted by the device can perform corresponding updates, such as: adding the metadata of the newly generated file to the corresponding metadata queue, and updating the modified metadata to The location of the original old metadata will be deleted from the metadata queue.
- the local storage device can synchronize the corresponding metadata to the first terminal device, so that it can be maintained
- the data of each terminal device under the same registered account is synchronized.
- the uplink data synchronization process for the first terminal device includes: the first terminal device sends the changed data in the first terminal device to the local storage device.
- the changed data in the first terminal device includes at least the following: One item: metadata of files newly generated by the first terminal device and newly generated files, metadata of files on the local storage device modified by the first terminal device and modified files, or, through the first terminal device.
- the metadata of the files on the local storage device deleted by the device; the changed files are used by the local storage device to synchronously update the files or/and metadata stored on the local storage device.
- the local storage device After the local storage device receives the changed data in the first terminal device sent by the first terminal device, it can refer to the process of synchronizing metadata to the first terminal device in Figure 6A and synchronize the corresponding metadata to other second terminal devices. , thereby keeping the data of each terminal device under the same registered account synchronized.
- the first terminal device is a mobile phone and the first application is a gallery.
- the user operates the camera to take a photo.
- the photo is a newly generated file, and the photo will be stored in the gallery.
- the mobile phone will send the photo and the metadata of the photo to the local storage device through an insert command, and the local storage device After receiving the insertion instruction, the photo will be stored and the metadata of the photo will be inserted into the metadata queue.
- the local storage device When the local storage device performs downlink synchronization, it will send the metadata of the photo to other terminal devices through the downlink synchronization process, so that other terminal devices can access or modify the photo.
- the first terminal device can compare the metadata of the files on the local storage device with the files local to the first terminal device. To manage metadata, if it is determined that the local storage device has passed through other terminals After the device uploads the file to be uploaded by the first terminal device, the first terminal device does not need to upload the file again, which avoids repeated uploading and saves network overhead.
- Downstream synchronization is divided into full synchronization and incremental synchronization. Only when the user turns on the synchronization switch between the first terminal device and the local storage device for the first time will full synchronization be triggered, that is, all metadata is downloaded from the local storage device to the local storage device of the first terminal device. ; After that, it is all incremental synchronization, and only the metadata of the newly changed files since the last synchronization is downloaded.
- the management of files uploaded by different terminal devices or the modification or deletion of stored files by local storage devices is usually based on the management instructions that occur later. For example, the user sends a request to the office through the first terminal device at an earlier time.
- the domain storage device sent a modification instruction to modify a certain file, and at a later time sent a deletion instruction to the local storage device through the second terminal device to delete the file, and the first terminal device and the second terminal device During scheduled synchronization, corresponding instructions are sent to the local storage device. Then the local storage device will delete the file based on the later deletion instruction.
- the data flow between various terminal devices is realized through the above data synchronization process, and the integration of the local storage device and the terminal device is realized.
- the local storage device is truly called the storage expansion of the terminal device. Users access files on the local storage device just like accessing local files on the terminal device.
- the first terminal device can respond to the user's deletion operation of the second file by deleting the second file from the local file of the first terminal device, and the second file has been stored on the local storage device.
- the file that has been stored in the local storage device is deleted from the local file, freeing up the local storage space without affecting the user's experience of accessing the file through the first application.
- a user purchases a local storage device
- he or she can establish a connection between the terminal device and the local storage device by downloading a second application exclusive to the local storage device.
- icon 801 is the entrance to a second application, through which the connection between the terminal device and the local storage device can be established.
- the following describes the working process between the local storage device and the terminal device starting from the startup of the local storage device.
- the data management process provided by the embodiment of the present application includes:
- the terminal device responds to the user's operations such as account authentication, device association, recording device information, adjusting device list and configuration through the second application, and establishes an association between the terminal device and the local storage device.
- This process can also be understood as the process in which users add terminal devices to local storage devices.
- the terminal device responds to the user operation, reads the configuration through the gallery application, guides the synchronization switch to be turned on, sets the synchronization range, and records the configuration.
- This process can be understood as the process in which the user turns on the data synchronization switch.
- the terminal device responds to the user's operation to trigger the data synchronization task, opens the gallery, and starts the synchronization process.
- the synchronization module in the terminal device reads the synchronization settings, establishes a data channel, and sends an authentication request to the local storage device.
- the local storage device establishes a session.
- the synchronization module in the terminal device reads the synchronization status information from the synchronization status memo of the media management service module.
- the media management service module in the embodiment of the present application may include the metadata management module in Figure 5.
- the synchronization module in the terminal device reads the synchronization status information of the data in the local storage device.
- the synchronization module determines whether the data in the local storage device has been changed. If so, step 909 is executed. If not, step 910 is executed.
- the synchronization module downloads the metadata of the changed files in the local storage device to the terminal device.
- the local storage device After receiving the file and metadata, the local storage device will update the synchronization status information of the data in the local storage device.
- the media management service module in the terminal device may also perform conflict processing.
- Conflict handling means that the metadata of the downloaded file already exists in the terminal device. In this case, the terminal device does not need to upload the file again.
- the media management service in the terminal device can add identification information to the metadata of the file in the metadata management module, indicating that the file exists both in the terminal device and in the local storage device.
- the terminal device responds to the user's picture search operation in the gallery application and obtains the metadata of the target picture.
- the terminal device obtains the target image from the local storage device or local file, and displays the target image.
- the terminal device responds to the user's management operation of the target picture in the gallery application.
- the terminal device records the change and manages the target image through the media management service module.
- the data management method and system have been introduced above.
- the terminal device and the local storage device in the embodiment of the present application will be introduced below with reference to the accompanying drawings.
- the terminal device can be understood as the first terminal device in the above method embodiment.
- an embodiment of a terminal device provided by an embodiment of the present application includes:
- the processing unit 1001 is configured to obtain the metadata of the target file in response to the user's access operation to the target file through the first application.
- the target file is stored on the local storage device.
- the first application is different from the second application.
- the second application is installed.
- the processing unit 1001 is used to perform step 301 in the above method embodiment.
- the sending unit 1002 is used to send an access request to the local storage device, where the access request includes metadata.
- the sending unit 1002 is used to perform step 302 in the above method embodiment.
- the receiving unit 1003 is used to receive the target file sent by the local storage device.
- the receiving unit 1003 is used to perform step 303 in the above method embodiment.
- the first terminal device stores metadata of files stored on the local storage device
- the first application when the user uses the first application to search for a target file stored on the local storage device, the first The terminal device can search for the target file from the local storage device through the metadata of the target file. It can query the files on the local storage device without using a second application exclusive to the local storage device, which increases the difficulty of the game. Flexibility in the use of domain storage devices.
- the first terminal device includes an application layer, a framework service layer and a storage layer; the application layer is configured with a first application and a second application; the storage layer is configured with distributed files, and the distributed files provide the application layer with access to local storage.
- the capabilities of the device; the framework service layer is configured with an application call interface, a metadata management module and a synchronization module.
- the application call interface is the entrance for the first application to enter the framework service layer and is used to call the metadata management module.
- the metadata management module is used to Manage the metadata of files stored on local storage devices.
- the synchronization module is logically connected to distributed files and performs file transfer with local storage devices.
- the storage layer is also configured with a local file, and the local file stores files generated by the first terminal device; the metadata management module is also used to manage metadata of the files stored in the local file.
- the framework service layer includes a file cache area, which is used to cache target files, or thumbnail information of files within a preset time period from the time when the target file is generated.
- the first metadata in the metadata management module includes identification information
- the first metadata is the metadata of the first file
- the identification information is used to indicate that the first file is both stored on the first terminal device and stored on the on a local storage device.
- the processing unit 1001 is also configured to respond to the user's management operation on the first file and manage the first file on the first terminal device according to the identification information contained in the first metadata.
- the sending unit 1002 is also configured to send corresponding operation instructions for the first file to the local storage device.
- the operation instructions are used by the local storage device to manage the first file stored on the local storage device.
- the receiving unit 1003 is also configured to receive metadata of files changed in the local storage device from the local storage device.
- the files changed in the local storage device include at least one of the following: the second terminal device new
- the generated file is a file on the local storage device modified by the second terminal device, or a file on the local storage device deleted by the second terminal device.
- the second terminal device and the first terminal device are on the local storage device. associated with the same registered account; the first terminal device is based on the metadata of the changed file, and Change instructions to synchronously update the metadata stored on the first terminal device.
- the sending unit 1002 is also configured to send the changed data in the first terminal device to the local storage device.
- the changed data in the first terminal device includes at least one of the following: a file newly generated by the first terminal device. metadata and newly generated files, metadata of files on the local storage device modified by the first terminal device and modified files, or metadata of files on the local storage device deleted by the first terminal device Metadata; changed files are used by the local storage device to synchronize and update the files or/and metadata stored on the local storage device.
- the processing unit 1001 is also configured to respond to the user's deletion operation on the second file, and delete the second file from the local file of the first terminal device, and the second file has been stored on the local storage device.
- the receiving unit 1003 is also configured to receive analysis results from the local storage device, where the analysis results are obtained by the local storage device analyzing files on the local storage device.
- each module in the terminal device introduced above can be understood by referring to the steps performed by the first terminal device in the above method embodiment.
- an embodiment of the local storage device provided by the embodiment of the present application includes:
- the receiving unit 1101 is configured to receive an access request sent by the first terminal device.
- the access request is triggered by the first terminal device in response to the user's access operation to the target file through the first application.
- the target file is stored on the local storage device.
- the first The application is different from the second application.
- the second application is a dedicated application of the local storage device installed on the first terminal device, and the access request includes metadata of the target file.
- the processing unit 1102 is used to search for the target file according to the access request and metadata.
- the sending unit 1103 is used to send the target file to the first terminal device.
- the sending unit 1103 is also configured to send metadata of the changed files in the local storage device to the first terminal device.
- the changed files in the local storage device include at least one of the following: the second terminal device new
- the generated file is a file on the local storage device modified by the second terminal device, or a file on the local storage device deleted by the second terminal device.
- the second terminal device and the first terminal device are on the local storage device. are associated with the same registered account.
- the receiving unit 1101 is also configured to receive changed data in the first terminal device sent by the first terminal device.
- the changed data in the first terminal device includes at least one of the following: newly generated by the first terminal device.
- processing unit 1102 is also used to analyze files on the local storage device to obtain analysis results.
- the sending unit 1103 is also used to send the analysis results to the first terminal device.
- each module in the local storage device introduced above can be understood by referring to the steps performed by the local storage device in the above method embodiment.
- the sending unit 1002 and the receiving unit 1003 of the above terminal device can be implemented by a transceiver.
- the receiving unit 1101 and the sending unit 1103 in the local storage device can be implemented through a communication interface.
- a computer-readable storage medium is also provided.
- Computer-executable instructions are stored in the computer-readable storage medium.
- the terminal device executes the above-mentioned Figure 1A Go to the steps performed by the terminal device in Figure 9.
- a computer-readable storage medium is also provided.
- Computer-executable instructions are stored in the computer-readable storage medium.
- the cloud device executes the above-mentioned Figure 1A Go to the steps performed by the local storage device in Figure 9.
- a computer program product is also provided.
- the computer program product includes a computer program code.
- the computer program code is executed on a computer, the computer device executes the tasks of the terminal device in FIGS. 1A to 9 . steps to perform.
- a computer program product is also provided.
- the computer program product includes computer program code.
- the computer program code When the computer program code is executed on a computer, the computer device performs the above-mentioned local storage in FIGS. 1A to 9 The steps performed by the device.
- a chip system in another embodiment of the present application, includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected through lines; the interface circuit is used to slave the terminal
- the device's memory receives the signal and sends it to the processor Send a signal, which includes computer instructions stored in the memory; when the processor executes the computer instructions, the terminal device performs the aforementioned steps performed by the first terminal device in FIGS. 1A to 9 .
- the chip system may also include a memory, which is used to save necessary program instructions and data for controlling the device.
- the chip system may be composed of chips, or may include chips and other discrete devices.
- a chip system in another embodiment of the present application, includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected through lines; the interface circuit is used for slave
- the memory of the domain storage device receives a signal and sends a signal to the processor.
- the signal includes computer instructions stored in the memory; when the processor executes the computer instructions, it performs the aforementioned steps performed by the local storage device in FIGS. 1A to 9 .
- the chip system may also include a memory, which is used to save necessary program instructions and data for controlling the device.
- the chip system may be composed of chips, or may include chips and other discrete devices.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
- the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
- the above-mentioned integrated units can be implemented in whole or in part through software, hardware, firmware, or any combination thereof.
- the integrated unit When the integrated unit is implemented using software, it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
- the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种数据管理的方法,包括:第一终端设备响应用户通过第一应用对目标文件的访问操作,获取目标文件的元数据,目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,第一终端设备中存储有局域存储设备上所存储文件的元数据;第一终端设备向局域存储设备发送访问请求,访问请求包括元数据;第一终端设备接收局域存储设备发送的目标文件。本申请提供的方案无需通过局域存储设备专属的第二应用,就可以对局域存储设备上的文件进行查询,增加了对局域存储设备使用的灵活性。
Description
本申请要求于2022年08月26日提交中国专利局、申请号为202211032724.5、发明名称为“一种数据管理的方法及相应设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及存储技术领域,具体涉及一种数据管理的方法及相应设备。
随着移动终端(手机、平板等)的普及,移动终端有限的存储空间不能满足用户对存储空间日益增长的需求。很多用户设备在使用2年后会出现存储空间不足的问题。
为了缓解该问题,部分用户会使用云存储(云盘)来备份数据,然而由于其成本较高经常被运营商限速、而且存在隐私泄露等问题,因而市面上开始出现网络附加存储(network attached storage,NAS)设备,由于NAS设备容量大、私密性较好、且属于用户私有设备,可以很好的满足用户对存储的需求。
但目前的NAS设备存储的数据用户只能通过移动终端上专属的NAS应用(app)才能访问,导致数据访问非常不便捷。
发明内容
本申请提供一种数据管理的方法,用于提高局域存储设备上数据访问的灵活性。本申请还提供了相应设备、系统、计算机可读存储介质以及计算机程序产品等。
本申请第一方面提供一种数据管理的方法,包括:第一终端设备响应用户通过第一应用对目标文件的访问操作,获取目标文件的元数据,目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,第一终端设备中存储有局域存储设备上所存储文件的元数据;第一终端设备向局域存储设备发送访问请求,访问请求包括元数据;第一终端设备接收局域存储设备发送的目标文件。
本申请中,第一终端设备可以为手机、平板电脑、笔记本电脑、个人计算机、智能电视、智能穿戴等可以安装应用(app)的设备。局域存储设备可以是具有存储功能的独立设备,如:网络附加存储(network attached storage,NAS)设备。
本申请中,第一应用可以是可以直接或间接访问局域存储设备的应用,例如可以为系统相册管理应用、文件管理应用或第三方应用。第二应用指的是局域存储设备的专属应用。可以通过第一应用访问局域存储设备上的文件或者向局域存储设备上插入文件、修改局域存储设备上的文件,或者删除局域存储设备上的文件。可以通过第二应用建立第一终端设备与局域存储设备之间的初始连接,将第一终端设备配置在局域存储设备上记录的相应账号下。当然,也可以通过第二应用管理局域存储设备上的文件、如:增加、删除、修改、查询等管理操作,还可以通过第二应用管理局域存储设备,如:通过第二应用对局域存储设备做关机或重启,通过第二应用将文件分享到其他家庭成员的终端设备。
本申请中,元数据可以是文件的索引或者其他能唯一标识文件的信息。本申请的文件可以是图片、视频、音频、文档等各种类型的数据。
本申请中,因为第一终端设备中存储有局域存储设备上所存储文件的元数据,这样,当用户通过第一应用要查找存储在局域存储设备上的目标文件时,第一终端设备就可以通过该目标文件的元数据从局域存储设备查找该目标文件,无需通过局域存储设备专属的第二应用,就可以对局域存储设备上的文件进行查询,增加了对局域存储设备使用的灵活性。
一种可能的实现方式中,第一终端设备包括应用层、框架服务层和存储层;应用层配置有第一应用和第二应用;存储层配置有分布式文件,分布式文件为应用层提供访问局域存储设备文件的能力;框架服务层配置有应用调用接口、元数据管理模块和同步模块,应用调用接口为第一应用进入框架服务层的入口,且用于调用元数据管理模块,元数据管理模块用于管理局域存储设备上所存储文件的元数据,同步模块与分布式文件逻辑连接,与局域存储设备进行文件传输。
该种可能的实现方式中,第一应用调用应用调用接口进入框架服务层,然后通过元数据管理模块、分布式文件和同步模块就可以实现第一终端设备与局域存储设备的数据传输,在用户不感知的情况下,就实现了通过第一应用与局域存储设备的通信。
一种可能的实现方式中,存储层还配置有本地文件,本地文件存储有第一终端设备产生的文件;元数据管理模块还用于管理本地文件中存储的文件的元数据。
该种可能的实现方式中,元数据管理模块即可以管理本地文件中的文件,又可以管理局域存储设备中的数据,实现了对第一终端设备上的数据和局域存储设备上的文件的统一管理。
一种可能的实现方式中,框架服务层包括文件缓存区,文件缓存区用于缓存目标文件,或者,与目标文件产生的时间在预设时间段内的文件的缩略信息。
该种可能的实现方式中,如果文件是图片,那么缩略信息可以是缩略图,通过文件缓存区缓存用户最新产生或最近访问的文件,以及相近时间段内的文件的缩略信息,可以避免网络延迟和卡顿,提升用户体验。
一种可能的实现方式中,元数据管理模块中的第一元数据包含标识信息,第一元数据为第一文件的元数据,标识信息用于指示第一文件既存储在第一终端设备上,又存储在局域存储设备上。
该种可能的实现方式中,当第一文件既在第一终端设备上有存储,又在局域存储设备上有存储时,可以通过一条元数据来管理两处存储的第一文件,只需要在该第一元数据上添加个标识信息就可以做出相应指示,这种元数据融合的管理方式可以减少元数据的冗余。
一种可能的实现方式中,第一终端设备响应用户对第一文件的管理操作,根据第一元数据包含的标识信息管理第一终端设备上的第一文件,并向局域存储设备发送对第一文件的相应操作指令,操作指令用于局域存储设备对局域存储设备上存储的第一文件进行管理。
该种可能的实现方式中,针对既在第一终端设备上有存储,又在局域存储设备上有存储的第一文件,当用户要操作该第一文件时,可以根据一个操作指令管理存储在第一终端设备和局域存储设备上的第一文件,这样可以避免该第一文件的多副本不一致,提高了对同一文件的管理准确度。
一种可能的实现方式中,第一终端设备从局域存储设备接收局域存储设备中发生变更的文件的元数据,局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过第二终端设备修改的局域存储设备上的文件,或者,通过第二终端设备删除的局域存储设备上的文件,第二终端设备与第一终端设备在局域存储设备中与同一注册账号关联;第一终端设备根据发生变更的文件的元数据,以及变更指示,对第一终端设备上存储的元数据进行同步更新。
该种可能的实现方式中,针对同一注册账号下其他终端产生的文件或者修改的文件,在同步到局域存储设备后,局域存储设备可以将相应的元数据同步给第一终端设备,这样可以保持同一注册账号下的各终端设备的数据同步。
一种可能的实现方式中,该方法还包括:第一终端设备向局域存储设备发送第一终端设备中发生变更的数据,第一终端设备中发生变更的数据包括如下至少一项:第一终端设备新产生的文件的元数据和新产生的文件,通过第一终端设备修改的局域存储设备上的文件的元数据和被修改后的文件,或者,通过第一终端设备删除的局域存储设备上的文件的元数据;发生变更的文件用于局域存储设备同步更新局域存储设备上存储的文件或/和元数据。
该种可能的实现方式中,第一终端设备新产生的文件或者修改、删除的文件也会同步给局域存储设备,局域存储设备也可以将该第一终端设备变更的数据的元数据同步给其他终端设备,可以保持同一注册账号下的各终端设备的数据同步。
一种可能的实现方式中,该方法还包括:第一终端设备响应用户对第二文件的删除操作,将第二文件从第一终端设备的本地文件中删除,第二文件已存储到局域存储设备上。
该种可能的实现方式中,可以将已经存储到局域存储设备的文件从本地文件中删除,释放本地的存储空间,而且不会影响用户通过第一应用对该文件的访问体验。
一种可能的实现方式中,该方法还包括:第一终端设备接收来自局域存储设备的分析结果,分析结果为局域存储设备分析局域存储设备上的文件得到的。
该种可能的实现方式中,因为局域存储设备属于用户私有存储设备、具有较强的算力,当用户的数据备份到局域存储设备后,可以在局域存储设备进行一些自动的分析,基于这些分析结果可以盘活用户的数据,方便用户检索和管理这些数据。这样,局域存储设备不仅为终端设备提供了存储空间,还做到了算力支撑,节省了终端设备电量。
本申请第二方面提供一种数据管理的方法,包括:局域存储设备接收第一终端设备发送的访问请求,访问请求是第一终端设备响应用户通过第一应用对目标文件的访问操作触发的,目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,访问请求包括目标文件的元数据;局域存储设备根据访问请求和元数据查找目标文件;局域存储设备向第一终端设备发送目标文件。
一种可能的实现方式中,该方法还包括:局域存储设备向第一终端设备发送局域存储设备中发生变更的文件的元数据,局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过第二终端设备修改的局域存储设备上的文件,或者,通过第二终端设备删除的局域存储设备上的文件,第二终端设备与第一终端设备在局域存储设备中与同一注册账号关联。
一种可能的实现方式中,该方法还包括:局域存储设备接收第一终端设备发送的第一终端设备中发生变更的数据,第一终端设备中发生变更的数据包括如下至少一项:第一终端设备新产生的文件的元数据和新产生的文件,通过第一终端设备修改的局域存储设备上的文件的元数据和被修改后的文件,或者,通过第一终端设备删除的局域存储设备上的文件的元数据;局域存储设备根据发生变更的文件同步更新局域存储设备上存储的文件或/和元数据。
一种可能的实现方式中,该方法还包括:局域存储设备分析局域存储设备上的文件得到分析结果;局域存储设备向第一终端设备发送分析结果。
本申请第三方面,提供了一种终端设备,用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该客户端包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的模块或单元,如:处理单元、发送单元和接收单元。
本申请第四方面,提供了一种局域存储设备,用于执行上述第二方面或第二方面的任意可能的实现方式中的方法。具体地,该局域存储设备包括用于执行上述第二方面或第二方面的任意可能的实现方式中的方法的模块或单元,如:接收单元、处理单元和发送单元。
本申请第五方面提供了一种终端设备,包括收发器、处理器和存储器,收发器和处理器与存储器耦合,存储器用于存储程序或指令,当程序或指令被处理器执行时,使得终端设备执行前述第一方面或第一方面的任意可能的实现方式中的方法。
本申请第六方面,提供了一种局域存储设备。该局域存储设备可以包括至少一个处理器、存储器和通信接口。处理器与存储器和通信接口耦合。存储器用于存储指令,处理器用于执行该指令,通信接口用于在处理器的控制下与其他网元进行通信。该指令在被处理器执行时,使处理器执行第二方面或第二方面的任意可能的实现方式中的方法。
本申请第七方面提供了一种芯片系统,该芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从终端设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,终端设备执行前述第一方面或第一方面的任意可能的实现方式中的方法。
本申请第八方面提供了一种芯片系统,该芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从局域存储设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,局域存储设备执行前述第二方面或第二方面的任意可能的实现方式中的方法。
本申请第九方面提供了一种计算机可读存储介质,其上存储有计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行前述第一方面或第一方面的任意可能的实现方式中的方法。
本申请第十方面提供了一种计算机可读存储介质,其上存储有计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行前述第二方面或第二方面的任意可能的实现方式中的方法。
本申请第十一方面提供了一种计算机程序产品,该计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上执行时,使得计算机执行前述第一方面或第一方面的任意可能的实现方式中的方法。
本申请第十二方面提供了一种计算机程序产品,该计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上执行时,使得计算机执行前述第二方面或第二方面的任意可能的实现方式中的方法。
本申请第十三方面提供一种数据管理系统,该数据管理系统包括局域存储设备和多个终端设备,多个终端设备中的第一终端设备用于执行前述第一方面或第一方面的任意可能的实现方式中的方法,该局域存储设备用于执行前述第二方面或第二方面的任意可能的实现方式中的方法。
其中,第二方面至第十三方面或者其中任一种可能实现方式所带来的技术效果可参见第一方面或第一方面不同可能实现方式所带来的技术效果,此处不再赘述。
图1A是本申请实施例提供的数据管理系统的一架构示意图;
图1B是本申请实施例提供的数据管理系统的一架构示意图;
图2A是本申请实施例提供的终端设备的一结构示意图;
图2B是本申请实施例提供的局域存储设备的一结构示意图;
图3是本申请实施例提供的数据管理的方法的一实施例示意图;
图4是本申请实施例提供的数据管理系统的另一架构示意图;
图5是本申请实施例提供的数据管理系统的另一架构示意图;
图6A是本申请实施例提供的数据管理的方法的另一实施例示意图;
图6B是本申请实施例提供的数据管理的方法的另一实施例示意图;
图7A是本申请实施例提供的一场景示例的一示意图;
图7B是本申请实施例提供的一场景示例的另一示意图;
图7C是本申请实施例提供的一场景示例的另一示意图;
图8是本申请实施例提供的一终端设备的一界面图;
图9是本申请实施例提供的数据管理的方法的另一实施例示意图;
图10是本申请实施例提供的终端设备的另一结构示意图;
图11是本申请实施例提供的局域存储设备的另一结构示意图。
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请实施例提供一种数据管理的方法,用于提高局域存储设备上数据访问的灵活性。本申请还提供了相应设备、系统、计算机可读存储介质以及计算机程序产品等。以下分别进行详细说明。
图1A为本申请实施例提供的数据管理系统的一架构示意图。
如图1A所示,本申请实施例提供的数据管理系统包括局域存储设备和多个终端设备,局域存储设备可以通过网络与每个终端设备通信,局域存储设备还可以通过网络与云盘通信。
本申请实施例中,局域存储设备可以是服务器,具有存储功能和一定计算能力的物理机,也可以将该局域存储设备理解为是网络附加存储(network attached storage,NAS)设备:NAS设备是一种专用
的数据存储服务器,一般由硬件、操作系统以及其上的文件系统等几个部分组成。NAS设备具备高容量、高效能、高可靠等特征。
本申请实施例中,局域存储指的是对一定用户范围内的数据存储,如:家庭存储,只存储预先注册在局域存储设备上的几个家庭成员的数据。可以使用NAS存储设备,主要面向大众消费者,用户购买后放置在家中,插上电连网即可使用。支持多用户共同使用一台家庭存储设备,能满足一个家庭或一定数量的用户正常使用;用户间的数据彼此隔离和加密存储,支持双备份,最大限度的保证用户的数据安全和隐私。局域存储设备属于用户私有设备,除了具有存储功能外,还可以对用户的数据进行人工智能(artificial intelligence,AI)分析,如:人脸聚类、文本识别等,这样,局域存储设备可以通过构建搜索模型,盘活用户的数据,提高用户的使用体验。
本申请实施例中,多个终端设备可以是各种类型的终端设备,如:手机(mobile phone)、平板电脑、笔记本电脑、个人计算机(personal computer,PC)、硬盘、移动互联网设备(mobile internet device,MID)、智能电视、智能穿戴,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线电子设备、无人驾驶(self driving)中的无线电子设备、远程手术(remote medical surgery)中的无线电子设备、智能电网(smart grid)中的无线终端设备、运输安全(transportation safety)中的无线终端设备、智慧城市(smart city)中的无线终端设备、智慧家庭(smart home)中的无线终端设备等。该终端设备可以是运行安卓系统、IOS系统、windows系统以及其他系统的设备。在多个终端设备中的第一终端设备可以运行有可以访问局域存储设备的应用,如:相册管理应用、文件管理应用或第三方应用,还运行有局域存储设备的专属应用。该第一终端设备可以是任一可以安装应用的终端设备。
图1A中只是示意出了几种作为示例性说明,并不应理解是对终端设备的类型的限定。
图1A中通过一个概括的网络形式表达了终端设备与局域存储设备之间的通信关系,实际上,终端设备与局域存储设备之间的通信关系可以涉及到家庭场景和非家庭场景,如图1B所示,在家庭场景中,无线通信的终端设备(如:手机、平板电脑)可以通过家庭路由和交换设备与局域存储设备通信,家庭中的其他有线设备(PC、大屏(智慧电视))可以通过交换设备与局域存储设备通信。当用户不在家时,即非家庭场景时,无线通信的终端设备(如:手机、平板电脑)可以通过基站和核心网络与局域存储设备通信。
本申请实施例中,云盘是网络中的存储资源,在与本申请相关的内容中,可以将云盘理解为类似于硬盘的一种特殊类型的终端设备。
本申请实施例提供的终端设备的结构可以参阅如下图2A进行理解,局域存储设备的结构可以参阅如下图2B进行理解。
请参考图2A,为本申请实施例提供的一种终端设备的结构示意图。如图2A所示,终端设备可以包括处理器101、收发器102、存储器103以及总线104。处理器101、收发器102以及存储器103通过总线104相互连接。在本申请的实施例中,处理器101用于对终端设备10的动作进行控制管理,例如,处理器101用于响应用户的操作,获取目标文件的元数据。收发器102用于支持终端设备10进行通信,例如:收发器102可以执行访问请求发送或目标文件接收的步骤。存储器103,用于存储终端设备10的程序代码和数据。
其中,处理器101可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线104可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2A中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
以上图2A介绍了终端设备的结构,下面结合图2B介绍局域存储设备的结构。
图2B为本申请的实施例提供的局域存储设备的一种可能的逻辑结构示意图。如图2B所示,本申请
实施例提供的局域存储设备20包括:处理器201、通信接口202、存储器203以及总线204。处理器201、通信接口202以及存储器203通过总线204相互连接。在本申请的实施例中,处理器201用于对局域存储设备20的动作进行控制管理,例如,处理器201用于执行目标文件查找的过程。通信接口202用于支持局域存储设备20进行通信,例如:通信接口202可以执行访问请求接收和目标文件发送的步骤。存储器203,用于存储局域存储设备20的程序代码和数据。
其中,处理器201可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线204可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本申请实施例中,多个终端设备中可以安装应用的任一终端设备可以称为第一终端设备,可以执行如下数据管理的过程。
如图3所示,本申请实施例提供的数据管理的方法的一实施例包括:
301.第一终端设备响应用户通过第一应用对目标文件的访问操作,获取目标文件的元数据。
目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,第一终端设备中存储有局域存储设备上所存储文件的元数据。
本申请实施例中,第一应用可以是可以直接或间接访问局域存储设备的应用,例如可以为系统相册管理应用、文件管理应用或第三方应用。第二应用指的是局域存储设备的专属应用。可以通过第一应用访问局域存储设备上的文件或者向局域存储设备上插入文件、修改局域存储设备上的文件,或者删除局域存储设备上的文件。可以通过第二应用建立第一终端设备与局域存储设备之间的初始连接,将第一终端设备配置在局域存储设备上记录的相应账号下。当然,也可以通过第二应用管理局域存储设备上的文件、如:增加、删除、修改、查询等管理操作,还可以通过第二应用管理局域存储设备,如:通过第二应用对局域存储设备做关机或重启,通过第二应用将文件分享到其他家庭成员的终端设备。
本申请实施例中,元数据可以是文件的索引或者其他能唯一标识文件的信息。文件可以是图片、视频、音频、文档等各种类型的数据。
302.第一终端设备向局域存储设备发送访问请求。对应地,局域存储设备接收访问请求。
访问请求包括元数据。
303.局域存储设备根据访问请求和元数据查找目标文件。
304.局域存储设备向第一终端设备发送目标文件。对应地,第一终端设备接收局域存储设备发送的目标文件。
本申请中,因为第一终端设备中存储有局域存储设备上所存储文件的元数据,这样,当用户通过第一应用要查找存储在局域存储设备上的目标文件时,第一终端设备就可以通过该目标文件的元数据从局域存储设备查找该目标文件,无需通过局域存储设备专属的第二应用,就可以对局域存储设备上的文件进行查询,增加了对局域存储设备使用的灵活性。
本申请实施例中,终端设备与局域存储设备在内部结构上可以划分为多层,实现不同的功能,如图4所示,终端设备可以包括应用层、框架服务层和存储层,其中,框架服务层包括数据同步服务,用于与局域存储设备建立连接。应用层用于配置应用,如:第一应用和第二应用,存储层用于存储数据。
局域存储设备可以包括网关、数据同步服务模块、数据管理服务模块和存储层,其中,网关用于建立与终端设备的连接。提供终端设备与局域存储设备之间的数据传递的通道;数据同步服务模块用于与终端设备对接,负责数据同步协议交互;数据管理服务模块用于局域存储设备数据管理;存储层用于数据持久化存储。
终端设备和局域存储设备之间可以通过网络地址转换(Network Address Translation,NAT)设备转换网络地址,完成终端设备和具有存储设备之间的通信。终端设备和局域存储设备之间也可以是通过
信令服务器(Signal Server)或中转服务器((session traversal utilities NAT,STUN)/(traversal using relays around NAT,TURN))进行通信。
由于局域存储设备通常位于家庭私有网络,通常不具备独立的公网IP,为了建立家庭存储与移动终端间的点对点通信,可以通过信令服务器用于协调两者间通信过程,协助建立数据传输通道,协同的信息主要包括会话控制消息、故障信息、密钥信息以及网络信息等。协商完成后,终端设备可以尝试打洞,穿越NAT,建立与局域存储设备间的直接通信通道;若打洞失败,需要STURN/TURN用作中转服务器。
本申请实施例中,如图5所示,第一终端设备可以包括应用层、框架服务层和存储层;应用层配置有第一应用和第二应用。存储层配置有分布式文件和本地文件,分布式文件为应用层提供访问局域存储设备的能力,本地文件存储有第一终端设备产生的文件。框架服务层配置有应用调用接口、元数据管理模块和同步模块。
其中,应用调用接口为第一应用进入框架服务层的入口,在用户操作第一应用时,第一终端设备可以响应用户的操作,通过第一应用调用应用调用接口进入框架服务层。第一应用可以有多个,每个第一应用在运行时都可以调用应用调用接口进入框架服务层。
应用调用接口可以包括元数据访问接口和文件管理接口,其中,元数据访问接口与元数据管理模块逻辑连接,可以通过该元数据访问接口调用元数据管理模块。文件管理接口与分布式文件和本地文件逻辑连接,可以通过文件管理接口对局域存储设备或本地文件中的文件进行管理,如:增加、删除、修改等操作。
元数据管理模块用于管理局域存储设备上所存储文件的元数据,以及本地文件中存储的文件的元数据。
同步模块可以包括元数据同步模块和文件同步模块。
元数据管理模块可以与同步模块中的元数据同步模块通信,通过该元数据同步模块向局域存储设备同步元数据,或者,通过该元数据同步模块从局域存储设备接收元数据。
文件同步模块与分布式文件逻辑连接,可以实现从局域存储设备下载文件到分布式文件或者向局域存储设备发送文件。
应用调用接口还可以包括文件访问接口,文件访问接口可以与分布式文件逻辑通信,这样,就可以访问到分布式文件中从局域存储设备下载的文件。
框架服务层还可以包括文件缓存区,文件缓存区用于缓存目标文件,或者,与目标文件产生的时间在预设时间段内的文件的缩略信息,如果文件是图片,那么缩略信息可以是缩略图,通过文件缓存区缓存用户最新产生或最近访问的文件,以及相近时间段内的文件的缩略信息,可以避免网络延迟和卡顿,提升用户体验。
文件访问接口可以与文件缓存区逻辑通信,这样可以实现对新产生文件或最近访问的相关文件的快速访问。
本申请实施例中,第一应用调用应用调用接口进入框架服务层,然后通过元数据管理模块、分布式文件和同步模块就可以实现第一终端设备与局域存储设备的数据传输,在用户不感知的情况下,就实现了通过第一应用与局域存储设备的通信。
上述图5中,元数据管理模块可以使用一条元数据管理既存储在第一终端设备上,又存储在局域存储设备上的文件。为了更好的指示哪些文件既存储在第一终端设备上,又存储在局域存储设备上,可以通过在该条元数据上加标识信息的方式来实现。这样,如果元数据管理模块中的第一元数据包含标识信息,第一元数据为第一文件的元数据,标识信息就用于指示第一文件既存储在第一终端设备上,又存储在局域存储设备上。
本申请实施例提供的这种元数据融合的管理方式可以减少元数据的冗余。
本申请实施例提供中,针对既在第一终端设备上有存储,又在局域存储设备上有存储的第一文件,当用户要操作该第一文件时,可以根据一个操作指令管理存储在第一终端设备和局域存储设备上的第一文件,该过程可以是第一终端设备响应用户对第一文件的管理操作,根据第一元数据包含的标识信息管理第一终端设备上的第一文件,并向局域存储设备发送对第一文件的相应操作指令,操作指令用于局域
存储设备对局域存储设备上存储的第一文件进行管理。这样可以避免该第一文件的多副本不一致,提高了对同一文件的管理准确度。
本申请实施例中,第二应用可以理解为是局域存储设备的前端应用,用于家庭存储设备绑定、配置、管理等,也可以用于家庭存储的数据查看和管理。
本申请实施例中,局域存储设备上可以存储有多个注册账号,每个注册账号下可以关联多个终端设备,关联在同一注册账号下的终端设备之间可以通过局域存储设备进行数据同步,不同注册账号下的设备不可以访问其他注册账号下的文件,如果局域存储设备上设置有公共存储区域,针对公共存储区域的文件,每个注册账号下的终端设备都可以访问或者执行其他管理操作。
下面结合附图对同一注册账号下的局域存储设备,以及多个终端设备之间的数据同步过程进行说明。
如图6A所示,针对第一终端设备的下行数据同步过程包括:一个或多个第二终端设备通过网络向局域存储设备上传文件和该文件的元数据,这些文件可以是相应第二终端设备新产生的文件。局域存储设备会实时或周期性向第一终端设备发生变更的文件的元数据,局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过第二终端设备修改的局域存储设备上的文件,或者,通过第二终端设备删除的局域存储设备上的文件。第一终端设备可以根据发生变更的文件的元数据,以及变更指示,对第一终端设备上存储的元数据进行同步更新。
需要说明的是,局域存储设备可以通过多个信令分多次向第一终端设备发送上述发生变更的文件的元数据,可以在相应信令中给出变更指示,例如:通过插入(insert)信令发送新产生的文件的元数据,通过更新(update)信令发送通过第二终端设备修改的局域存储设备上的文件的元数据,通过删除(delete)信令发送通过第二终端设备删除的局域存储设备上的文件的元数据。这样,第一终端设备接收到相应的信令和元数据后,就可以进行相应的更新,如:将新产生的文件的元数据添加到相应的元数据队列中,将修改的元数据更新到原来旧的元数据的位置,将需要删除的元数据从元数据队列中删除。
本申请实施例中,针对同一注册账号下其他终端产生的文件或者修改的文件,在同步到局域存储设备后,局域存储设备可以将相应的元数据同步给第一终端设备,这样可以保持同一注册账号下的各终端设备的数据同步。
如图6B所示,针对第一终端设备的上行数据同步过程包括:第一终端设备向局域存储设备发送第一终端设备中发生变更的数据,第一终端设备中发生变更的数据包括如下至少一项:第一终端设备新产生的文件的元数据和新产生的文件,通过第一终端设备修改的局域存储设备上的文件的元数据和被修改后的文件,或者,通过第一终端设备删除的局域存储设备上的文件的元数据;发生变更的文件用于局域存储设备同步更新局域存储设备上存储的文件或/和元数据。
局域存储设备接收到第一终端设备发送的第一终端设备中发生变更的数据后,可以参考上述图6A向第一终端设备同步元数据的过程,向其他第二终端设备同步相应的元数据,从而使同一注册账号下的各个终端设备的数据保持同步。
为了更好的理解上述数据同步的过程,本申请实施例中,以第一终端设备是手机,第一应用是图库为例进行说明,如图7A所示,用户操作相机拍下了一张照片,该照片为新产生的文件,该照片会存储在图库中。若用户通过图7B操作图库,要将该照片上传到局域存储设备中,则该手机会将该照片和该照片的元数据通过插入(insert)指令发送给局域存储设备,局域存储设备接收到该插入指令后,会存储该照片,并将该照片的元数据插入元数据队列中。
局域存储设备在进行下行同步时,会通过下行同步过程将该照片的元数据发送给其他终端设备,这样,其他终端设备就可以访问或修改该照片。
如图7C所示,用户想通过平板电脑上的“即时通信应用A”访问该照片,则可以通过该“即时通信应用A”调用应用调用接口,执行前面图5所介绍的过程,各模块之间协同,将该照片下载到平板电脑上。
本申请实施例中,数据下行同步时通常只同步元数据或者部分缩略信息,而上行同步通常会上传文件,所以下行同步耗时较少,通常会先进行下行同步,再进行上行同步。这样下行同步后就可以使用户可以及时查看和浏览局域存储设备上的文件,而且,下行同步时,第一终端设备可以将局域存储设备上文件的元数据与第一终端设备本地的文件的元数据进行管理,若确定局域存储设备上已经通过其他终端
设备上传了第一终端设备要上传的文件后,第一终端设备就不需要再上传该文件了,这样可以避免重复上传,节省了网络开销。
下行同步又分为全量同步和增量同步,用户首次开启第一终端设备和局域存储设备的同步开关,才会触发全量同步,即从局域存储设备下载全部元数据到第一终端设备本地;之后都是增量同步,仅下载自上次同步后到当前新产生变更的文件的元数据。
局域存储设备针对不同终端设备上传的文件或者对已经存储的文件的修改或者删除的管理,通常以发生在后的管理指令为准,如:用户通过第一终端设备在较前的时间向局域存储设备发送了修改指令,要修改某一文件,在稍晚的时间又通过第二终端设备向局域存储设备发送了删除指令,要删除该文件,而第一终端设备和第二终端设备在定时同步时,都向局域存储设备发送了相应的指令,那么局域存储设备以时间点较晚的删除指令为准,会删除该文件。
本申请实施例中,通过上述数据同步过程实现了数据在各个终端设备之间的流转,而且实现了局域存储设备与终端设备的融合,局域存储设备真正的称为了终端设备的存储扩展,用户访问局域存储设备上的文件就像访问终端设备本地文件一样。
通过上述同步过程可知,本申请的方案实现了一端新增多端可见,一端修改多端同步,而且通过数据同步,可以将终端设备上的文件都备份到局域存储设备上,即使终端设备故障或丢失,该终端设备上的文件也不会丢失。
另外,本申请实施例中,第一终端设备可以响应用户对第二文件的删除操作,将第二文件从第一终端设备的本地文件中删除,第二文件已存储到局域存储设备上。这样,将已经存储到局域存储设备的文件从本地文件中删除,释放本地的存储空间,而且不会影响用户通过第一应用对该文件的访问体验。
本申请实施例中,用户购买局域存储设备后,可以通过下载该局域存储设备专属的第二应用建立终端设备与局域存储设备之间的联系。
如图8所示,图标801为第二应用的入口,可以通过该第二应用建立终端设备与局域存储设备之间的联系。
下面从局域存储设备启动开始描述局域存储设备与终端设备之间的工作过程。
以第一应用是“图库”应用为例进行说明,如图9所示,本申请实施例提供的数据管理的过程包括:
901.终端设备响应用户通过第二应用进行账号认证、设备关联、记录设备信息、调整设备列表和配置等操作,建立终端设备与局域存储设备的关联。
该过程也可以理解为是用户为局域存储设备添加终端设备的过程。
902.终端设备响应用户操作,通过图库应用读取配置、引导开启同步开关、设置同步范围、记录配置。
该过程可以理解为是用户开启数据同步开关的过程。
903.终端设备响应用户触发数据同步任务的操作,打开图库,启动同步过程。
904.终端设备中的同步模块读取同步设置、建立数据通道,向局域存储设备发送认证请求。
905.局域存储设备建立会话。
即完成了与终端设备的同步模块的数据通道的建立过程。
906.终端设备中的同步模块从媒体管理服务模块的同步状态备忘录中读取同步状态信息。
本申请实施例中的媒体管理服务模块可以包括前面图5中的元数据管理模块。
907.终端设备中的同步模块读取局域存储设备中数据的同步状态信息。
908.同步模块确定局域存储设备中的数据是否有变更,若是,则执行步骤909,若否,则执行步骤910。
909.若有变更,同步模块下载局域存储设备中发生变更的文件的元数据到终端设备。
910.若没有变更,确定终端设备上是否有待上传数据,若是,执行步骤911,若否,执行步骤912。
911.上传终端设备上变更的文件和元数据到局域存储设备。
912.更新同步状态备忘录中的同步位置,然后结束同步过程。
913.局域存储设备在接收到文件和元数据后,会更新局域存储设备中数据的同步状态信息。
914.在步骤909之后,终端设备中的媒体管理服务模块还可能会进行冲突处理。
冲突处理指的是下载的文件的元数据已经在终端设备中存在,这种情况下则不需要终端设备再上传该文件。
915.终端设备中的媒体管理服务可以在元数据管理模块中针对该文件的元数据添加标识信息,指示该文件既在终端设备中存在,又在局域存储设备中存在。
916.终端设备响应用户在图库应用中的图片查找操作,获取目标图片的元数据。
917.终端设备从局域存储设备或者本地文件获取到目标图片,并显示目标图片。
918.终端设备响应用户在图库应用中对目标图片的管理操作。
919.终端设备记录变更,并通过媒体管理服务模块对该目标图片进行管理。
如果有的应用无权修改或删除图库中的图片,只有访问的权限,那么该过程可以参阅917和918进行理解。
以上介绍了数据管理的方法及系统,下面结合附图介绍本申请实施例中的终端设备和局域存储设备。该终端设备可以理解为是上述方法实施例中的第一终端设备。
如图10所示,本申请实施例提供的终端设备的一实施例包括:
处理单元1001,用于响应用户通过第一应用对目标文件的访问操作,获取目标文件的元数据,目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,第一终端设备中存储有局域存储设备上所存储文件的元数据。该处理单元1001用于执行上述方法实施例中的步骤301。
发送单元1002,用于向局域存储设备发送访问请求,访问请求包括元数据。该发送单元1002用于执行上述方法实施例中的步骤302。
接收单元1003,用于接收局域存储设备发送的目标文件。该接收单元1003用于执行上述方法实施例中的步骤303。
本申请实施例中,因为第一终端设备中存储有局域存储设备上所存储文件的元数据,这样,当用户通过第一应用要查找存储在局域存储设备上的目标文件时,第一终端设备就可以通过该目标文件的元数据从局域存储设备查找该目标文件,无需通过局域存储设备专属的第二应用,就可以对局域存储设备上的文件进行查询,增加了对局域存储设备使用的灵活性。
可选地,第一终端设备包括应用层、框架服务层和存储层;应用层配置有第一应用和第二应用;存储层配置有分布式文件,分布式文件为应用层提供访问局域存储设备的能力;框架服务层配置有应用调用接口、元数据管理模块和同步模块,应用调用接口为第一应用进入框架服务层的入口,且用于调用元数据管理模块,元数据管理模块用于管理局域存储设备上所存储文件的元数据,同步模块与分布式文件逻辑连接,与局域存储设备进行文件传输。
可选地,存储层还配置有本地文件,本地文件存储有第一终端设备产生的文件;元数据管理模块还用于管理本地文件中存储的文件的元数据。
可选地,框架服务层包括文件缓存区,文件缓存区用于缓存目标文件,或者,与目标文件产生的时间在预设时间段内的文件的缩略信息。
可选地,元数据管理模块中的第一元数据包含标识信息,第一元数据为第一文件的元数据,标识信息用于指示第一文件既存储在第一终端设备上,又存储在局域存储设备上。
可选地,处理单元1001,还用于响应用户对第一文件的管理操作,根据第一元数据包含的标识信息管理第一终端设备上的第一文件。
发送单元1002,还用于向局域存储设备发送对第一文件的相应操作指令,操作指令用于局域存储设备对局域存储设备上存储的第一文件进行管理。
可选地,接收单元1003,还用于从局域存储设备接收局域存储设备中发生变更的文件的元数据,局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过第二终端设备修改的局域存储设备上的文件,或者,通过第二终端设备删除的局域存储设备上的文件,第二终端设备与第一终端设备在局域存储设备中与同一注册账号关联;第一终端设备根据发生变更的文件的元数据,以及
变更指示,对第一终端设备上存储的元数据进行同步更新。
可选地,发送单元1002,还用于向局域存储设备发送第一终端设备中发生变更的数据,第一终端设备中发生变更的数据包括如下至少一项:第一终端设备新产生的文件的元数据和新产生的文件,通过第一终端设备修改的局域存储设备上的文件的元数据和被修改后的文件,或者,通过第一终端设备删除的局域存储设备上的文件的元数据;发生变更的文件用于局域存储设备同步更新局域存储设备上存储的文件或/和元数据。
可选地,处理单元1001,还用于响应用户对第二文件的删除操作,将第二文件从第一终端设备的本地文件中删除,第二文件已存储到局域存储设备上。
可选地,接收单元1003,还用于接收来自局域存储设备的分析结果,分析结果为局域存储设备分析局域存储设备上的文件得到的。
以上所介绍的终端设备中各模块的功能可以参阅上述方法实施例中第一终端设备所执行的步骤进行理解。
如图11所示,本申请实施例提供的局域存储设备的一实施例包括:
接收单元1101,用于接收第一终端设备发送的访问请求,访问请求是第一终端设备响应用户通过第一应用对目标文件的访问操作触发的,目标文件存储在局域存储设备上,第一应用与第二应用不同,第二应用为安装在第一终端设备上的局域存储设备的专属应用,访问请求包括目标文件的元数据。
处理单元1102,用于根据访问请求和元数据查找目标文件。
发送单元1103,用于向第一终端设备发送目标文件。
可选地,发送单元1103,还用于向第一终端设备发送局域存储设备中发生变更的文件的元数据,局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过第二终端设备修改的局域存储设备上的文件,或者,通过第二终端设备删除的局域存储设备上的文件,第二终端设备与第一终端设备在局域存储设备中与同一注册账号关联。
可选地,接收单元1101,还用于接收第一终端设备发送的第一终端设备中发生变更的数据,第一终端设备中发生变更的数据包括如下至少一项:第一终端设备新产生的文件的元数据和新产生的文件,通过第一终端设备修改的局域存储设备上的文件的元数据和被修改后的文件,或者,通过第一终端设备删除的局域存储设备上的文件的元数据;局域存储设备根据发生变更的文件同步更新局域存储设备上存储的文件或/和元数据。
可选地,处理单元1102,还用于分析局域存储设备上的文件得到分析结果。
发送单元1103,还用于向第一终端设备发送分析结果。
以上所介绍的局域存储设备中各模块的功能可以参阅上述方法实施例中局域存储设备所执行的步骤进行理解。
需要说明的是,上述终端设备的发送单元1002和接收单元1003可以通过收发器来实现。局域存储设备中的接收单元1101和发送单元1103可以通过通信接口来实现。
在本申请的另一实施例中,还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当终端的处理器执行该计算机执行指令时,终端设备执行上述图1A至图9中终端设备所执行的步骤。
在本申请的另一实施例中,还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当终端的处理器执行该计算机执行指令时,云设备执行上述图1A至图9中局域存储设备所执行的步骤。
在本申请的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上执行时,计算机设备执行上述图1A至图9中终端设备所执行的步骤。
在本申请的另一实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上执行时,计算机设备执行上述图1A至图9中局域存储设备所执行的步骤。
在本申请的另一实施例中,还提供一种芯片系统,该芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从终端设备的存储器接收信号,并向处理器
发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,终端设备执行前述上述图1A至图9中第一终端设备所执行的步骤。在一种可能的设计中,芯片系统还可以包括存储器,存储器,用于保存控制设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
在本申请的另一实施例中,还提供一种芯片系统,该芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从局域存储设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,执行前述上述图1A至图9中局域存储设备所执行的步骤。在一种可能的设计中,芯片系统还可以包括存储器,存储器,用于保存控制设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。
当使用软件实现所述集成的单元时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
Claims (20)
- 一种数据管理的方法,其特征在于,包括:第一终端设备响应用户通过第一应用对目标文件的访问操作,获取所述目标文件的元数据,所述目标文件存储在局域存储设备上,所述第一应用与第二应用不同,所述第二应用为安装在所述第一终端设备上的所述局域存储设备的专属应用,所述第一终端设备中存储有所述局域存储设备上所存储文件的元数据;所述第一终端设备向所述局域存储设备发送访问请求,所述访问请求包括所述元数据;所述第一终端设备接收所述局域存储设备发送的所述目标文件。
- 根据权利要求1所述的方法,其特征在于,所述第一终端设备包括应用层、框架服务层和存储层;所述应用层配置有所述第一应用和所述第二应用;所述存储层配置有分布式文件,所述分布式文件为所述应用层提供访问所述局域存储设备的能力;所述框架服务层配置有应用调用接口、元数据管理模块和同步模块,所述应用调用接口为所述第一应用进入所述框架服务层的入口,且用于调用所述元数据管理模块,所述元数据管理模块用于管理所述局域存储设备上所存储文件的元数据,所述同步模块与所述分布式文件逻辑连接,与所述局域存储设备进行文件传输。
- 根据权利要求2所述的方法,其特征在于,所述存储层还配置有本地文件,所述本地文件存储有所述第一终端设备产生的文件;所述元数据管理模块还用于管理所述本地文件中存储的文件的元数据。
- 根据权利要求2或3所述的方法,其特征在于,所述框架服务层包括文件缓存区,所述文件缓存区用于缓存所述目标文件,或者,与所述目标文件产生的时间在预设时间段内的文件的缩略信息。
- 根据权利要求3所述的方法,其特征在于,所述元数据管理模块中的第一元数据包含标识信息,所述第一元数据为第一文件的元数据,所述标识信息用于指示所述第一文件既存储在所述第一终端设备上,又存储在所述局域存储设备上。
- 根据权利要求5所述的方法,其特征在于,所述方法还包括:所述第一终端设备响应用户对所述第一文件的管理操作,根据所述第一元数据包含的标识信息管理所述第一终端设备上的所述第一文件,并向所述局域存储设备发送对所述第一文件的相应操作指令,所述操作指令用于所述局域存储设备对所述局域存储设备上存储的所述第一文件进行管理。
- 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:所述第一终端设备从所述局域存储设备接收所述局域存储设备中发生变更的文件的元数据,所述局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过所述第二终端设备修改的所述局域存储设备上的文件,或者,通过所述第二终端设备删除的所述局域存储设备上的文件,所述第二终端设备与所述第一终端设备在所述局域存储设备中与同一注册账号关联;所述第一终端设备根据所述发生变更的文件的元数据,以及变更指示,对所述第一终端设备上存储的元数据进行同步更新。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:所述第一终端设备向所述局域存储设备发送所述第一终端设备中发生变更的数据,所述第一终端设备中发生变更的数据包括如下至少一项:所述第一终端设备新产生的文件的元数据和所述新产生的文件,通过所述第一终端设备修改的所述局域存储设备上的文件的元数据和被修改后的文件,或者,通过所述第一终端设备删除的所述局域存储设备上的文件的元数据;所述发生变更的文件用于所述局域存储设备同步更新所述局域存储设备上存储的文件或/和元数据。
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:所述第一终端设备响应用户对第二文件的删除操作,将所述第二文件从所述第一终端设备的本地文件中删除,所述第二文件已存储到所述局域存储设备上。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:所述第一终端设备接收来自所述局域存储设备的分析结果,所述分析结果为所述局域存储设备分析所述局域存储设备上的文件得到的。
- 根据权利要求1-10任一项所述的方法,其特征在于,所述第一应用为相册管理应用、文件管理应用或第三方应用。
- 一种数据管理的方法,其特征在于,包括:局域存储设备接收第一终端设备发送的访问请求,所述访问请求是所述第一终端设备响应用户通过第一应用对目标文件的访问操作触发的,所述目标文件存储在所述局域存储设备上,所述第一应用与第二应用不同,所述第二应用为安装在所述第一终端设备上的所述局域存储设备的专属应用,所述访问请求包括所述目标文件的元数据;所述局域存储设备根据所述访问请求和所述元数据查找所述目标文件;所述局域存储设备向所述第一终端设备发送所述目标文件。
- 根据权利要求12所述的方法,其特征在于,所述方法还包括:所述局域存储设备向所述第一终端设备发送所述局域存储设备中发生变更的文件的元数据,所述局域存储设备中发生变更的文件包括如下至少一项:第二终端设备新产生的文件,通过所述第二终端设备修改的所述局域存储设备上的文件,或者,通过所述第二终端设备删除的所述局域存储设备上的文件,所述第二终端设备与所述第一终端设备在所述局域存储设备中与同一注册账号关联。
- 根据权利要求12或13所述的方法,其特征在于,所述方法还包括:所述局域存储设备接收所述第一终端设备发送的所述第一终端设备中发生变更的数据,所述第一终端设备中发生变更的数据包括如下至少一项:所述第一终端设备新产生的文件的元数据和所述新产生的文件,通过所述第一终端设备修改的所述局域存储设备上的文件的元数据和被修改后的文件,或者,通过所述第一终端设备删除的所述局域存储设备上的文件的元数据;所述局域存储设备根据所述发生变更的文件同步更新所述局域存储设备上存储的文件或/和元数据。
- 根据权利要求12-14任一项所述的方法,其特征在于,所述方法还包括:所述局域存储设备分析所述局域存储设备上的文件得到分析结果;所述局域存储设备向所述第一终端设备发送所述分析结果。
- 一种终端设备,其特征在于,包括:收发器、处理器和存储器,所述收发器和所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述客户端执行如权利要求1至11中任一项所述的方法。
- 一种局域存储设备,其特征在于,包括:通信接口、处理器和存储器,所述通信接口和所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述客户端执行如权利要求12至15中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在计算机设备上运行时,使得所述终端执行如权利要求1至15中任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得所述计算机执行如权利要求1至15中任一项所述的方法。
- 一种数据管理系统,其特征在于,包括:局域存储设备和多个终端设备,其中,每个终端设备都与所述局域存储设备通信连接;所述多个终端设备中的第一终端设备用于执行上述权利要求1-11任一项所述的方法;所述局域存储设备用于执行上述权利要求12-15任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032724.5A CN117667877A (zh) | 2022-08-26 | 2022-08-26 | 一种数据管理的方法及相应设备 |
CN202211032724.5 | 2022-08-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024041188A1 true WO2024041188A1 (zh) | 2024-02-29 |
Family
ID=90012367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/103675 WO2024041188A1 (zh) | 2022-08-26 | 2023-06-29 | 一种数据管理的方法及相应设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117667877A (zh) |
WO (1) | WO2024041188A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116618A (zh) * | 2013-01-28 | 2013-05-22 | 南开大学 | 基于客户端持久缓存的远程文件系统镜像方法及系统 |
CN111666578A (zh) * | 2020-06-08 | 2020-09-15 | 北京百度网讯科技有限公司 | 数据管理的方法、装置、电子设备及计算机可读存储介质 |
CN113032335A (zh) * | 2021-05-24 | 2021-06-25 | 北京世纪好未来教育科技有限公司 | 文件访问方法、装置、设备及存储介质 |
CN114528260A (zh) * | 2022-01-13 | 2022-05-24 | 深圳爱捷云科技有限公司 | 文件访问请求的处理方法、电子设备及计算机程序产品 |
WO2022156484A1 (zh) * | 2021-01-25 | 2022-07-28 | 华为技术有限公司 | 媒体数据处理方法、装置及终端设备 |
-
2022
- 2022-08-26 CN CN202211032724.5A patent/CN117667877A/zh active Pending
-
2023
- 2023-06-29 WO PCT/CN2023/103675 patent/WO2024041188A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116618A (zh) * | 2013-01-28 | 2013-05-22 | 南开大学 | 基于客户端持久缓存的远程文件系统镜像方法及系统 |
CN111666578A (zh) * | 2020-06-08 | 2020-09-15 | 北京百度网讯科技有限公司 | 数据管理的方法、装置、电子设备及计算机可读存储介质 |
WO2022156484A1 (zh) * | 2021-01-25 | 2022-07-28 | 华为技术有限公司 | 媒体数据处理方法、装置及终端设备 |
CN113032335A (zh) * | 2021-05-24 | 2021-06-25 | 北京世纪好未来教育科技有限公司 | 文件访问方法、装置、设备及存储介质 |
CN114528260A (zh) * | 2022-01-13 | 2022-05-24 | 深圳爱捷云科技有限公司 | 文件访问请求的处理方法、电子设备及计算机程序产品 |
Also Published As
Publication number | Publication date |
---|---|
CN117667877A (zh) | 2024-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018219178A1 (zh) | 数据同步方法、装置、服务器及存储介质 | |
US7920856B2 (en) | Method and system for hosted mobile management service architecture | |
JP7346606B2 (ja) | 画面共有処理方法、装置、機器及び記憶媒体 | |
WO2022143081A1 (zh) | 一种数据同步方法和装置 | |
US9483492B2 (en) | Terminal and method for providing application-related data | |
KR101212872B1 (ko) | 동기화 방법 및 시스템 | |
KR20090096554A (ko) | 동기화 방법 및 시스템 | |
WO2014101889A1 (zh) | 数据同步方法及设备 | |
US9848225B2 (en) | Information processing apparatus, control method therefor, and program | |
EP3016354A1 (en) | Cloud-service-based data backup and operation method | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
CN106658103A (zh) | 一种分享视频流数据的方法、源设备及电子设备 | |
WO2012119539A1 (zh) | 文件同步方法、文件同步装置及电子设备 | |
CN102739706A (zh) | 进行数据同步的方法及系统 | |
US9436769B2 (en) | Automatic device upload configuration | |
WO2024017113A1 (zh) | 数据同步方法、装置和电子设备 | |
AU2021202286A1 (en) | Managing data | |
WO2024041188A1 (zh) | 一种数据管理的方法及相应设备 | |
JP5552720B2 (ja) | ストレージシステム、ストレージサーバ、ユーザデータ共有方法、及びプログラム | |
JP2019029801A (ja) | 再生装置、再生装置の制御方法、及び、プログラム | |
CN103973772A (zh) | 文件读写方法和装置 | |
WO2014180436A1 (zh) | 一种终端间进行通信的方法及终端 | |
JP6281369B2 (ja) | 通信システム及び通信プログラム | |
US9052989B2 (en) | Storage control apparatus and storage method therefor | |
WO2016070371A1 (zh) | 移动终端和web终端之间互连及流传输和流媒体播放的方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23856279 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023856279 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2023856279 Country of ref document: EP Effective date: 20240830 |