CN103309871B - File read/write method and electronic equipment - Google Patents

File read/write method and electronic equipment Download PDF

Info

Publication number
CN103309871B
CN103309871B CN201210061607.1A CN201210061607A CN103309871B CN 103309871 B CN103309871 B CN 103309871B CN 201210061607 A CN201210061607 A CN 201210061607A CN 103309871 B CN103309871 B CN 103309871B
Authority
CN
China
Prior art keywords
file
read
write
interface
data
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.)
Active
Application number
CN201210061607.1A
Other languages
Chinese (zh)
Other versions
CN103309871A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210061607.1A priority Critical patent/CN103309871B/en
Publication of CN103309871A publication Critical patent/CN103309871A/en
Application granted granted Critical
Publication of CN103309871B publication Critical patent/CN103309871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of file read/write method and use the electronic equipment of the method.Described file read/write method, it is applied to a kind of electronic equipment with storage device, described storage device includes file system management unit, for storing storage medium region and the data-interface of data, described file read/write method includes: described storage device via described data-interface receive from electronic equipment to the read write command of file in storage medium region;Described file system management unit, based on described read write command, obtains described file address in described storage medium region;And via described data-interface, the read-write result being pointed to the described file of described address is sent to electronic equipment.

Description

File read/write method and electronic equipment
Technical field
The present invention relates to electronic device field, and be specifically related to a kind of file read/write method and use this document read-write side The electronic equipment of method.
Background technology
In recent years, such as the electronic equipment of mobile phone, panel computer and personal digital assistant is more and more universal, its Having light, to use simple touch control operation advantage, it can easily realize online, object for appreciation game, see video, reading magazine etc. Function.Along with the continuous enhancing of the hardware capability of electronic equipment, same electronic equipment has been able to support that two operating systems are (all As Deng) run the most simultaneously.Additionally, have also appeared based on mixing (Hybrid) electronic apparatus system of framework.Such as, occur in that by runningThe X86 system of operating system and fortune OKThe Hybrid system architecture that the ARM system of operating system is constituted.At present, no matter it is on same terminal unit Run in the case of two operating systems still will be separately operable double terminal units of respective operating system, two operations simultaneously System is respectively provided with completely self-contained hard-disk system and storage medium, and this not only brings the rising of size, cost, and is difficult to reality Effectively sharing and accessing in data between existing different system.Have been proposed for a kind of storage with multiple reading and writing data port Device, thus realize the different operating system under Hybrid system architecture and access difference behaviour by each reading and writing data port respectively Make the same storage medium shared between system.
Additionally, storage device of the prior art typically uses SATA or scsi interface, operating system directly passes through SATA Or SCSI protocol accesses storage device, the access to storage device is the minimum access unit (sector or the page) storing device Carry out.Operating system needs to realize file system on upper strata, manages storage number on the storage means by file system According to.At present, solid state hard disc (SSD) increased popularity based on Flash, the trend of big substituted conventional hard storage device.SSD deposits The processor of oneself it is generally of inside storage device, it is therefore desirable to provide a kind of file read/write method and use this document read-write side The storage device of method, storage device is internal the most now performs file system management function, and externally directly provides file operation Interface.Additionally, when the file in this storage device is accessed by different operating system simultaneously, this literary composition within storage device Part system management function it can be avoided that file read-write conflict appearance.
Summary of the invention
Because above-mentioned situation, the invention provides a kind of file read/write method and use the electronics of this document reading/writing method Equipment.
According to embodiments of the present invention, it is provided that a kind of file read/write method, it is applied to a kind of electronics with storage device Equipment, described storage device includes file system management unit, for storing storage medium region and the data-interface of data, Described file read/write method includes: described storage device via described data-interface receive from electronic equipment to storage medium The read write command of file in region;Described file system management unit, based on described read write command, obtains described file described Address in storage medium region;And the read-write result of the described file of described address will be pointed to via described data-interface It is sent to electronic equipment.
Additionally, file read/write method according to embodiments of the present invention, wherein, described electronics has the first hardware system and Two hardware systems, described first hardware system runs has the first operating system, described second hardware system to have the second operation system System, described data-interface at least includes the first data sub-interface supporting first data transmission agreement and supports the second data transmission Second data sub-interface of agreement, described first operating system and described second operating system are respectively via described first data Interface and/or described second data sub-interface carry out the read-write to described storage medium region, wherein said file read/write method Also include: described storage device receives from first in electronic equipment via the first data sub-interface in described data-interface Operating system to the read write command of file in storage medium region;And described file system management unit is based on described read-write Order, obtains described file address in described storage medium region, and controls described file at described storage medium Described address in region carries out the locking of read/write, to avoid described second operating system that described file is carried out read/write operation Time clash.
Additionally, file read/write method according to embodiments of the present invention, wherein said file system management unit controls institute State the file described address in described storage medium region and carry out the locking of read/write, to avoid described second operating system pair Described file carries out clashing during read/write operation including:
When described first operating system reads storage in described storage medium region by described first data sub-interface During file, described file system management unit performs to judge the step whether described file is locked, and obtains the first judgement As a result, if file described in described first judgment result displays is not locked or has been added the first read lock, the most described file system Administrative unit is that described file adds the second read lock, performs the reading to described file, and releases described after completing to read Second read lock, if file described in described first judgment result displays has been added writes lock, the most described file system management unit returns Return the described step judging whether described file is locked step;When described first operating system is by described first data-interface When writing in described storage medium region the file of storage, described file system management unit perform to judge described file whether by The step locked, and obtain the second judged result, if file described in described second judgment result displays is not locked, then institute Stating file system management unit is that described file adds and writes lock, performs the write to described file, and solves after completing write Lock is write described in removing, if file described in described second judgment result displays is by read lock or write lock, the most described file system pipe Reason unit returns the described step judging whether described file is locked step.
Additionally, file read/write method according to embodiments of the present invention, wherein said first data sub-interface is SATA interface, And described second data sub-interface is the one in MMC/SD/SDIO interface.
Additionally, file read/write method according to embodiments of the present invention, wherein first data transmission agreement and the second data pass Transmission protocol is same protocol, and it is right that described electronic equipment is carried out via described first data-interface and described second data-interface simultaneously The read-write in described storage medium region.
According to another embodiment of the present invention, it is provided that a kind of electronic equipment, including: the first hardware system, it runs There is the first operating system;Second hardware system, on it, operation has the second operating system;And storage device;Wherein, described storage Device includes file system management unit, for storing the storage medium region of data, and data-interface, wherein, described in deposit Storage device via described data-interface receive from electronic equipment to the read write command of file in storage medium region;Described literary composition Part System Management Unit, based on described read write command, obtains described file address in described storage medium region;And warp By described data-interface, the read-write result being pointed to the described file of described address is sent to electronic equipment.
Additionally, electronic equipment according to embodiments of the present invention, wherein said data-interface at least includes supporting the first data First data sub-interface of host-host protocol and the second data sub-interface of support the second Data Transport Protocol, described first operation system System and described second operating system are carried out institute via described first data sub-interface and/or described second data sub-interface respectively Stating the read-write in storage medium region, wherein, described storage device receives via the first data sub-interface in described data-interface From the first operating system in electronic equipment to the read write command of file in storage medium region;And described file system Administrative unit, based on described read write command, obtains described file address in described storage medium region, and controls institute State the file described address in described storage medium region and carry out the locking of read/write, to avoid described second operating system pair Described file carries out clashing during read/write operation.
Additionally, electronic equipment according to embodiments of the present invention, wherein said file system management unit controls described literary composition The part described address in described storage medium region carries out the locking of read/write, to avoid described second operating system to described File carries out clashing during read/write operation including: when described first operating system is read by described first data sub-interface During the file stored in described storage medium region, described file system management unit performs to judge whether described file is locked Step, and obtain the first judged result, if file described in described first judgment result displays is not locked or is added First read lock, the most described file system management unit is that described file adds the second read lock, performs the reading to described file, and Described second read lock is released, if file described in described first judgment result displays has been added writes lock, then after completing to read Described file system management unit returns the described step judging whether described file is locked step;When described first operation system When system writes the file of storage in described storage medium region by described first data-interface, described file system management unit Perform to judge the step whether described file is locked, and obtain the second judged result, if described second judged result shows Showing that described file is not locked, the most described file system management unit is that described file adds and writes lock, performs to write described file Enter, and write lock, if file is by read lock described in described second judgment result displays described in releasing after completing write Or write lock, the most described file system management unit returns the described step judging whether described file is locked step.
Additionally, electronic equipment according to embodiments of the present invention, wherein said first data sub-interface is SATA interface, and Described second data sub-interface is the one in MMC/SD/SDIO interface.
Additionally, electronic equipment according to embodiments of the present invention, wherein first data transmission agreement and the transmission of the second data are assisted View is same protocol, and described electronic equipment is carried out described via described first data-interface and described second data-interface simultaneously The read-write in storage medium region.
A kind of file read/write method according to embodiments of the present invention and the electronic equipment of this data read-write method of use, it is achieved File system management function is performed inside storage device, and when the file in this storage device is same by different operating system Time when accessing, this file system management function storage device within is it can be avoided that the appearance that conflicts of file read-write.
It being understood that general description above and detailed description below are the most exemplary, and be intended to In providing further illustrating of the technology claimed.
Accompanying drawing explanation
Fig. 1 is Hybrid computer system and the Hybrid computer of use multipor memory device of diagram prior art System contrast block diagram;
Fig. 2 is the functional block diagram illustrating electronic equipment according to embodiments of the present invention;
Fig. 3 is the flow chart illustrating file read/write method according to embodiments of the present invention;
Fig. 4 is the flow chart of the file read/write method according to embodiments of the present invention during diagram read operation;And
Fig. 5 is the flow chart of the file read/write method according to embodiments of the present invention during diagram write operation.
Detailed description of the invention
Hereinafter, by preferred embodiments of the present invention will be described in detail with reference to the annexed drawings.
First, the Hybrid computer system of prior art will be described with reference to Fig. 1 and use multipor memory device Hybrid computer system.
Fig. 1 is Hybrid computer system and the Hybrid computer of use multipor memory device of diagram prior art System contrast block diagram.The left side of Fig. 1 is the Hybrid computer system 200 of prior art.In this Hybrid computer system 200 In, including the processing unit X86 201 and the processing unit ARM 202 of ARM system of X86 system.X86 201 connects via SATA Mouthfuls 203 SSD 205 accessing the memory area as himself, and ARM 202 via SDIO 204 access as himself The flash memory 206 of memory area.As it has been described above, two processing units can not be conveniently shared and access respective memory area, special Be not ARM system will be unable to access X86 system memory area.
The right side of Fig. 1 is the Hybrid computer system 300 using multipor memory device.It should be noted that each attached In figure, identical parts are with represented by identical reference.Left side and the right side of comparison diagram 2 are visible, use multiport storage The processing unit X86 201 and the processing unit ARM of ARM system of the same X86 system of Hybrid computer system 300 of device 202.Different from the Hybrid computer system 200 of prior art it is, uses the Hybrid computer of multipor memory device The processing unit X86 201 of the X86 system in the system 300 and processing unit ARM 202 of ARM system is the most independent Memory area.On the contrary, use the Hybrid computer system 300 of multipor memory device using flash memory 206 as the place of X86 system Reason unit X86 201 and the memory area public for processing unit ARM202 of ARM system.Include that one is virtual at flash memory 206 Accumulation layer 207, encapsulates SATA interface 203 and SDIO 204 on this virtual memory layer 207 respectively.Therefore, the process of X86 system The processing unit ARM 202 of unit X86201 and ARM system is respectively by SATA interface 203 He on virtual memory layer 207 SDIO 204 accesses the flash memory 206 as public memory area.So, it is achieved that between X86 system and ARM system in data Effectively share and access.
In the above-mentioned Hybrid computer system 300 using multipor memory device described with reference to Fig. 1, if X86 The processing unit X86 201 of system and the processing unit ARM 202 of ARM system is respectively by virtual memory layer 207 When SATA interface 203 and SDIO 204 accesses as same target on the flash memory 206 of public memory area simultaneously, may go out The problem of existing data access conflict.Accordingly, it would be desirable to improve the electronic equipment utilizing multipor memory device further, and provide Corresponding data read-write method.
Electronic equipment according to embodiments of the present invention is specifically described next, with reference to Fig. 2.
Fig. 2 is the functional block diagram illustrating electronic equipment 10 according to embodiments of the present invention.As in figure 2 it is shown, according to this The electronic equipment 10 of bright embodiment includes the first hardware system 20 and the second hardware system 30.Described first hardware system 20 and Two hardware systems 30 correspond respectively to the X86 system shown in Fig. 1 and ARM system.Hard at described first hardware system 20 and second In part system 30, it is separately operable the first operating system and the second operating system.Described first operating system and the second operating system It is Windows operating system and Android operation system respectively.Electronic equipment 10 according to embodiments of the present invention also includes storage Device 40.Described storage device 40 have first data-interface the 41, second data-interface 42, file system management unit 43 and Storage medium region 44.Described first data-interface 41 and the second data-interface 42 correspond respectively to the SATA interface shown in Fig. 1 203 and SDIO 204.Described storage medium region 44 is corresponding to the flash memory 206 as public memory area shown in Fig. 1.
File system management unit 43 via described first data-interface 41 or described second data-interface 42 receive from Described first hardware system 20 of electronic equipment or the second hardware system 30 are to the read-write of file in described storage medium region 44 Order.Described file system management unit 43, based on described read write command, obtains described file in described storage medium region 44 In address.In a preferred embodiment of the invention, described file system management unit 43 by inquiry File Mapping table, Obtain the described file corresponding with described read write command address in described storage medium region 44.Hereafter, described file system System administrative unit 43 will be pointed to described in described address via described first data-interface 41 or described second data-interface 42 The read-write result of file is sent to described first hardware system 20 or second hardware system 30 of electronic equipment.It is to say, In storage device 40 according to embodiments of the present invention, described file system management unit 43 achieves literary composition inside storage device 40 Part system management function.
Hereinafter, the file read/write method performed by described file system management unit 43 will be described with reference to Fig. 3.
Fig. 3 is the flow chart illustrating file read/write method according to embodiments of the present invention.As it is shown on figure 3, in step S301 In, file system management unit 43 receives set from electronics via described first data-interface 41 or described second data-interface 42 Standby described first hardware system 20 or the second hardware system 30 are to the read write command of file in described storage medium region 44.This After, process and enter step S302.
In step s 302, described file system management unit 43, based on described read write command, obtains described file in institute State the address in storage medium region 44.Hereafter, process enters step S303.
In step s 302, described file system management unit 43 is via described first data-interface 41 or described second number According to interface 42, the read-write result being pointed to the described file of described address is sent to described first hardware system of electronic equipment 20 or second hardware system 30.
Above, electronic equipment according to embodiments of the present invention and the file read-write used are described with reference to Fig. 2 and Fig. 3 Method.It should be noted that electronic equipment according to embodiments of the present invention has the first hardware system 20 and the second hardware system 30, Described storage device 40 may be by the first hardware system 20 and the second hardware system 30 respectively via described first data-interface 41 And/or described second data-interface 42 is written and read operation.Therefore, described file system management unit 43 needs performing file The read/write conflict that two hardware systems are likely to occur when reading while write a file is avoided during read-write.
Hereinafter, read-write punching is avoided further describing with reference to Fig. 4 and Fig. 5 by what described file system management unit 43 performed Prominent method.
Fig. 4 is the flow chart of the data read-write method according to embodiments of the present invention during diagram read operation.Such as Fig. 4 institute Showing, in step S401, described file system management unit 43 receives the first operating system and orders the reading in storage medium region Order.Hereafter, process enters step S402.
In step S402, described file system management unit 43 judges whether the object that reading order is to be read is added Lock, and obtain judged result.Hereafter, process enters step S403.
In step S403, it is judged that reading object described in described judgment result displays is locked the most.If in step S403 obtains positive result, then processes and enter step S404.On the contrary, if obtaining negative decision in step S403, then locate Reason enters step S405.
In step s 404, determine whether that described reading object is the most by read lock.If obtained in step s 404 Obtain positive result, then process and enter step S305.On the contrary, if obtaining negative decision (now, another operation in step s 404 System may be currently written into this reading object), then process and return to step S402.
In step S405, say, that when reading object described in described judgment result displays is not locked or is added During the first read lock (now, another operating system may read this reading object), described file system management unit 43 is Described reading object adds the second read lock, performs the reading of described reading object, and releases the second read lock after completing to read.
By the data read-write method shown in application drawing 4, when an operating system is to the object in described storage device 40 When performing read operation, will first judge that this reading object has been locked.If this reading object is not locked (not behaviour Make system and reading and writing this reading object) or by the read lock operating system of this reading object (exist read), then by Will not be changed in now reading object, described operating system can perform reading after to this reading object read lock, and And complete to release this read lock afterwards in reading.On the contrary, if this reading object has been added and write lock and (have that to be currently written into this reading right The operating system of elephant), then may be changed due to now reading object, described operating system will not perform read operation, and The step of locking state returning and judging this reading object, thus avoid during reading object is written over right The mistake appearance that it is read out.
Fig. 5 is the flow chart of the data read-write method according to embodiments of the present invention during diagram write operation.Such as Fig. 5 institute Showing, in step S501, described file system management unit 43 receives the first operating system and orders the write in storage medium region Order.Hereafter, process enters step S502.
In step S502, described file system management unit 43 judges whether the object that writing commands is to be write is added Lock, and obtain judged result.Hereafter, process enters step S503.
In step S503, it is judged that described judgment result displays said write object is locked the most.If in step S503 obtains negative decision, then processes and enter step S504.On the contrary, if obtaining positive result (now, in step S503 Another operating system may read or write this write object), then process and return to step S502.
In step S502, say, that when described judgment result displays said write object is not locked, described literary composition Part System Management Unit 43 adds for said write object writes lock, performs the write of said write object, and writes it completing Lock is write in rear releasing.
By the data read-write method shown in application drawing 5, when an operating system is to the object in described storage device 40 When performing write operation, will first judge that this reading object has been locked.If this reading object is not locked (not behaviour Make system and reading and writing this reading object), then will not be changed due to now reading object, described operating system can be to this Write object add write lock after perform write, and complete to release this afterwards in write and write lock.Simultaneously as described operating system Having added this write object when performing write and write lock, it is right that another operating system can not access this write in this ablation process As, until this is write lock and is released from.On the contrary, (exist if this reading object is locked and read or write this reading object Operating system), the most described operating system will not perform write operation, but return the locking state judging this write object Step, thus avoid the mistake appearance it write when writing object by other operating system access.
Describe a kind of file read/write method according to embodiments of the present invention above by reference to Fig. 1 to Fig. 5 and use this document The electronic equipment of reading/writing method, it is achieved perform file system management function inside storage device, and when in this storage device File when simultaneously being accessed by different operating system, this file system management function within storage device is it can be avoided that file The appearance of read/write conflict.
It should be noted that in this manual, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that Other identical element is there is also in including the process of described key element, method, article or equipment.
Finally, in addition it is also necessary to explanation, above-mentioned a series of process not only includes with order described here in temporal sequence The process performed, and include the process performed parallel or respectively rather than in chronological order.
Through the above description of the embodiments, those skilled in the art is it can be understood that can be by the present invention Software adds the mode of required hardware platform and realizes, naturally it is also possible to all implemented by hardware.Based on such understanding, What background technology was contributed by technical scheme can embody with the form of software product in whole or in part, This computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions in order to make Obtain a computer equipment (can be personal computer, server, or the network equipment etc.) and perform each embodiment of the present invention Or the method described in some part of embodiment.
Being described in detail the present invention above, specific case used herein is to the principle of the present invention and embodiment party Formula is set forth, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Meanwhile, right In one of ordinary skill in the art, according to the thought of the present invention, the most all can change Part, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. a file read/write method, is applied to a kind of electronic equipment with storage device, and described storage device includes file System Management Unit, for storing storage medium region and the data-interface of data, described file read/write method includes:
Described storage device via described data-interface receive from electronic equipment to the read-write of file in storage medium region Order;
Described file system management unit, based on described read write command, obtains described file ground in described storage medium region Location;And
Via described data-interface, the read-write result being pointed to the described file of described address is sent to electronic equipment.
2. file read/write method as claimed in claim 1, wherein, described electronics has the first hardware system and the second hardware system System, described first hardware system runs has the first operating system, described second hardware system to have the second operating system, described number At least include according to interface supporting the first data sub-interface of first data transmission agreement and supporting the of the second Data Transport Protocol Two data sub-interfaces, described first operating system and described second operating system respectively via described first data sub-interface and/ Or described second data sub-interface carries out the read-write to described storage medium region, wherein said file read/write method also includes:
Described storage device receives from the first behaviour in electronic equipment via the first data sub-interface in described data-interface Make system to the read write command of file in storage medium region;And
Described file system management unit, based on described read write command, obtains described file ground in described storage medium region Location, and control the described file described address in described storage medium region is carried out the locking of read/write, described to avoid Second operating system clashes when described file is carried out read/write operation.
3. file read/write method as claimed in claim 2, wherein said file system management unit controls to exist described file Described address in described storage medium region carries out the locking of read/write, to avoid described second operating system to described file Carry out clashing during read/write operation including:
When described first operating system reads the file of storage in described storage medium region by described first data sub-interface Time, described file system management unit performs to judge the step whether described file is locked, and obtains the first judged result,
If file described in described first judgment result displays is not locked or has been added the first read lock, the most described file system pipe Reason unit is that described file adds the second read lock, performs the reading to described file, and releases described the after completing to read Two read locks,
If file described in described first judgment result displays has been added writes lock, the most described file system management unit returns described Judge whether described file is locked the step of step;
When described first operating system writes the file of storage in described storage medium region by described first data-interface, Described file system management unit performs to judge the step whether described file is locked, and obtains the second judged result,
If file described in described second judgment result displays is not locked, the most described file system management unit is described file Add and write lock, perform the write to described file, and write lock described in releasing after completing write,
If file described in described second judgment result displays is by read lock or write lock, the most described file system management unit returns Return the described step judging whether described file is locked step.
4. file read/write method as claimed in claim 2, wherein said first data sub-interface is SATA interface, and described Second data sub-interface is the one in MMC/SD/SDIO interface.
5. file read/write method as claimed in claim 2, wherein first data transmission agreement and the second Data Transport Protocol are Same protocol, described electronic equipment is carried out described storage via described first data-interface and described second data-interface simultaneously The read-write of areas of dielectric.
6. an electronic equipment, including:
First hardware system, on it, operation has the first operating system;
Second hardware system, on it, operation has the second operating system;And
Storage device;
Wherein, described storage device includes
File system management unit,
For storing the storage medium region of data, and
Data-interface,
Wherein, described storage device via described data-interface receive from electronic equipment to file in storage medium region Read write command;Described file system management unit, based on described read write command, obtains described file in described storage medium region In address;And via described data-interface, the read-write result being pointed to the described file of described address is sent to electronics and sets Standby.
7. electronic equipment as claimed in claim 6, wherein said data-interface at least includes supporting first data transmission agreement The first data sub-interface and support the second data sub-interface of the second Data Transport Protocol, described first operating system and described Second operating system carries out being situated between described storage via described first data sub-interface and/or described second data sub-interface respectively The read-write in matter region,
Wherein, described storage device receives from the in electronic equipment via the first data sub-interface in described data-interface One operating system to the read write command of file in storage medium region;And
Described file system management unit, based on described read write command, obtains described file ground in described storage medium region Location, and control the described file described address in described storage medium region is carried out the locking of read/write, described to avoid Second operating system clashes when described file is carried out read/write operation.
8. electronic equipment as claimed in claim 7, wherein said file system management unit controls described file described Described address in storage medium region carries out the locking of read/write, to avoid described second operating system to carry out described file Clash during read/write operation and include:
When described first operating system reads the file of storage in described storage medium region by described first data sub-interface Time, described file system management unit performs to judge the step whether described file is locked, and obtains the first judged result,
If file described in described first judgment result displays is not locked or has been added the first read lock, the most described file system pipe Reason unit is that described file adds the second read lock, performs the reading to described file, and releases described the after completing to read Two read locks,
If file described in described first judgment result displays has been added writes lock, the most described file system management unit returns described Judge whether described file is locked the step of step;
When described first operating system writes the file of storage in described storage medium region by described first data-interface, Described file system management unit performs to judge the step whether described file is locked, and obtains the second judged result,
If file described in described second judgment result displays is not locked, the most described file system management unit is described file Add and write lock, perform the write to described file, and write lock described in releasing after completing write,
If file described in described second judgment result displays is by read lock or write lock, the most described file system management unit returns Return the described step judging whether described file is locked step.
9. electronic equipment as claimed in claim 7, wherein said first data sub-interface is SATA interface, and described second Data sub-interface is the one in MMC/SD/SDIO interface.
10. electronic equipment as claimed in claim 7, wherein first data transmission agreement and the second Data Transport Protocol are identical Agreement, described electronic equipment is carried out described storage medium via described first data-interface and described second data-interface simultaneously The read-write in region.
CN201210061607.1A 2012-03-09 2012-03-09 File read/write method and electronic equipment Active CN103309871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210061607.1A CN103309871B (en) 2012-03-09 2012-03-09 File read/write method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210061607.1A CN103309871B (en) 2012-03-09 2012-03-09 File read/write method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103309871A CN103309871A (en) 2013-09-18
CN103309871B true CN103309871B (en) 2016-12-14

Family

ID=49135109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210061607.1A Active CN103309871B (en) 2012-03-09 2012-03-09 File read/write method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103309871B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678525B (en) * 2013-11-29 2017-09-22 创新科软件技术(深圳)有限公司 A kind of method of multiple users share identical file
CN107562648B (en) * 2016-07-01 2021-04-06 北京忆恒创源科技有限公司 Lock-free FTL (fiber to the Home) access method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236531A (en) * 2007-01-29 2008-08-06 联想(北京)有限公司 Memory and its automatic protection realization method
CN101884071A (en) * 2007-12-06 2010-11-10 晶像股份有限公司 Bank sharing and refresh in a shared multi-port memory device
CN102117182A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Multi-hardware system data processing equipment and storage equipment switching method thereof
CN102142032A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for reading and writing data of distributed file system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236531A (en) * 2007-01-29 2008-08-06 联想(北京)有限公司 Memory and its automatic protection realization method
CN101884071A (en) * 2007-12-06 2010-11-10 晶像股份有限公司 Bank sharing and refresh in a shared multi-port memory device
CN102117182A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Multi-hardware system data processing equipment and storage equipment switching method thereof
CN102142032A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for reading and writing data of distributed file system

Also Published As

Publication number Publication date
CN103309871A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
DE112018002951B4 (en) USING A TRACK FORMAT CODE IN A CACHE CONTROL BLOCK FOR A TRACK IN A CACHE TO PROCESS READ AND WRITE REQUESTS REGARDING THE TRACK IN THE CACHE
TWI364665B (en) Hardware oriented host-side native command queuing tag management
CN104919451B (en) For the Application Programming Interface synchronous with the data of online storage subsystem
US20110138102A1 (en) Data storage management using a distributed cache scheme
CN103946821B (en) data storage architecture extension system and method
US20070094472A1 (en) Method for persistent mapping of disk drive identifiers to server connection slots
WO2008112668A1 (en) Unified support for solid state storage
CN102841854A (en) Method and system for executing data reading based on dynamic hierarchical memory cache (hmc) awareness
CN103858111B (en) A kind of realization is polymerized the shared method, apparatus and system of virtual middle internal memory
US20160179672A1 (en) Mirroring a cache having a modified cache state
US10628314B2 (en) Dual clusters of fully connected integrated circuit multiprocessors with shared high-level cache
EP2637091A1 (en) Management interface for multiple storage subsystems virtualization
CN103559319A (en) Cache synchronization method and equipment for distributed cluster file system
US20160100027A1 (en) Mechanism for universal parallel information access
CN104536916B (en) The referee method and multiple nucleus system of a kind of multiple nucleus system
JP2008287405A5 (en)
CN106155575A (en) Method and apparatus for the cache of extension storage system
CN108664415B (en) Shared replacement policy computer cache system and method
CN114047892A (en) Screen projection control method and device, storage medium and electronic equipment
CN111736945A (en) Virtual machine thermal migration method, device, equipment and medium based on intelligent network card
CN105302489B (en) A kind of remote embedded accumulator system of heterogeneous polynuclear and method
CN103309871B (en) File read/write method and electronic equipment
JP2005285086A5 (en)
US9069471B2 (en) Passing hint of page allocation of thin provisioning with multiple virtual volumes fit to parallel data access
EP3014455A1 (en) Flushing dirty data from cache memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant