CN104462224A - Cloud disc file online editing method - Google Patents

Cloud disc file online editing method Download PDF

Info

Publication number
CN104462224A
CN104462224A CN201410634078.9A CN201410634078A CN104462224A CN 104462224 A CN104462224 A CN 104462224A CN 201410634078 A CN201410634078 A CN 201410634078A CN 104462224 A CN104462224 A CN 104462224A
Authority
CN
China
Prior art keywords
file
file system
cloud dish
online editing
editing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410634078.9A
Other languages
Chinese (zh)
Inventor
何文森
李雪兵
孙付
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Westone Information Industry Inc
Original Assignee
Chengdu Westone Information Industry Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN201410634078.9A priority Critical patent/CN104462224A/en
Publication of CN104462224A publication Critical patent/CN104462224A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a cloud disc file online editing method. A file system is self-defined on a client side, files on a cloud disc server are mapped to the self-defined file system of the client side, and the cloud disc files are edited online through the self-defined file system. The file system established through the self-defined file system, the cloud disc files can be conveniently read and written through a local application, a user can operate the cloud disc files just like local files, and network files are conveniently presented and edited online. When the files are edited, file operation instructions are optimized, file data are cached, and therefore the file operation efficiency is effectively improved.

Description

A kind of cloud dish file online editing method
Technical field
The present invention relates to a kind of cloud dish file online editing method, particularly relate to one and be applicable to cloud field of storage cloud dish file online editing method.
Background technology
Cloud field of storage, by user-defined file system, can conveniently by user the data of cloud disk space real-time be presented in this file system, user can operate the file on cloud dish as operation local file, and will improve network utilization greatly by the application program read-write operation after optimizing.
Cloud memory technology is that the network storage brings new vitality, and the transmission speed solving legacy network memory technology is slow, redundancy backup and recovery capability is low, poor stability, high in cost of production problem.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of convenience carries out online editing cloud dish file online editing method to network file.
Under special screne, the file download stored by cloud is not allowed to carry out editing operation to this locality, but use virtual drive that file direct control is mapped to server, make file operation become slower, the present invention uses file operation optimization and memory caching technology to improve system performance.
The technical solution used in the present invention is as follows: a kind of cloud dish file online editing method, concrete grammar is: in client user-defined file system, by the user-defined file system of the File Mapping on cloud dish server to described client, by described user-defined file system, online editing is carried out to cloud dish file.
As preferably, described user-defined file system is by calling cloud dish file operation interface accessing cloud dish server.
As preferably, described user-defined file system is by the file operation interface of http protocol packaged cloud dish client-access server, and these file operation interfaces are registered the call back function of file system driver, the call back function routine that file system driver calls registration after receiving the request carrys out response request, and result is returned to user program by call back function routine.
As preferably, described method also comprises: carry out buffer memory to the current data of buffer memory that need of described user-defined file system, obtain when application queries file attribute to the data of this locality buffer memory from buffer memory.
As preferably, data cached effective time is set, after exceeding effective time, then reads from server when application program visits again, and upgrade local cache and reset effective time.
As preferably, the concrete grammar of described data buffer storage is: adopt Key-value form to store in internal memory, and a corresponding priority memory access chain, when data cached be greater than designated recorder time by the tail record purge in preferential chain, most recently used relational links is formed together a priority memory access chain.
Compared with prior art, the invention has the beneficial effects as follows: by the file system of user-defined file system creation, local application program can be read and write cloud dish file easily, user just as to local file operation, achieves presenting and online editing network file to the operation of cloud dish file easily.
Accompanying drawing explanation
Fig. 1 is the data buffer storage block diagram of the present invention's wherein embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Arbitrary feature disclosed in this instructions (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
A kind of cloud dish file online editing method, concrete grammar is: the user-defined file system that establishment one is the same with generic file system on client operating system, namely under Windows, Android or linux system of client, user-defined file system is adopted to hang a virtual drive, by the user-defined file system of the File Mapping on cloud dish server to described client, all server is redirected to the file operation of virtual drive, by described user-defined file system, online editing is carried out to cloud dish file.By the file system of user-defined file system creation, local application program can be read and write cloud dish file easily, such user just as to local file operation, achieves presenting and online editing network file to the operation of cloud dish file easily.
No matter application program repeats how many times to same operation, described user-defined file system is by calling cloud dish file operation interface accessing cloud dish server, at this moment can by some data of Hash table cache current file, as file attribute, file have read block, file write-in block etc., the data of needs then can be obtained fast when application queries file attribute from local cache.
Hash(hash) be exactly that by hashing algorithm, be transformed into the output of regular length, this output is exactly hashed value the input of random length (crying preliminary mapping again, pre-image).This conversion is a kind of compressing mapping, and namely the space of hashed value is usually much smaller than the space of input, and different inputs may hash to identical output, so can not carry out unique determination input value from hashed value.
The present invention adopts open addressing to solve conflict: H=(H (key)+di) mod m, i=1,2 ..., k (k<=m-1), wherein H (key) is hash function, m is that hash table is long, di is increment sequence, and following three kinds may be had to follow the example of:
1) di=1,2 ..., m-1, be called linear hashing;
2) di=1^2, (-1) ^2 ..., ± (k) ^2 (k<m/2), is called quadratic probing hash again;
3) di=pseudo-random number sequence, is called that pseudo random number detects hash again.
Described user-defined file system is by the file operation interface of http protocol packaged cloud dish client-access server, comprise the establishment of file, delete, copy, read-write etc., and these file operation interfaces are registered the call back function of file system driver, the call back function routine that file system driver calls registration after receiving the request carrys out response request, and result is returned to user program by call back function routine.
Described method also comprises: carry out buffer memory to the current data of buffer memory that need of described user-defined file system, obtain when application queries file attribute to the data of this locality buffer memory from buffer memory.Use file operation optimization technology, multiple instruction folding is once performed instruction, and in conjunction with local cache function, making most instructions without the need to being performed to server by network delivery, reducing the mutual of client and server, improving the response efficiency of program.
Data cached effective time is set, as file attribute, file have read block, file write-in block etc., can fast return needs from buffer memory result during application program visit data next time.Data cached existence term of validity.After exceeding effective time, then read from server when application program visits again, and upgrade local cache and reset effective time, crossing after date needs synchronous with server data again.
Data cached have an effective time, after exceeding certain effective time, then needs to read from server when application program visits again, and upgrade local cache and reset effective time.After adding reading and writing data optimization module, the Internet Transmission of client and server can reduce by the access of about 30%.Such as, when the data that certain write instruction will write only have several byte-sized, buffer memory can be carried out within a certain period of time, wait for follow-up write instruction, if there is follow-up write instruction within this time period, front and back can be write instruction and perform in the lump; For another example, when the data that certain sense order will read only have several byte-sized, buffer memory can be carried out within a certain period of time, wait for follow-up sense order, if there is subsequent readout instruction within this time period, front and back sense order can be performed in the lump; If write or sense order do not have follow-up same alike result instruction within this time period, then perform this instruction after reaching this time; If the data length ratio writing or read is larger than setting amount, is then not suitable for buffer memory, directly performs.
The concrete grammar of described data buffer storage is: adopt Key-value form to store in internal memory, and a corresponding priority memory access chain, when data cached be greater than designated recorder time by the tail record purge in preferential chain, most recently used relational links is formed together a priority memory access chain.
As shown in Figure 1, when inserting new record, as handle quantity is less than limit value, then generate handle and be inserted into root node, handle quantity adds one; If handle quantity is greater than limit value, then delete last tail node, then generate handle and be inserted into root node, and often use a handle, by this node motion to beginning-of-chain.

Claims (6)

1. a cloud dish file online editing method, concrete grammar is: in client user-defined file system, by the user-defined file system of the File Mapping on cloud dish server to described client, by described user-defined file system, online editing is carried out to cloud dish file.
2. cloud dish file online editing method according to claim 1, described user-defined file system is by calling cloud dish file operation interface accessing cloud dish server.
3. cloud dish file online editing method according to claim 2, described user-defined file system is by the file operation interface of http protocol packaged cloud dish client-access server, and these file operation interfaces are registered the call back function of file system driver, the call back function routine that file system driver calls registration after receiving the request carrys out response request, and result is returned to user program by call back function routine.
4. cloud dish file online editing method according to claim 1, described method also comprises: carry out buffer memory to the current data of buffer memory that need of described user-defined file system, obtain when application queries file attribute to the data of this locality buffer memory from buffer memory.
5. cloud dish file online editing method according to claim 4, arranges data cached effective time, after exceeding effective time, then reads from server when application program visits again, and upgrades local cache and reset effective time.
6. cloud dish file online editing method according to claim 4, the concrete grammar of described data buffer storage is: adopt Key-value form to store in internal memory, and a corresponding priority memory access chain, when data cached be greater than designated recorder time by the tail record purge in preferential chain, most recently used relational links is formed together a priority memory access chain.
CN201410634078.9A 2014-11-12 2014-11-12 Cloud disc file online editing method Pending CN104462224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410634078.9A CN104462224A (en) 2014-11-12 2014-11-12 Cloud disc file online editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410634078.9A CN104462224A (en) 2014-11-12 2014-11-12 Cloud disc file online editing method

Publications (1)

Publication Number Publication Date
CN104462224A true CN104462224A (en) 2015-03-25

Family

ID=52908260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410634078.9A Pending CN104462224A (en) 2014-11-12 2014-11-12 Cloud disc file online editing method

Country Status (1)

Country Link
CN (1) CN104462224A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027562A (en) * 2016-07-08 2016-10-12 中国银联股份有限公司 Network mapping method and device for files
CN106407417A (en) * 2016-09-23 2017-02-15 维沃移动通信有限公司 An application program data backup method and a mobile terminal
CN106776980A (en) * 2016-12-06 2017-05-31 上海爱数信息技术股份有限公司 A kind of document synchronization method and system, document-synchronization client
CN108021663A (en) * 2017-12-04 2018-05-11 郑州云海信息技术有限公司 A kind of method and device to cloud disk operation
CN109189748A (en) * 2018-08-20 2019-01-11 郑州云海信息技术有限公司 A kind of buffer consistency processing method and nfs server
CN110069454A (en) * 2017-09-11 2019-07-30 中兴通讯股份有限公司 A kind of network file management method, terminal and computer readable storage medium
CN112395259A (en) * 2021-01-21 2021-02-23 北京鲲鲸云科技有限公司 File operating system, operating method, computer equipment and medium
CN112667944A (en) * 2020-12-23 2021-04-16 福建正孚软件有限公司 Http protocol-based file online processing method and system
CN114817969A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Method, device, terminal and storage medium for previewing network disk drive letter file
CN114816646A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Shortcut operation method, device, terminal and storage medium suitable for network disk drive letter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050207732A1 (en) * 2004-03-22 2005-09-22 Lg Electronics Inc. Method and apparatus for editing recorded program using virtual file system and file structure
CN103152515A (en) * 2012-07-13 2013-06-12 成都东方盛行电子有限责任公司 Comprehensive editing platform
CN103795806A (en) * 2013-12-25 2014-05-14 天津火星科技有限公司 Method for achieving cloud storage for mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050207732A1 (en) * 2004-03-22 2005-09-22 Lg Electronics Inc. Method and apparatus for editing recorded program using virtual file system and file structure
CN103152515A (en) * 2012-07-13 2013-06-12 成都东方盛行电子有限责任公司 Comprehensive editing platform
CN103795806A (en) * 2013-12-25 2014-05-14 天津火星科技有限公司 Method for achieving cloud storage for mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘立辉: "《个人网络磁盘系统客户端的技术研究》", 《中国优秀硕士学位论文全文数据库》 *
谢杰涛 等: "《Web系统高性能本地数据缓存实现机制》", 《计算机应用研究》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027562A (en) * 2016-07-08 2016-10-12 中国银联股份有限公司 Network mapping method and device for files
CN106407417A (en) * 2016-09-23 2017-02-15 维沃移动通信有限公司 An application program data backup method and a mobile terminal
CN106776980A (en) * 2016-12-06 2017-05-31 上海爱数信息技术股份有限公司 A kind of document synchronization method and system, document-synchronization client
CN110069454A (en) * 2017-09-11 2019-07-30 中兴通讯股份有限公司 A kind of network file management method, terminal and computer readable storage medium
CN108021663A (en) * 2017-12-04 2018-05-11 郑州云海信息技术有限公司 A kind of method and device to cloud disk operation
CN109189748A (en) * 2018-08-20 2019-01-11 郑州云海信息技术有限公司 A kind of buffer consistency processing method and nfs server
CN112667944A (en) * 2020-12-23 2021-04-16 福建正孚软件有限公司 Http protocol-based file online processing method and system
CN112395259A (en) * 2021-01-21 2021-02-23 北京鲲鲸云科技有限公司 File operating system, operating method, computer equipment and medium
CN114817969A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Method, device, terminal and storage medium for previewing network disk drive letter file
CN114816646A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Shortcut operation method, device, terminal and storage medium suitable for network disk drive letter

Similar Documents

Publication Publication Date Title
CN104462224A (en) Cloud disc file online editing method
US9678969B2 (en) Metadata updating method and apparatus based on columnar storage in distributed file system, and host
US10831734B2 (en) Update-insert for key-value storage interface
CN104580437A (en) Cloud storage client and high-efficiency data access method thereof
US8856078B2 (en) Dynamic time reversal of a tree of images of a virtual hard disk
CN105183839A (en) Hadoop-based storage optimizing method for small file hierachical indexing
TW201220197A (en) for improving the safety and reliability of data storage in a virtual machine based on cloud calculation and distributed storage environment
CN102880671A (en) Method for actively deleting repeated data of distributed file system
CN103034684A (en) Optimizing method for storing virtual machine mirror images based on CAS (content addressable storage)
CN104239575A (en) Virtual machine mirror image file storage and distribution method and device
CN104657401A (en) Web cache updating method
CN103559027A (en) Design method of separate-storage type key-value storage system
CN102541985A (en) Organization method of client directory cache in distributed file system
KR20200122994A (en) Key Value Append
CN103559229A (en) Small file management service (SFMS) system based on MapFile and use method thereof
CN105138571A (en) Distributed file system and method for storing lots of small files
CN107135662B (en) Differential data backup method, storage system and differential data backup device
CN103595797A (en) Caching method for distributed storage system
CN106294870A (en) Object-based distributed cloud storage method
CN104572505A (en) System and method for ensuring eventual consistency of mass data caches
CN112346659B (en) Storage method, equipment and storage medium for distributed object storage metadata
CN103914483A (en) File storage method and device and file reading method and device
US20230306010A1 (en) Optimizing Storage System Performance Using Data Characteristics
CN106254489A (en) A kind of cloud rendering system without file transmission and method thereof
CN107423425B (en) Method for quickly storing and inquiring data in K/V format

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication