CN110032542B - Cramfs file system management method and device and electronic equipment - Google Patents

Cramfs file system management method and device and electronic equipment Download PDF

Info

Publication number
CN110032542B
CN110032542B CN201910317831.4A CN201910317831A CN110032542B CN 110032542 B CN110032542 B CN 110032542B CN 201910317831 A CN201910317831 A CN 201910317831A CN 110032542 B CN110032542 B CN 110032542B
Authority
CN
China
Prior art keywords
file
operating system
initial
attribute information
decompressed
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
CN201910317831.4A
Other languages
Chinese (zh)
Other versions
CN110032542A (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.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing Electric Co 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 Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN201910317831.4A priority Critical patent/CN110032542B/en
Publication of CN110032542A publication Critical patent/CN110032542A/en
Application granted granted Critical
Publication of CN110032542B publication Critical patent/CN110032542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention provides a cramfs file system management method, a cramfs file system management device and electronic equipment, and relates to the technical field of cramfs file systems. The method comprises the following steps: acquiring an initial packed file of a cramfs file system; decompressing the initial packed file to obtain a decompressed file which accords with the attributes of the Windows operating system, and simultaneously recording the initial attribute information of the initial packed file, wherein the initial attribute information accords with the attributes of the Linux operating system; and packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system. The method can solve the problem that when the cramfs file system is used for developing the application program in the Windows operating system, the frequent switching of the operating system is required, which is not beneficial to the development of the application program.

Description

Cramfs file system management method and device and electronic equipment
Technical Field
The invention relates to the technical field of cramfs file systems, in particular to a cramfs file system management method, a cramfs file system management device and electronic equipment.
Background
The cramfs file system is a compression-type file system, and can directly decompress the cramfs file system in a Linux operating system. Because the Windows operating system and the Linux operating system have different decompression modes for the cramfs file system, a virtual machine is generally required to be installed in the Windows operating system to run the Linux operating system, so as to decompress the cramfs file system. Therefore, when the cramfs file system is used to develop the application program in the Windows operating system, frequent switching of the operating system is required, which is not favorable for developing the application program.
Disclosure of Invention
The problem solved by the invention is that when the cramfs file system is used for developing the application program in the Windows operating system, the frequent switching of the operating system is required, which is not beneficial to the development of the application program.
In order to solve the above problems, the technical solution of the present invention is realized as follows:
in a first aspect, the present invention provides a cramfs file system management method, which is applied to a Windows operating system, and includes: acquiring an initial packed file of a cramfs file system; decompressing the initial packed file to obtain a decompressed file which accords with the attributes of the Windows operating system, and simultaneously recording the initial attribute information of the initial packed file, wherein the initial attribute information accords with the attributes of the Linux operating system; and packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system. Compared with the prior art, the cramfs file system management method provided by the invention can realize the decompression of the cramfs file system without installing a virtual machine under a Windows operating system by changing the attribute information of the cramfs file system when the cramfs file system is decompressed, and the cramfs file system packaged under the Windows operating system can also be decompressed under a Linux operating system. The method is not only easy to use, but also convenient for the development and use of the application program.
Further, the step of decompressing the initial packed file to obtain a decompressed file conforming to the property of the Windows operating system includes: and changing the initial attribute information of the initial packed file which accords with the attribute of the Linux operating system into the changed attribute information which accords with the attribute of the Windows operating system so as to obtain the decompressed file which accords with the attribute of the Windows operating system. By changing the attribute information of the initial packed file from the attribute conforming to the Linux operating system to the attribute conforming to the Windows operating system, the cramfs file system can be decompressed without installing a virtual machine under the Windows operating system, thereby avoiding the switching between the operating systems and facilitating the development of application programs.
Further, the step of packing the decompressed file according to the initial attribute information of the initial packed file to obtain a target packed file conforming to the attribute of the Linux operating system comprises the following steps: and changing the attribute information of the decompressed file conforming to the Windows operating system attribute into target attribute information conforming to the Linux operating system attribute according to the initial attribute information to obtain a target packed file conforming to the Linux operating system. When the decompressed file is packaged under the Windows operating system, the attribute information of the decompressed file is changed from the attribute conforming to the Windows operating system to the attribute conforming to the Linux operating system, a virtual machine is not required to be installed under the operating system, the cramfs file system can be packaged, and the packaged target packaged file can be decompressed under the Linux operating system, so that the switching between the operating systems is avoided, and the development and the use of an application program are facilitated.
Further, the step of packing the decompressed file according to the initial attribute information of the initial packed file to obtain the target packed file conforming to the attribute of the Linux operating system further includes: and packaging the decompressed file conforming to the property of the Windows operating system by adopting an encryption algorithm to obtain an encrypted target packaged file conforming to the property of the Linux operating system. And an encryption strategy is added in the process of packaging the decompressed file under the Windows operating system, so that the security of the cramfs file system is enhanced.
Further, the method further comprises: and modifying or adding the application program in the decompressed file which conforms to the property of the Windows operating system.
In a second aspect, the present invention provides a cramfs file system management device, which is applied to a Windows operating system, and comprises: the acquisition module is used for acquiring an initial packed file of the cramfs file system; the decompression module is used for decompressing the initial packed file to obtain a decompressed file which accords with the attributes of the Windows operating system, and simultaneously recording the initial attribute information of the initial packed file, wherein the initial attribute information accords with the attributes of the Linux operating system; and the packaging module is used for packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system. Compared with the prior art, the cramfs file system management device provided by the invention can realize the decompression of the cramfs file system without installing a virtual machine under a Windows operating system by changing the attribute information of the cramfs file system when the cramfs file system is decompressed, and the cramfs file system packaged under the Windows operating system can also be decompressed under a Linux operating system. The method is not only easy to use, but also convenient for the development and use of the application program.
Further, the decompression module is used for changing the initial attribute information of the initial packed file, which accords with the attribute of the Linux operating system, into the changed attribute information, which accords with the attribute of the Windows operating system, so as to obtain the decompressed file which accords with the attribute of the Windows operating system. By changing the attribute information of the initial packed file from the attribute conforming to the Linux operating system to the attribute conforming to the Windows operating system, the cramfs file system can be decompressed without installing a virtual machine under the Windows operating system, thereby avoiding the switching between the operating systems and facilitating the development of application programs.
Further, the packaging module is used for changing the attribute information of the decompressed file conforming to the Windows operating system attribute into target attribute information conforming to the Linux operating system attribute according to the initial attribute information so as to obtain a target packaged file conforming to the Linux operating system. When the decompressed file is packaged under the Windows operating system, the attribute information of the decompressed file is changed from the attribute conforming to the Windows operating system to the attribute conforming to the Linux operating system, a virtual machine is not required to be installed under the operating system, the cramfs file system can be packaged, and the packaged target packaged file can be decompressed under the Linux operating system, so that the switching between the operating systems is avoided, and the development and the use of an application program are facilitated.
In a third aspect, the present invention provides an electronic device, which includes a memory storing a computer program and a processor, wherein the computer program is read by the processor and executed to implement the cramfs file system management method. Compared with the prior art, the electronic equipment provided by the invention changes the attribute information of the cramfs file system by the management method of the cramfs file system, can decompress the cramfs file system without installing a virtual machine under a Windows operating system, and can also decompress the cramfs file system packaged under the Windows operating system under a Linux operating system. The method is not only easy to use, but also convenient for the development and use of the application program.
In a fourth aspect, the present invention provides a memory having stored thereon a computer program which, when read and executed by a processor, implements the cramfs file system management method described above. Compared with the prior art, the memory provided by the invention has the advantages that the cramfs file system management method realized when the computer program stored in the memory is read by the processor and run is realized, the attribute information of the cramfs file system is changed, the cramfs file system can be decompressed without installing a virtual machine under a Windows operating system, and the cramfs file system packaged under the Windows operating system can also be decompressed under a Linux operating system. The method is not only easy to use, but also convenient for the development and use of the application program.
Drawings
Fig. 1 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a cramfs file system management method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another cramfs file system management method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a cramfs file system management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another cramfs file system management apparatus according to an embodiment of the present invention.
Description of reference numerals:
100-an electronic device; 110-a memory; 120-a processor; 130-a communication module; 140-cramfs file system management means; 141-an acquisition module; 142-a decompression module; 143-a packing module; 144-running module.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, a block diagram of an electronic device 100 is shown, where the electronic device 100 includes: memory 110, processor 120, and a communication unit (not shown). The memory 110, the processor 120 and the communication unit are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used to store programs or data. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. Such as a software function module and a computer program included in the cramfs file system management apparatus, and the computer program is read and executed by the processor 120, thereby implementing the cramfs file system management method. Processor 120 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but may also be a Digital Signal Processor (DSP)), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 120 may be any conventional processor or the like.
The communication unit is used for establishing a communication connection between the electronic device 100 and another communication terminal through the network, and for transceiving data through the network.
The operating system of the electronic device 100 may be a Windows operating system, and the electronic device 100 may be, but is not limited to, a computer, a notebook, or the like.
It should be understood that the structure shown in fig. 1 is only a schematic structural diagram of the electronic device 100, and the electronic device 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 is a schematic flow chart of a cramfs file system management method according to an embodiment of the present invention, and it should be noted that the cramfs file system management method according to the present invention is not limited by the specific sequence shown in fig. 2 and described below. It should be understood that in other embodiments, the order of some steps in the cramfs file system management method according to the present invention may be interchanged according to actual needs, or some steps may be omitted or deleted. The specific process shown in fig. 2 will be described in detail below. Referring to fig. 2, the present embodiment describes a processing flow of the electronic device 100, and the method includes:
step S101, obtaining an initial packed file of the cramfs file system.
In this embodiment, a source code package of the cramfs file system is downloaded under the Windows operating system of the electronic device 100, so as to obtain an initial packaged file of the cramfs file system. The initial packed file of the cramfs file system is a source code packet of the cramfs file system, and the attribute information of the initial packed file conforms to the attribute of the Linux operating system, i.e. the initial packed file cannot be directly decompressed under the Windows operating system.
And S102, decompressing the initial packed file to obtain a decompressed file which accords with the attributes of the Windows operating system, and simultaneously recording the initial attribute information of the initial packed file, wherein the initial attribute information accords with the attributes of the Linux operating system.
In this embodiment, the initial attribute information of the initial packed file, which conforms to the attribute of the Linux operating system, is changed into the changed attribute information of the initial packed file, which conforms to the attribute of the Windows operating system, so as to obtain the decompressed file conforming to the attribute of the Windows operating system.
It is understood that the cramfs file system includes an inode (inode) in which attribute information is recorded and Metadata (Metadata, meta), and information such as attributes, file names, modification times, affiliations, and the like is recorded in the inode. Initial attribute information of the initial package file is recorded in the inode. When the initial packed file is decompressed, the initial attribute information which is recorded by the inode of the initial packed file and accords with the attribute of the Linux operating system is changed into the changed attribute information which accords with the attribute of the Windows operating system, so that the decompressed file which accords with the attribute of the Windows operating system can be obtained, and meanwhile, the initial attribute information is recorded before the attribute information in the inode is changed into the changed attribute information from the initial attribute information. The initial attribute information includes information such as read, write, soft connection, etc. Therefore, the initial attribute information is changed from the attribute conforming to the Linux operating system to the attribute conforming to the Windows operating system, and the initial packed file conforming to the information of reading, writing, soft connection and the like of the Linux operating system is changed into a decompressed file conforming to the information of reading, writing, soft connection and the like of the Windows operating system.
Specifically, a decompression tool for decompressing the initial packed file of the cramfs file system may be developed in the Windows operating system of the electronic device 100, a decompression tool with a suffix name exe may be generated, and the initial packed file conforming to the information of the Linux operating system such as read, write, and soft connection may be changed into a decompressed file conforming to the information of the Windows operating system such as read, write, and soft connection by running the decompression tool with the suffix name exe.
And step S103, packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system.
In this embodiment, the attribute information of the decompressed file conforming to the attributes of the Windows operating system is changed into the target attribute information conforming to the attributes of the Linux operating system according to the initial attribute information, so as to obtain the target packed file conforming to the Linux operating system.
It is understood that the attribute information of the decompressed file is the modified attribute information in step S102. When the decompressed file is packaged, the modified attribute information which is recorded in the inode of the decompressed file and accords with the Windows operating system attribute is modified into the target attribute information which accords with the Linux operating system attribute according to the initial attribute information, and then the target packaged file which accords with the Linux operating system can be obtained. That is, the target attribute information obtained after the change is the same as the initial attribute information, so that the target packed file packed in the Windows operating system can be normally decompressed under the Linux operating system.
Specifically, a packaging tool for packaging the decompressed file of the cramfs file system may be developed in the Windows operating system of the electronic device 100, a packaging tool with a suffix name exe may be generated, and the decompressed file conforming to the attributes of the Windows operating system may be changed into a target packaged file conforming to the attributes of the Linux operating system by running the packaging tool with the suffix name exe.
Further, in the present embodiment, due to the open source of the cramfs file system, the security is not sufficient in the product application. Therefore, in the process of packaging the decompressed file, the decompressed file which accords with the property of the Windows operating system is packaged by adopting an encryption algorithm to obtain an encrypted target packaged file which accords with the property of the Linux operating system. Thereby increasing the security of the cramfs file system.
It can be understood that, in the process of packaging the decompressed file, the MD5 code encryption algorithm is used to encrypt the decompressed file, so as to obtain an encrypted target packaged file. When the target package file is decompressed in the Linux operating system, MD5 code verification is required to confirm whether the target package file is tampered or destroyed. If the target packaging file is destroyed, the MD5 code verification cannot be passed. And the Linux operating system is also provided with a backed-up target packaging file, when the target packaging file is not verified for the first time, the MD5 code verification can be performed on the backed-up target packaging file again, and if the MD5 code verification fails, the target packaging file is confirmed to be tampered or damaged.
Further, referring to fig. 3, the cramfs file system management method further includes the following steps:
and step S104, modifying or adding the application program in the decompressed file conforming to the property of the Windows operating system.
In this embodiment, after the Windows operating system of the electronic device 100 decompresses the initial packed file of the cramfs file system to obtain a decompressed file that conforms to the attributes of the Windows operating system, an application program may be modified or added to the decompressed file.
The application program may be a power terminal application program. The power terminal application program is applied to a power terminal acquisition system, the power terminal acquisition system runs based on a Linux operating system, and the power terminal acquisition system further comprises a bootstrap loader, a kernel arm-Linux and a root file system cramfs file system. Therefore, the power terminal application program is developed based on the Windows operating system, and the power terminal application program is operated based on the Linux operating system. Therefore, the target attribute information of the target packed file must meet the attribute of the Linux operating system to ensure that the power terminal application program can normally run on the Linux operating system.
The configuration process of the power terminal acquisition system comprises the following steps: downloading bootloader source codes and performing special modification to increase the function of starting the pulse acquisition of a metering chip; then programming a bootloader program to the development board to guide the development board to load the kernel arm-Linux and the root file system cramfs file system; based on a development board, reconfiguring and modifying a kernel suitable for the operation of the power acquisition system in the Windows operating system, and meanwhile, adding a nandflash bad block detection function and a decryption function for decrypting a target packed file of the cramfs file system; and finally, downloading the target package files of the kernel and cramfs file systems to the development board in the electronic equipment 100. After the configuration of the power terminal acquisition system is completed, the power terminal acquisition system is operated, and then the acquisition of power data can be carried out.
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the cramfs file system management apparatus is given below. Referring to fig. 4, fig. 4 is a functional block diagram of a cramfs file system management device 140 according to an embodiment of the present invention. It should be noted that the fundamental principle and the generated technical effect of the cramfs file system management device 140 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no mention is made in this embodiment, and reference may be made to the corresponding contents in the above embodiments. The cramfs file system management apparatus 140 includes: an acquisition module 141, a decompression module 142, and a packing module 143.
The obtaining module 141 is configured to obtain an initial packed file of the cramfs file system.
It is understood that the obtaining module 141 may perform the above step S101.
The decompression module 142 is configured to decompress the initial packed file to obtain a decompressed file that conforms to the attributes of the Windows operating system, and record initial attribute information of the initial packed file, where the initial attribute information conforms to the attributes of the Linux operating system.
It is understood that the decompression module 142 may perform the step S102.
The packing module 143 is configured to pack the decompressed file according to the initial attribute information of the initial packed file to obtain a target packed file that meets the attribute of the Linux operating system, so that the target packed file is decompressed under the Linux operating system.
It is understood that the packing module 143 may perform the above step S103.
Further, referring to fig. 5, a schematic structural diagram of another cramfs file system management device 140 is shown, where on the basis of the cramfs file system management device 140 shown in fig. 4, the cramfs file system management device 140 shown in fig. 5 further includes a running module 144, and the running module 144 is used for modifying or adding an application program in a decompressed file conforming to the attributes of the Windows operating system.
It is understood that the operation module 144 may perform the step S104.
Alternatively, the modules may be stored in the memory 110 shown in fig. 1 in the form of software or Firmware (Firmware) or may be fixed in an Operating System (OS) of the electronic device 100, and may be executed by the processor 120 in fig. 1. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 110.
In summary, the cramfs file system management method, device and electronic device provided by the embodiments of the present invention obtain the initial package file of the cramfs file system; decompressing the initial packed file to obtain a decompressed file which accords with the attributes of the Windows operating system, and simultaneously recording the initial attribute information of the initial packed file; packing the decompressed file according to the initial attribute information of the initial packed file to obtain a target packed file which accords with the attribute of the Linux operating system, so that the target packed file is decompressed under the Linux operating system; and in the process of packaging the decompressed files, packaging the decompressed files conforming to the attributes of the Windows operating system by adopting an encryption algorithm to obtain encrypted target packaged files conforming to the attributes of the Linux operating system.
It can be seen that under the Windows operating system, the attribute information of the cramfs file system is changed. The decompression of the cramfs file system can be realized without installing a virtual machine under the Windows operating system, and the decompression of the cramfs file system packaged under the Windows operating system can be realized under the Linux operating system. The development of the application program under the Windows operating system and the running under the Linux operating system are realized. And switching of an operating system is reduced in the process of developing the application program, the development of the application program is facilitated, and the operation is easy to operate. Meanwhile, an encryption strategy is added in the process of file decompression and packaging, and the safety of the cramfs file system is enhanced.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A cramfs file system management method is applied to a Windows operating system, and comprises the following steps:
acquiring an initial packed file of a cramfs file system; the cramfs file system comprises index nodes and metadata, wherein the index nodes record attribute information, and the index nodes record attribute, file names, modification time and affiliation information;
changing initial attribute information recorded by an index node of the initial packed file to obtain a decompressed file conforming to the attributes of a Windows operating system, and simultaneously recording the initial attribute information of the initial packed file, wherein the initial attribute information conforms to the attributes of the Linux operating system, the initial attribute information comprises read, write and soft connection information, and the decompressed file conforming to the attributes of the Windows operating system is a decompressed file conforming to the read, write and soft connection information of the Windows operating system;
and packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system.
2. The method of claim 1, wherein the step of modifying the initial attribute information of the inode record of the initial packed file to obtain a decompressed file that conforms to the attributes of the Windows operating system comprises:
and changing the initial attribute information of the initial packed file, which accords with the attribute of the Linux operating system, into the changed attribute information which accords with the attribute of the Windows operating system, so as to obtain the decompressed file which accords with the attribute of the Windows operating system.
3. The method of claim 1, wherein the step of packing the decompressed file according to the initial attribute information of the initial packed file to obtain a target packed file conforming to the attribute of the Linux operating system comprises:
and changing the attribute information of the decompressed file conforming to the Windows operating system attribute into target attribute information conforming to the Linux operating system attribute according to the initial attribute information to obtain a target packed file conforming to the Linux operating system.
4. The method of claim 1, wherein the step of packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file conforming to the attribute of the Linux operating system further comprises:
and packaging the decompressed file conforming to the Windows operating system attribute by adopting an encryption algorithm to obtain an encrypted target packaged file conforming to the Linux operating system attribute.
5. The method of claim 1, further comprising:
and modifying or adding an application program in the decompressed file which conforms to the property of the Windows operating system.
6. A cramfs file system management device, applied to Windows operating system, the device includes:
the acquisition module is used for acquiring an initial packed file of the cramfs file system; the cramfs file system comprises index nodes and metadata, wherein the index nodes record attribute information, and the index nodes record attribute, file names, modification time and affiliation information;
the decompression module is used for changing the initial attribute information recorded by the index node of the initial packed file to obtain a decompressed file conforming to the attributes of the Windows operating system and recording the initial attribute information of the initial packed file, wherein the initial attribute information conforms to the attributes of the Linux operating system, the initial attribute information comprises read, write and soft connection information, and the decompressed file conforming to the attributes of the Windows operating system is a decompressed file conforming to the read, write and soft connection information of the Windows operating system;
and the packaging module is used for packaging the decompressed file according to the initial attribute information of the initial packaged file to obtain a target packaged file which accords with the attribute of the Linux operating system, so that the target packaged file is decompressed under the Linux operating system.
7. The apparatus of claim 6, wherein the decompression module is configured to change the initial attribute information of the initial packed file that conforms to the Linux operating system attributes to the changed attribute information that conforms to the Windows operating system attributes to obtain a decompressed file that conforms to the Windows operating system attributes.
8. The apparatus of claim 6, wherein the packaging module is configured to change the attribute information of the decompressed file conforming to the Windows operating system attribute into target attribute information conforming to the Linux operating system attribute according to the initial attribute information to obtain a target packaged file conforming to the Linux operating system.
9. An electronic device, comprising a memory storing a computer program and a processor, wherein the computer program, when read and executed by the processor, implements the cramfs file system management method of any of claims 1-5.
10. A memory on which a computer program is stored, wherein the computer program, when read and executed by a processor, implements the cramfs file system management method of any of claims 1-5.
CN201910317831.4A 2019-04-19 2019-04-19 Cramfs file system management method and device and electronic equipment Active CN110032542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910317831.4A CN110032542B (en) 2019-04-19 2019-04-19 Cramfs file system management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910317831.4A CN110032542B (en) 2019-04-19 2019-04-19 Cramfs file system management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110032542A CN110032542A (en) 2019-07-19
CN110032542B true CN110032542B (en) 2021-04-27

Family

ID=67239308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910317831.4A Active CN110032542B (en) 2019-04-19 2019-04-19 Cramfs file system management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110032542B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330770A (en) * 2002-05-10 2003-11-21 Ricoh Co Ltd Compressed rom file system
CN1629977A (en) * 2003-12-16 2005-06-22 深圳市朗科科技有限公司 Method for changing mobile storage device function or status
CN102117330A (en) * 2011-03-04 2011-07-06 中山中珩数字科技有限公司 Method and system for protecting integrity of critical area of embedded Linux operating system
CN102200919A (en) * 2010-03-25 2011-09-28 深圳市先阳软件技术有限公司 Method and device for starting operation of embedded operation system
CN103853587A (en) * 2014-03-18 2014-06-11 浪潮集团有限公司 Method for writing flash based on cramfs and JFFS2
CN103914312A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Application processing method, application processing device and electronic device
CN104572140A (en) * 2013-10-10 2015-04-29 深圳中电长城信息安全系统有限公司 Method, device and system for transplanting operating system
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ZA200510092B (en) * 2005-02-28 2007-10-31 Microsoft Corp File system represented inside a database
US20070288531A1 (en) * 2006-06-07 2007-12-13 Giovanni Motta Mobile device with an embedded file system capable of updating file system components
CN101008926A (en) * 2007-01-15 2007-08-01 刘金刚 Method for designing reliable and secure mechanism of operation system
CN102591683B (en) * 2011-12-28 2016-08-17 厦门锐谷通信设备有限公司 The update method of a kind of embedded OS and system
CN103744961B (en) * 2014-01-06 2016-10-19 清华大学 The method improving the non-volatile memories life-span by reconfigurable file system directory tree
AU2016206249A1 (en) * 2015-04-30 2016-11-17 Instant Technology Llc Electronic file transfer and modification system and method
CN105335502B (en) * 2015-10-28 2018-09-25 迈普通信技术股份有限公司 A kind of management method and device of file attribute
CN105468754A (en) * 2015-11-27 2016-04-06 北京指掌易科技有限公司 Method and device for efficiently recompressing file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330770A (en) * 2002-05-10 2003-11-21 Ricoh Co Ltd Compressed rom file system
CN1629977A (en) * 2003-12-16 2005-06-22 深圳市朗科科技有限公司 Method for changing mobile storage device function or status
CN102200919A (en) * 2010-03-25 2011-09-28 深圳市先阳软件技术有限公司 Method and device for starting operation of embedded operation system
CN102117330A (en) * 2011-03-04 2011-07-06 中山中珩数字科技有限公司 Method and system for protecting integrity of critical area of embedded Linux operating system
CN103914312A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Application processing method, application processing device and electronic device
CN104572140A (en) * 2013-10-10 2015-04-29 深圳中电长城信息安全系统有限公司 Method, device and system for transplanting operating system
CN103853587A (en) * 2014-03-18 2014-06-11 浪潮集团有限公司 Method for writing flash based on cramfs and JFFS2
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A compressed file system manager for flash memory based consumer electronics devices;Sungyong Ahn etc;《IEEE Transactions on Consumer Electronics》;20130831;第59卷(第3期);544-549 *
CramFS文件系统;豆笔来巡山;《https://blog.csdn.net/lifexx/article/details/50740532》;20160225;1-5 *
Linux文件系统与索引节点inode浅析;go_luolm;《https://blog.51cto.com/luoliumeng/1832470》;20160731;1-4 *

Also Published As

Publication number Publication date
CN110032542A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
RU2456663C2 (en) Progressive boot strap loading for wireless device
CN111552931A (en) Method and system for adding shell of java code
CN112804097B (en) Private cloud deployment method, device and server
CN114327791A (en) Virtualization-based trusted computing measurement method, device, equipment and storage medium
CN116522368A (en) Firmware decryption analysis method for Internet of things equipment, electronic equipment and medium
EP3764224B1 (en) Resource permission processing method and apparatus, and storage medium and chip
CN110119601B (en) Program reinforcing method and device based on application program installation package
CN113342425A (en) Starting method, device and storage medium of Linux embedded system
CN110032542B (en) Cramfs file system management method and device and electronic equipment
CN111596931A (en) Application program packaging method and device, electronic equipment and readable storage medium
CN116049318A (en) Data storage method and communication device
CN111400771A (en) Target partition checking method and device, storage medium and computer equipment
CN113220314B (en) APP resource loading and APK generation method, device, equipment and medium
CN115688120A (en) Secure chip firmware importing method, secure chip and computer readable storage medium
CN115033870A (en) Anti-malicious tampering code method and device based on big data cloud deployment
WO2019024392A1 (en) Dependency package tool verification method, storage medium, electronic device and system
Westerberg Efficient delta based updates for read-only filesystem images: An applied study in how to efficiently update the software of an ECU
CN111913720A (en) Program deployment method and device
CN110681153B (en) Game archive management system, method, computer device, and medium
CN116661876B (en) System starting method, file generating method, electronic equipment and server
CN117390702B (en) Split type driving and shell adding method and device, electronic equipment and storage medium
CN118484226A (en) MCU OTA upgrading system, method and equipment of vehicle-mounted network
Iooss et al. Ghost in the Wireless, iwlwifi edition
CN118227199A (en) Application program release method, application program operation method, application program release device and electronic equipment
CN117272377A (en) Authority data processing method and device and electronic equipment

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