CN112306418B - Data recording method based on RawFS in VxWorks environment - Google Patents

Data recording method based on RawFS in VxWorks environment Download PDF

Info

Publication number
CN112306418B
CN112306418B CN202011242251.2A CN202011242251A CN112306418B CN 112306418 B CN112306418 B CN 112306418B CN 202011242251 A CN202011242251 A CN 202011242251A CN 112306418 B CN112306418 B CN 112306418B
Authority
CN
China
Prior art keywords
color
data
recording
partition
recording block
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
CN202011242251.2A
Other languages
Chinese (zh)
Other versions
CN112306418A (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.)
707th Research Institute of CSIC Jiujiang Branch
Original Assignee
707th Research Institute of CSIC Jiujiang Branch
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 707th Research Institute of CSIC Jiujiang Branch filed Critical 707th Research Institute of CSIC Jiujiang Branch
Priority to CN202011242251.2A priority Critical patent/CN112306418B/en
Publication of CN112306418A publication Critical patent/CN112306418A/en
Application granted granted Critical
Publication of CN112306418B publication Critical patent/CN112306418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a data recording method based on RawFS in a VxWorks environment, which comprises the following steps: the method comprises the following steps: mounting a disk partition RawFS file system; formatting the recording blocks, and marking the color marking stamp of each formatted recording block as color one; storing data to a recording block, and changing a color marking stamp of the recording block into a second color; when the disk partition is full, writing in the wraparound disk partition is carried out, the color marking stamp of the recording block of the wraparound written data is changed into a third color, and the subsequent data storage covers the historical data; and searching a historical data writing position according to the color mark stamp, and performing data packaging and wraparound disk writing. The invention can realize the balance of erasing and writing times of each area of the disk, can automatically cover the historical recording area after the data is recorded, does not generate disk fragments, effectively prolongs the service life of the disk and improves the utilization efficiency of disk storage.

Description

Data recording method based on RawFS in VxWorks environment
Technical Field
The invention relates to the technical field of VxWorks program development, in particular to a data recording method based on RawFS in a VxWorks environment.
Background
VxWorks is an embedded operating system, and is generally applied to various industries due to the advantages of small kernel, multitask, strong real-time performance, high starting speed and the like.
The VxWorks is completely compatible with file systems such as FAT12, FAT16 and FAT32 under MS-DOS, so that the data recording function is generally realized based on the FAT format in the VxWorks environment. However, in the FAT format, when the data disk is written, the attributes such as the size of the file in the root directory or FAT table, the modification time and the like are updated at the same time, so the erasing and writing times of the root directory or FAT table area in the disk are obviously more than those of other areas, and the service life of the disk is greatly shortened by frequent reading and writing operations in a fixed area due to the limited reading and writing times of the disk; meanwhile, in a long-time large-capacity data recording application occasion, the disk space is full, and disk fragments are easy to generate when a history file is deleted and a new file is created.
Therefore, how to provide a data recording method based on the RawFS under the VxWorks environment without generating disk fragments and with high utilization efficiency of disk storage is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, in order to solve the problem that disk fragments are generated due to frequent erasing, writing and file deletion covering of the FAT partition table of the conventional FAT-based file system, the invention provides a data recording method based on the RawFS in a VxWorks environment.
In order to achieve the purpose, the invention adopts the following technical scheme:
a data recording method based on RawFS under a VxWorks environment is characterized in that a disk partition of a VxWorks system comprises a plurality of recording blocks, and each recording block is provided with a color marking stamp; the data recording method of the disk partition comprises the following steps:
firstly, mounting a RawFS file system in the disk partition;
step two, formatting the recording blocks under the RawFS file system, and marking the color marking stamp of each formatted recording block as color one;
step three, storing the data into a recording block, and changing the color marking stamp of the recording block into a color two;
step four, judging whether the current disk partition is fully written, if the current disk partition is fully written, writing in the wraparound disk partition, changing a color mark stamp of a recording block of wraparound write-in data into a color III, and storing subsequent data to cover historical data;
step five, searching a historical data writing position according to the color marking stamp, continuously storing data to a recording block at the historical writing position, and changing the color marking stamp of the recording block in which the data is written into the color marking stamp mark of the recording block before the historical writing position;
and step six, judging whether the current disk partition is fully written, if so, writing in the wraparound disk partition, changing the color marking stamp of the recording block of the wraparound write-in data into a color different from that of the recording block of the current disk partition, wherein the color is two and three, storing the subsequent data to cover the historical data, and repeatedly executing the step six.
Preferably, the first step specifically includes:
and judging whether the file system mounted in the disk partition is a RawFS file system, if not, unloading the current file system, mounting the RawFS file system, and entering the step two.
Preferably, the first step further comprises:
and judging whether the disk partition mounts the file system or not, if not, acquiring a current disk partition pointer, mounting the RawFS file system, and entering the step two.
Preferably, the disk partition further includes a DBR section for recording information of the partition number, the sector size, and the cluster size.
Preferably, the number of partitions, the size of sectors and the size of clusters are obtained according to a DBR (distributed Bragg Reflector) area of a disk, and recording blocks with corresponding sizes are divided by combining the size of single data recording of a RawFS (random File System).
Preferably, the third step specifically includes:
storing data to a recording block and performing data encapsulation, including adding time stamp information to each single time of original data, caching the original data into the recording block, and updating the color marking stamp by the recording block when the recording block is in a full state.
Preferably, the fourth step specifically includes:
the wrap-around disk writing comprises: automatically jumping to the initial position of the next storage partition when the data recording space of the current disk partition is full; and when the data recording space of all the disk partitions is full, automatically jumping to the initial position of the first storage partition, and covering the longest historical recording data.
Preferably, the step five specifically includes:
and (3) partition traversal: reading the color marking stamp marking information of the head recording block and the tail recording block of the current disk partition, and if the color marks are inconsistent, determining that the current partition is a historical write position partition, and traversing the partition successfully; otherwise, reading the next disk partition until all disk partitions are traversed;
traversing in the partition: and traversing by adopting a binary search method according to the color marking stamp marking information of the recording block in the determined historical writing position partition to determine the historical writing position recording block.
Preferably, the sixth step includes:
according to the marking information of the color marking stamp of the recording block, judging that the disk partition is not fully written, and changing the color marking stamp of the recording block of the written data into the color marking stamp of the recording block before the historical writing position;
judging that the disk partition is fully written and identifying the mark of the color mark stamp of the recording block of the current disk partition according to the mark information of the color mark stamp of the recording block:
if the color marking stamp of the recording block of the current disk partition is a color two, changing the color marking stamp of the recording block of the wrap-around write-in data to be a color three or a new color;
and if the color marking stamp of the recording block of the current disk partition is the third color, changing the color marking stamp of the recording block of the wrap-around write-in data to be the second color or the new color.
Through the technical scheme, compared with the prior art, the invention has the beneficial effects that:
in a data recording application occasion based on a VxWorks system, due to the fact that frequent erasing and writing of an FAT partition table in a traditional FAT file system are avoided, the erasing and writing times of a disk are reduced, meanwhile, the erasing and writing times of all areas of the disk are balanced, the history writing position is automatically memorized by power-off restarting, the problem that a fixed area is frequently operated is effectively avoided, and the service life of the disk is effectively prolonged. The invention also supports the wrap-around writing of the disk partition, and the history recording area can be automatically covered after the disk is full, and no disk fragment is generated, thereby improving the utilization efficiency of disk storage.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts;
FIG. 1 is a flow chart of a data recording method based on RawFS in a VxWorks environment;
FIG. 2 is a disk partition record data storage structure according to the present invention;
FIG. 3 is a flow chart of the disk mount RawFS file system of the present invention;
FIG. 4 is a schematic diagram of a disk storage partition history location according to the present invention;
FIG. 5 is a flow chart of the present invention for traversing search history locations;
FIG. 6 is a schematic diagram of a wrap-around write disk partition for recording data according to the present invention;
FIG. 7 is a flow chart of data encapsulation and wrap-around writing according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a flow chart of a data recording method based on RawFS in a VxWorks environment of the invention, and FIG. 2 is a disk partition recording data storage structure of the invention. As shown in fig. 2, the disk partition of the VxWorks system in the present embodiment includes a plurality of recording blocks, each having a color mark stamp.
In this embodiment, in the RawFS file system, the entire disk partition is regarded as a file, and in order to implement functions of writing data from a history location and storing data for playback (read) after a power-off restart, the disk partition is allocated according to the recording data storage structure shown in fig. 2.
In one embodiment, a disk partition includes an initial segment and a number of recording blocks (blocks). The initial section is a DBR section of a disk partition and is used for recording information such as the number of partitions, the size of a sector, the size of a cluster and the like; the recording block is composed of a plurality of data units, and 1byte is reserved at the end of each recording block as a color marking stamp.
In one embodiment, the number of partitions, the size of sectors and the size of clusters are obtained according to a DBR (distributed Bragg Reflector) area of a disk, and recording blocks with corresponding sizes are divided according to the size of single data record of a RawFS (random File System).
As shown in fig. 1, the method for recording data in a disk partition based on RawFS in a VxWorks environment includes the following steps:
s1, mounting a RawFS file system in a disk partition.
In an embodiment, whether the file system is mounted in the disk partition is judged, if not, a current disk partition pointer is obtained, the RawFS file system is mounted, and S2 is entered.
In an embodiment, if the file system is mounted on the disk partition, whether the file system mounted on the disk partition is a rawFS file system is judged, if not, the current system is unloaded, such as a default DosFs file system of Vxworks, the rawFS file system is mounted, and S2 is entered.
S2, formatting the recording blocks under the RawFS file system, and marking the color marking stamp of each formatted recording block as color one.
In one embodiment, the color-marking stamp will be filled with the default white mark when the disk partition is formatted.
And S3, storing the data to the recording block, and changing the color marking stamp of the recording block into a color II.
In one embodiment, storing data to a recording block and performing data encapsulation includes adding timestamp information to each time of original data, caching the original data into the recording block, and updating a color marking stamp by the recording block when the recording block is in a full state.
In this embodiment, initially, when the recording data is written to the disk, the color mark stamp of each recording block after the data is written is filled with a red mark.
And S4, after the disk partition is fully written, writing in the wraparound disk partition, changing the color mark stamp of the recording block of the wraparound written data into a third color, and storing the subsequent data to cover the historical data.
In one embodiment, when the data recording space of the current disk partition is full, the current disk partition automatically jumps to the starting position of the next storage partition; and when the data recording space of all the disk partitions is full, automatically jumping to the initial position of the first storage partition, realizing wrap-around writing, and covering the longest historical recording data.
In this embodiment, when the disk is full and rewound, the color mark is replaced, and as shown in fig. 4, the color mark stamp changes from red to black after the disk partition is full.
And S5, searching a data history writing position according to the color marking stamp, and returning to the third step or the fourth step.
In one embodiment, the historical write location traversal is divided into a partition traversal and a location-specific traversal.
And (3) partition traversal: reading the color marking stamp marking information of the head recording block and the tail recording block of the current disk partition, and if the color marks are inconsistent, determining that the current partition is a historical write position partition, and traversing the partition successfully; otherwise, reading the next disk partition until all disk partitions are traversed;
traversing in the partition: and traversing by adopting a binary search method according to the color marking stamp marking information of the recording block in the determined historical writing position partition to determine the historical writing position recording block.
In one embodiment, according to the marking information of the color marking stamp of the recording block, judging that the disk partition is not fully written, and returning to S3; and judging that the disk partition is fully written and writing in the wrap-around disk partition according to the marking information of the color marking stamp of the recording block, and returning to S4.
Thanks to the regular change of the color-marking, it is possible to search the entire disk storage area for a history of writing locations. For the search of the history writing position as in fig. 4, the sequential traversal or other methods can be used. In order to increase the search speed, a binary search method (also called binary search method) is recommended.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
Mounting a disk partition RawFS file system:
in order to apply the present invention in a VxWorks environment, it is necessary to ensure that the disk storage partition has mounted the RawFS file system. As shown in fig. 3, firstly, it is determined whether a file system exists in the storage partition, and if no file system is mounted in the partition, the RawFS file system is directly mounted; otherwise, the existing file system is uninstalled, and then the RawFS file system is mounted.
And formatting the disk partitions:
the storage partition is formatted as shown in the storage structure of FIG. 2 by accessing the DBR information of the disk partition, with the color-coded region filled in white by default.
Traversing the history writing position:
as shown in FIG. 5, the historical write location traversal is divided into a partition traversal and a location-specific traversal.
And (3) partition traversal: reading color marking stamp information of a head recording block and a tail recording block of the current partition, if the color marks are not consistent, if the color marking stamp of the head recording block is red and the color marking stamp of the tail recording block is white, the historical writing position is in the current partition and is stored in the partition for the first time, the partition traversal is successful, or the color marking stamp of the head recording block is black and the color marking stamp of the tail recording block is red, the historical writing position is in the current partition and is stored in the partition for wrap-around writing, and the partition traversal is successful; otherwise, reading the next partition until all partitions are traversed.
Traversing the specific position: refers to traversal at a specific location within a defined partition. And the quick traversal of a specific position can be realized by adopting a binary search method. And the traversal also judges whether the area between the two recording blocks is located according to whether the color marking stamp marks of the two internal recording blocks are the same.
Data encapsulation and wraparound write-in steps:
as shown in fig. 7, after the searching of the history writing position is completed, the recording program starts to receive the original recorded data, encapsulates the timestamp information at the head of the data to form a cell unit, and then caches the cell unit into the data recording block memory area. When the block buffer area of the data recording block is satisfied (when a new cell unit cannot be accommodated), the disk writing action and the backward movement of the write pointer are triggered, and whether the write pointer reaches the end of the disk storage area is detected, if so, the write pointer automatically wraps back to the initial position.
After the write pointer wraps back to the initial position, the mark of the color marking stamp of the recording block of the current disk partition is identified:
if the color marking stamp of the recording block of the current disk partition is color two, changing the color marking stamp of the recording block of the wrap-around write-in data to color three;
and if the color marking stamp of the recording block of the current disk partition is the color three, changing the color marking stamp of the recording block of the wrap-around write-in data to be the color two.
If the color mark stamp of the data write block of the current round is changed into a new color, the data write of the current round is used. And when the historical data writing position needs to be searched for again according to the color marking stamp for data writing, changing the color marking stamp of the recording block of the written data into the new color marked by the color marking stamp of the recording block before the historical writing position.
The data recording method based on RawFS in the VxWorks environment provided by the invention is described in detail, a specific example is applied in the method to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A data recording method based on RawFS under a VxWorks environment is characterized in that a disk partition of a VxWorks system comprises a plurality of recording blocks, and each recording block is provided with a color marking stamp; the data recording method of the disk partition comprises the following steps:
firstly, mounting a RawFS file system in the disk partition;
step two, formatting the recording blocks under the RawFS file system, and marking the color marking stamp of each formatted recording block as color one;
step three, storing data to a recording block, and changing a color marking stamp of the recording block into a color two;
step four, judging whether the current disk partition is fully written, if the current disk partition is fully written, writing in the wraparound disk partition, changing a color mark stamp of a recording block of wraparound write-in data into a color III, and storing subsequent data to cover historical data;
step five, searching a historical data writing position according to the color marking stamp, continuously storing data to a recording block at the historical writing position, and changing the color marking stamp of the recording block in which the data is written into the color marking stamp mark of the recording block before the historical writing position;
step six, judging whether the current disk partition is fully written, if so, writing in the wraparound disk partition, changing a recording block color marking stamp of wraparound write-in data into a color different from that of the recording block color marking stamp of the current disk partition, wherein the color comprises a color two and a color three, storing subsequent data to cover historical data, and repeatedly executing the step six; the wrap-around disk writing comprises: automatically jumping to the initial position of the next storage partition when the data recording space of the current disk partition is full; and when the data recording space of all the disk partitions is full, automatically jumping to the initial position of the first storage partition, and covering the longest historical recording data.
2. The data recording method based on RawFS under a VxWorks environment according to claim 1, wherein the first step specifically comprises:
and judging whether the file system mounted in the disk partition is a RawFS file system, if not, unloading the current file system, mounting the RawFS file system, and entering the step two.
3. The data recording method based on RawFS in VxWorks environment according to claim 2, wherein the first step further comprises:
and judging whether the disk partition mounts the file system or not, if not, acquiring a current disk partition pointer, mounting the RawFS file system, and entering the step two.
4. A RawFS-based data recording method in VxWorks environment according to claim 1, wherein said disk partition further comprises a DBR section for recording information of partition number, sector size, and cluster size.
5. The data recording method based on RawFS under VxWorks environment of claim 4, wherein the number of partitions, the size of sectors, and the size of clusters are obtained according to a DBR region of a disk, and recording blocks with corresponding sizes are divided according to the size of single data recording of a RawFS file system.
6. The data recording method based on RawFS in VxWorks environment according to claim 1, wherein the third step specifically comprises:
storing data to a recording block and performing data encapsulation, including adding time stamp information to each single time of original data, caching the original data into the recording block, and updating the color marking stamp by the recording block when the recording block is in a full state.
7. The data recording method based on RawFS in VxWorks environment according to claim 1, wherein the step five specifically comprises:
and (3) partition traversal: reading the color marking stamp mark information of the head recording block and the tail recording block of the current disk partition, and if the color marks are inconsistent, determining that the current partition is a historical write position partition, and traversing the partition successfully; otherwise, reading the next disk partition until all disk partitions are traversed;
traversing in a partition: and traversing by adopting a binary search method according to the color marking stamp marking information of the recording block in the determined historical writing position partition to determine the historical writing position recording block.
8. The method for data recording based on RawFS in VxWorks environment according to claim 1, wherein the sixth step comprises:
according to the marking information of the color marking stamp of the recording block, judging that the disk partition is not fully written, and changing the color marking stamp of the recording block of the written data into the color marking stamp of the recording block before the historical writing position;
judging that the disk partition is fully written and identifying the mark of the color mark stamp of the recording block of the current disk partition according to the mark information of the color mark stamp of the recording block:
if the color marking stamp of the recording block of the current disk partition is a color two, changing the color marking stamp of the recording block of the wrap-around write-in data to be a color three or a new color;
and if the color marking stamp of the recording block of the current disk partition is the third color, changing the color marking stamp of the recording block of the wrap-around write-in data to be the second color or a new color.
CN202011242251.2A 2020-11-09 2020-11-09 Data recording method based on RawFS in VxWorks environment Active CN112306418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011242251.2A CN112306418B (en) 2020-11-09 2020-11-09 Data recording method based on RawFS in VxWorks environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011242251.2A CN112306418B (en) 2020-11-09 2020-11-09 Data recording method based on RawFS in VxWorks environment

Publications (2)

Publication Number Publication Date
CN112306418A CN112306418A (en) 2021-02-02
CN112306418B true CN112306418B (en) 2022-10-21

Family

ID=74325496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011242251.2A Active CN112306418B (en) 2020-11-09 2020-11-09 Data recording method based on RawFS in VxWorks environment

Country Status (1)

Country Link
CN (1) CN112306418B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655962A (en) * 2021-08-18 2021-11-16 天津津航计算技术研究所 Method for shortening file writing time under VxWorks7 embedded operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994014151A1 (en) * 1992-12-15 1994-06-23 Viacom International Inc. Method for updating the color look up tables of video display devices to display digital video signals
JP2007286710A (en) * 2006-04-13 2007-11-01 Fuji Xerox Co Ltd Information processor and information processing method, and computer program
JP2007299094A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Information processor, information processing method, and computer program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7614051B2 (en) * 2003-12-16 2009-11-03 Microsoft Corporation Creating file systems within a file in a storage technology-abstracted manner
US20070248311A1 (en) * 2006-03-31 2007-10-25 Nathaniel Wice System and method for transferring data between electronic data storage devices
US8966396B2 (en) * 2011-01-14 2015-02-24 Apple Inc. Information management with non-hierarchical views

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994014151A1 (en) * 1992-12-15 1994-06-23 Viacom International Inc. Method for updating the color look up tables of video display devices to display digital video signals
JP2007286710A (en) * 2006-04-13 2007-11-01 Fuji Xerox Co Ltd Information processor and information processing method, and computer program
JP2007299094A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Information processor, information processing method, and computer program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于VxWorks操作系统的网管系统的实现;武冰梅等;《电信技术》;20060520(第05期);第71-75页 *

Also Published As

Publication number Publication date
CN112306418A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US20180307413A1 (en) Control of storage of data in a hybrid storage system
US7127551B2 (en) Flash memory management method
US7984231B2 (en) Information recording medium access device, and data recording method
CA1187197A (en) Segmented storage logging and controlling
US7694087B2 (en) Duplicate data storing system, duplicate data storing method, and duplicate data storing program for storage device
US20090132621A1 (en) Selecting storage location for file storage based on storage longevity and speed
CN107817946B (en) Method and device for reading and writing data of hybrid storage device
CN108628542B (en) File merging method and controller
CN111158602A (en) Data layered storage method, data reading method, storage host and storage system
CN112306418B (en) Data recording method based on RawFS in VxWorks environment
CN111797058A (en) Universal file system and file management method
KR100954603B1 (en) A log file of file system and method for recovering file system
KR100895429B1 (en) Flash memory file apparatus and mounting method of the same
CN108958657B (en) Data storage method, storage device and storage system
CN107422990B (en) Dynamic migration method and device
CN109213421B (en) Storage recording method and device
CN108304331B (en) NorFlash-based circular queue type data storage method and device
CN113609245B (en) Method and system for expanding capacity of index by fragments
EP1684288A1 (en) Information recorder, information recording method, and recording medium containing program
CN111949212B (en) File system and file management method based on self-defined open channel SSD
CN111913664B (en) Data writing method and device
CN114741382A (en) Caching method and system for reducing read time delay
CN113553005B (en) Data read-write method, device and equipment for simplifying LUN
CN114706536B (en) Metadata management method and device, electronic equipment and readable storage medium
CN114925020B (en) Snapshot version data migration method based on data increment writing mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant