[go: up one dir, main page]

CN100407139C - File system and method for constructing enhanced functions thereof, operating system, recording device - Google Patents

File system and method for constructing enhanced functions thereof, operating system, recording device Download PDF

Info

Publication number
CN100407139C
CN100407139C CN2005100598552A CN200510059855A CN100407139C CN 100407139 C CN100407139 C CN 100407139C CN 2005100598552 A CN2005100598552 A CN 2005100598552A CN 200510059855 A CN200510059855 A CN 200510059855A CN 100407139 C CN100407139 C CN 100407139C
Authority
CN
China
Prior art keywords
file system
unit
interface conversion
physical file
top drive
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.)
Expired - Fee Related
Application number
CN2005100598552A
Other languages
Chinese (zh)
Other versions
CN1841317A (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.)
Maxell Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to CN2005100598552A priority Critical patent/CN100407139C/en
Publication of CN1841317A publication Critical patent/CN1841317A/en
Application granted granted Critical
Publication of CN100407139C publication Critical patent/CN100407139C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明涉及一种操作系统下的文件系统,该文件系统包括:入口的接口转换单元,管理单元,物理文件系统单元,顶部驱动单元,出口的接口转换单元。入口的接口转换单元连接应用程序单元与管理单元,管理单元连接入口的接口转换单元和物理文件系统单元,物理文件系统单元连接管理单元与顶部驱动单元,顶部驱动单元连接物理文件系统单元与出口的接口转换单元,出口的接口转换单元连接顶部驱动单元与操作系统的驱动单元。本发明的文件系统,减少了Linux标准文件系统下的VFS单元,减少内核了尺寸,能实现各种用户自行定制的特殊事务处理,以及能方便地实现跨操作系统的移植。本发明还包括带有本发明文件系统的操作系统,以及涉及一种构建及增强文件系统功能的方法。

Figure 200510059855

The invention relates to a file system under an operating system. The file system includes: an entry interface conversion unit, a management unit, a physical file system unit, a top drive unit, and an exit interface conversion unit. The interface conversion unit of the entrance is connected to the application program unit and the management unit, the management unit is connected to the interface conversion unit of the entrance and the physical file system unit, the physical file system unit is connected to the management unit and the top drive unit, and the top drive unit is connected to the physical file system unit and the exit An interface conversion unit, the outlet interface conversion unit connects the top drive unit with the drive unit of the operating system. The file system of the present invention reduces the VFS unit under the Linux standard file system, reduces the size of the kernel, can realize special transaction processing customized by various users, and can conveniently realize transplantation across operating systems. The invention also includes an operating system with the file system of the invention, and relates to a method for constructing and enhancing the function of the file system.

Figure 200510059855

Description

文件系统和构建增强其功能的方法、操作系统、记录装置 File system and method for constructing enhanced functions thereof, operating system, recording device

技术领域 technical field

本发明涉及一种操作系统下的文件系统,和更具体,本发明涉及一种具有增强功能的文件系统,以及带有本发明文件系统的操作系统。本发明还涉及一种构建及增强文件系统功能的方法。The present invention relates to a file system under an operating system, and more specifically, the present invention relates to a file system with enhanced functions and an operating system with the file system of the present invention. The invention also relates to a method for constructing and enhancing the function of the file system.

背景技术 Background technique

在计算机系统中,文件是数据的逻辑组织和表现形式,通常要访问一个特定文件中的数据时,要通过文件系统的定位和组织,才能将文件按照可识别的逻辑形式表现出来。在现有技术中,一种操作系统一般可以支持多个不同的物理文件系统单元,如,Linux操作系统(Linux是Linus Torvalds在美国以及其他国家的注册商标或商标)可以支持的物理文件系统包括ext2,ext3,udf,jfs等等。为了可以用一种统一的方式,支持这些不同的物理文件系统,在Linux的内核中,应用程序单元与实际的物理文件系统单元之间,存在一个对于不同物理文件系统单元的统一接口单元VFS(Virtual File System)-虚拟文件系统,它作为一个转接开关来提供对于不同物理文件系统单元的支持。因此,虚拟文件系统也可称之为虚拟文件系统单元。VFS提供了一系列标准的操作函数集合来管理和操作各个具体的文件系统。在实际应用时,用户单元发出的各种文件操作指令通过系统调用被VFS单元所接收,VFS单元经过统一的调度和管理,根据设定,将操作指令发向具体的物理文件系统单元,进行处理,实现用户所要求的操作。In a computer system, a file is the logical organization and presentation of data. Usually, when accessing data in a specific file, the file can be displayed in a recognizable logical form only through the positioning and organization of the file system. In the prior art, an operating system can generally support a plurality of different physical file system units, for example, the physical file system supported by the Linux operating system (Linux is a registered trademark or trademark of Linus Torvalds in the United States and other countries) includes ext2, ext3, udf, jfs, etc. In order to support these different physical file systems in a unified way, in the Linux kernel, between the application program unit and the actual physical file system unit, there is a unified interface unit VFS for different physical file system units ( Virtual File System)-Virtual file system, which acts as a switch to provide support for different physical file system units. Therefore, the virtual file system can also be called a virtual file system unit. VFS provides a set of standard operation functions to manage and operate each specific file system. In actual application, various file operation instructions issued by the user unit are received by the VFS unit through system calls. After unified scheduling and management, the VFS unit sends the operation instructions to the specific physical file system unit for processing according to the settings. , to achieve the operation requested by the user.

图1示出现有技术中Linux操作系统下标准的文件系统。如图1所示,标准的文件系统包括VFS单元10,物理文件系统单元20,可包括ext2,ext3,udf,jfs等具体的物理文件系统,和驱动单元30。如前所述,Linux操作系统采用VFS这一结构,来统一的调度和管理标准文件系统下的各个具体的物理文件系统。FIG. 1 shows a standard file system under the Linux operating system in the prior art. As shown in FIG. 1 , a standard file system includes a VFS unit 10 , a physical file system unit 20 , which may include specific physical file systems such as ext2, ext3, udf, and jfs, and a drive unit 30 . As mentioned above, the Linux operating system adopts the VFS structure to uniformly schedule and manage each specific physical file system under the standard file system.

虽然上述标准文件系统适应了对多种物理文件系统的协调控制,但是具有如下的缺点和不足:Although the above-mentioned standard file system is adapted to the coordinated control of multiple physical file systems, it has the following disadvantages and deficiencies:

第一,缺乏足够的灵活性,用户难以实现符合自己要求的特殊功能。在上述文件系统下,各个进程的调度、缓冲区维护、设备维护和相互的协调以及特定功能的实现均受VFS及操作系统的文件系统所约束,用户难以按照自己的要求对文件系统进行定制,增加或删除特定的功能,或进行用户需要的进程调度。First, the lack of sufficient flexibility makes it difficult for users to implement special functions that meet their own requirements. Under the above-mentioned file system, the scheduling of each process, buffer maintenance, equipment maintenance, mutual coordination, and the realization of specific functions are all constrained by the file system of the VFS and the operating system. It is difficult for users to customize the file system according to their own requirements. Add or delete specific functions, or perform process scheduling required by users.

第二,现有的文件系统为适应多种文件系统的兼容,结构复杂,规模庞大。当我们需要定制小内核的操作系统,并且此时只需要一种或两种具体的文件系统时,以VFS为主体的标准文件系统,就显的过于臃肿,很多不必要的结构无法删除,成为系统负担。特别是当我们以嵌入式系统为目标系统时,这个问题尤为突出。Second, in order to adapt to the compatibility of multiple file systems, the existing file system has a complex structure and a large scale. When we need to customize the operating system with a small kernel and only need one or two specific file systems at this time, the standard file system with VFS as the main body is too bloated, and many unnecessary structures cannot be deleted. system burden. Especially when we target embedded systems, this problem is particularly prominent.

第三,不便于文件系统的跨平台移植。当我们需要将一个目标文件系统从一个操作系统平台向Linux操作系统平台移植,特别是当这个目标文件系统的内部写入了自行定制的各种算法,或者是此目标文件系统是按照原来操作系统对其的要求,进行组织的,此时,需要将其进行跨操作系统的移植以适应VFS标准文件系统将是十分困难的。VFS为了接入各个具体的目标文件系统,给出了super_block,file,inode,dentry等等多个数据接口结构。由于操作系统平台的不同,使一个原来不是Linux平台上的文件系统找到、适应、并接入上述的VFS的各个接口,即super_block,file,inode,dentry等等各个数据接口结构,是十分困难的事情。Third, it is not convenient for cross-platform portability of the file system. When we need to transplant a target file system from an operating system platform to a Linux operating system platform, especially when various algorithms customized by ourselves are written inside the target file system, or the target file system is based on the original operating system Its requirements are organized. At this time, it will be very difficult to transplant it across operating systems to adapt to the VFS standard file system. In order to access each specific target file system, VFS provides multiple data interface structures such as super_block, file, inode, dentry, etc. Due to the different operating system platforms, it is very difficult for a file system that is not originally on the Linux platform to find, adapt to, and access the various interfaces of the above-mentioned VFS, that is, the data interface structures of super_block, file, inode, dentry, etc. matter.

中国专利申请,公开号CN 1553325A,提出了一种透明扩充文件系统功能的方法。其文件系统包括虚拟文件系统VFS单元和底层文件系统,在VFS单元标准调用接口和底层文件系统接口之间,还设置了一个夹层文件系统,当应用程序发出一个文件系统的请求的时候,系统调用接口先将该请求提交给VFS单元处理函数;VFS通过标准调用接口将请求提交给所述夹层文件系统;由该夹层文件系统进行特殊事务处理后,再将事务提交给底层的具体文件系统;最后由底层文件系统来实现实际的数据存取或输入输出。Chinese patent application, publication number CN 1553325A, proposes a method for transparently expanding file system functions. Its file system includes the virtual file system VFS unit and the underlying file system. A mezzanine file system is also set between the standard call interface of the VFS unit and the underlying file system interface. When an application sends a file system request, the system calls The interface first submits the request to the VFS unit processing function; the VFS submits the request to the mezzanine file system through the standard calling interface; after the special transaction processing is performed by the mezzanine file system, the transaction is submitted to the underlying specific file system; finally The actual data access or input and output is realized by the underlying file system.

该申请虽然增加了自己定制的夹层文件系统,可以实现一些自行定义的特殊功能。但是由于VFS的存在,系统进程调度,缓冲区维护,设备维护,内存管理等等方面仍然由VFS负责进行,使得利用自定义的夹层文件系统单元,去实现用户自行定制功能的空间和可能性,大大降低。同时由于此结构是在原有结构的基础之上添加新的内容,使得整个内核的体积进一步增大,不利于在嵌入式系统等资源受限系统的使用。同时,在文件系统的跨操作系统平台移植的过程中,该申请与现有的Linux标准文件系统没有区别,都包含VFS单元,移植仍然是十分困难的事情。由于操作系统平台不同,使得文件系统对上对下的接口也不同,这样从非Linux系统的文件系统提取适应于Linux接口而接入Linux系统是非常困难的事情,这个发明并没有完全解决上述问题。Although the application has added its own customized mezzanine file system, it can realize some self-defined special functions. However, due to the existence of VFS, system process scheduling, buffer maintenance, device maintenance, memory management, etc. are still carried out by VFS, so that the user-defined mezzanine file system unit is used to realize the space and possibility of user-customized functions. Greatly reduced. At the same time, because this structure adds new content on the basis of the original structure, the volume of the entire kernel is further increased, which is not conducive to the use of resource-limited systems such as embedded systems. At the same time, in the process of porting the file system across operating system platforms, this application is no different from the existing Linux standard file system, both of which contain VFS units, and porting is still very difficult. Due to different operating system platforms, the upper and lower interfaces of the file system are also different. It is very difficult to extract the Linux interface from the non-Linux system file system and access the Linux system. This invention does not completely solve the above problems. .

因此,需要一种具有增强功能的文件系统,使得用户可以灵活的添加、删除自行定制的各种功能,可以对用户自行定制的文件系统方便地进行跨操作系统平台移植,以及可以最大限度的减小代码修改量,减小内核体积。Therefore, there is a need for a file system with enhanced functions, so that users can flexibly add and delete various functions customized by themselves, and the file system customized by users can be easily transplanted across operating system platforms, and can minimize Small amount of code modification reduces the size of the kernel.

发明内容 Contents of the invention

本发明的目的在于,提出一种具有增强功能的文件系统,使得用户可以灵活的增加、删除自行定制的各种功能;可以对用户自行定制的文件系统进行方便的跨操作系统平台移植;可以最大限度的减小代码修改量,减小内核体积;并且这种文件系统对原有的文件系统可以不产生任何破坏,可以根据需要启动或关闭。The purpose of the present invention is to propose a file system with enhanced functions, so that users can flexibly add and delete various functions customized by themselves; the file system customized by users can be conveniently transplanted across operating system platforms; Minimize the amount of code modification and reduce the size of the kernel; and this kind of file system does not cause any damage to the original file system, and can be started or closed as needed.

本发明提供一种操作系统下的文件系统,所述文件系统包括:入口的接口转换单元,物理文件系统单元,顶部驱动单元,出口的接口转换单元,其中,所述入口的接口转换单元连接应用程序单元和所述物理文件系统单元,所述物理文件系统单元连接所述入口的接口转换单元与所述顶部驱动单元,所述顶部驱动单元连接所述物理文件系统单元与所述出口的接口转换单元,所述出口的接口转换单元连接所述顶部驱动单元与操作系统的驱动单元。The present invention provides a file system under an operating system. The file system includes: an entry interface conversion unit, a physical file system unit, a top drive unit, and an exit interface conversion unit, wherein the entry interface conversion unit is connected to an application A program unit and the physical file system unit, the physical file system unit is connected to the interface conversion unit of the entry and the top drive unit, and the top drive unit is connected to the interface conversion unit of the physical file system unit and the exit unit, the interface conversion unit of the outlet connects the top drive unit and the drive unit of the operating system.

本发明提供一种操作系统下的文件系统,所述文件系统包括:入口的接口转换单元,管理单元,物理文件系统单元,顶部驱动单元,出口的接口转换单元,其中所述入口的接口转换单元连接应用程序单元与所述管理单元,所述管理单元连接所述入口的接口转换单元和所述物理文件系统单元,所述物理文件系统单元连接所述管理单元与所述顶部驱动单元,所述顶部驱动单元连接所述物理文件系统单元与所述出口的接口转换单元,所述出口的接口转换单元连接所述顶部驱动单元与操作系统的驱动单元。The present invention provides a file system under an operating system. The file system includes: an entry interface conversion unit, a management unit, a physical file system unit, a top drive unit, and an exit interface conversion unit, wherein the entry interface conversion unit connecting the application program unit and the management unit, the management unit connecting the interface conversion unit of the entry and the physical file system unit, the physical file system unit connecting the management unit and the top drive unit, the The top drive unit is connected to the physical file system unit and the interface conversion unit of the exit, and the interface conversion unit of the exit is connected to the top drive unit and the drive unit of the operating system.

在本发明的文件系统中,所述入口的接口转换单元用于将输入的命令转换成被所述管理单元所接受的格式,所述管理单元,对输入的命令和数据进行处理,提供对物理文件系统的支持,所述物理文件系统单元包括所述物理文件系统,用于处理来自所述管理单元的命令和数据,命令和数据经由所述顶部驱动单元处理后,到所述出口的接口转换单元,所述出口的接口转换单元将来自所述顶部驱动单元的命令和数据转换为被操作系统的驱动单元接受的控制命令与数据,并将其提供给操作系统的驱动单元。In the file system of the present invention, the interface conversion unit of the entry is used to convert the input command into a format accepted by the management unit, and the management unit processes the input command and data, and provides a physical The support of the file system, the physical file system unit includes the physical file system for processing commands and data from the management unit, after the commands and data are processed by the top drive unit, they are converted to the interface of the exit The interface conversion unit of the outlet converts the commands and data from the top drive unit into control commands and data accepted by the drive unit of the operating system, and provides them to the drive unit of the operating system.

在本发明的文件系统,所述物理文件系统单元至少包括遵从标准协议的标准物理文件系统,用户定制的非标准物理文件系统,增加的物理文件系统,和从其他操作系统移植过来的、用户定制的物理文件系统中的一种,所述管理单元包括用于管理和实现这些物理文件系统所需要的通用和特殊功能。In the file system of the present invention, the physical file system unit includes at least a standard physical file system complying with standard protocols, a user-customized non-standard physical file system, an added physical file system, and user-defined file systems transplanted from other operating systems. One of the physical file systems, the management unit includes general and special functions required for managing and implementing these physical file systems.

本发明的文件系统,还可在所述管理单元中根据用户需要加入特定的功能定制,根据所加入的功能定制来实现该功能要求,提供该功能。In the file system of the present invention, specific function customization can also be added to the management unit according to user needs, and the function requirement can be realized and the function can be provided according to the added function customization.

在本发明的文件系统,所述文件系统还可包括从另一操作系统移植过来的、带有与原操作系统或原硬件设备相关的信息的目标文件系统,所述目标文件系统与包括所述的文件系统相对应的管理单元、物理文件系统单元和顶部驱动单元的部分或全部。In the file system of the present invention, the file system may also include a target file system transplanted from another operating system with information related to the original operating system or the original hardware device, and the target file system is related to the Some or all of the management unit, physical file system unit, and top drive unit corresponding to the file system.

本发明还提供一种带有本发明的文件系统的操作系统。该操作系统还可进一步包括含VFS的标准文件系统。The invention also provides an operating system with the file system of the invention. The operating system may further include a standard file system including VFS.

在操作系统中,本发明的文件系统可以是可随时加载到操作系统或从操作系统卸载的模块。本发明的文件系统也可作为操作系统内核的一部分加入该操作系统或从操作系统内核中去除。In the operating system, the file system of the present invention may be a module that can be loaded into or unloaded from the operating system at any time. The file system of the present invention can also be added to or removed from the operating system kernel as part of the operating system kernel.

本发明还提供一种构建及增强文件系统功能的方法,所述方法包括步骤:设置包括入口的接口转换单元,物理文件系统单元,顶部驱动单元,和出口的接口转换单元的文件系统,其中,应用程序单元连接所述入口的接口转换单元,所述入口的接口转换单元连接所述物理文件系统单元,所述物理文件系统单元连接所述顶部驱动单元,所述顶部驱动单元连接所述出口的接口转换单元,所述出口的接口转换单元连接操作系统的驱动单元。所述方法还包括步骤,通过所述入口的接口转换单元将输入的命令进行转换后提供给所述物理文件系统单元,所述物理文件系统单元包括物理文件系统,处理来自所述入口的接口转换单元的命令和数据,命令和数据经由所述顶部驱动单元处理后,到所述出口的接口转换单元,通过所述出口的接口转换单元将来自所述顶部驱动单元的命令和数据转换为被操作系统的驱动单元接受的、硬件设备能识别的控制命令与数据,并将其提供给操作系统的驱动单元。The present invention also provides a method for constructing and enhancing the function of a file system. The method includes the steps of: setting a file system including an entry interface conversion unit, a physical file system unit, a top drive unit, and an exit interface conversion unit, wherein, The application program unit is connected to the interface conversion unit of the entry, the interface conversion unit of the entry is connected to the physical file system unit, the physical file system unit is connected to the top drive unit, and the top drive unit is connected to the exit An interface conversion unit, the interface conversion unit of the outlet is connected to the drive unit of the operating system. The method further includes the step of converting the input command through the interface conversion unit of the entry and providing it to the physical file system unit, the physical file system unit includes a physical file system, and processes the interface conversion from the entry The command and data of the unit, after being processed by the top drive unit, the command and data will be sent to the interface conversion unit of the outlet, and the command and data from the top drive unit will be converted into the operated by the interface conversion unit of the outlet The drive unit of the system accepts the control commands and data that the hardware device can recognize, and provides them to the drive unit of the operating system.

本发明还提供一种构建及增强文件系统功能的方法,所述方法包括步骤:设置包括入口的接口转换单元,管理单元,物理文件系统单元,顶部驱动单元,和出口的接口转换单元的文件系统,应用程序单元连接所述入口的接口转换单元,所述入口的接口转换单元连接所述管理单元,所述管理单元连接所述物理文件系统单元,所述物理文件系统单元连接所述顶部驱动单元,所述顶部驱动单元连接所述出口的接口转换单元,所述出口的接口转换单元连接操作系统的驱动单元,其中,所述入口的接口转换单元用于将输入的命令转换成被所述管理单元所接受的格式,所述管理单元,对输入的命令和数据进行处理,提供对物理文件系统的支持,所述物理文件系统单元包括所述物理文件系统,用于处理来自所述管理单元的命令和数据,命令和数据经由所述顶部驱动单元处理后,到所述出口的接口转换单元,所述出口的接口转换单元将来自所述顶部驱动单元的命令和数据转换为被操作系统的驱动单元接受的、硬件设备能识别的控制命令与数据,并将其提供给操作系统的驱动单元。The present invention also provides a method for constructing and enhancing file system functions, said method comprising the steps of: setting a file system including an entry interface conversion unit, a management unit, a physical file system unit, a top drive unit, and an exit interface conversion unit , the application program unit is connected to the interface conversion unit of the portal, the interface conversion unit of the portal is connected to the management unit, the management unit is connected to the physical file system unit, and the physical file system unit is connected to the top drive unit , the top drive unit is connected to the interface conversion unit of the outlet, and the interface conversion unit of the outlet is connected to the drive unit of the operating system, wherein the interface conversion unit of the entrance is used to convert the input command into The format accepted by the unit, the management unit processes the input commands and data, and provides support for the physical file system. The physical file system unit includes the physical file system and is used to process the input from the management unit Commands and data, after the commands and data are processed by the top drive unit, they are sent to the interface conversion unit of the outlet, and the interface conversion unit of the outlet converts the commands and data from the top drive unit into the driver of the operating system The control command and data accepted by the unit and recognized by the hardware device are provided to the drive unit of the operating system.

本发明的构建及增强文件系统功能的方法,还包括实现通用和特殊事务处理的步骤,所述步骤包括:在所述物理文件系统单元设置遵从标准协议的标准物理文件系统和/或用户定制的非标准物理文件系统,所述管理单元提供管理和实现标准和/或非标准物理文件系统所需要的通用和特殊功能。同时还可以在所述管理单元中,根据用户需要,加入特定的功能定制,实现特定功能要求。更进一步,在特殊的情况下,可以省略所述管理单元,应用程序命令,通过入口的接口转换层,直接进入物理文件系统层。The method for constructing and enhancing the file system function of the present invention also includes the step of realizing general and special transaction processing, the step includes: setting a standard physical file system complying with the standard protocol and/or a user-customized file system in the physical file system unit For non-standard physical file systems, the management unit provides general and special functions required to manage and implement standard and/or non-standard physical file systems. At the same time, specific function customization can be added to the management unit according to user needs, so as to realize specific functional requirements. Furthermore, in special cases, the management unit can be omitted, and the application program commands can directly enter the physical file system layer through the interface conversion layer of the entry.

本发明的构建及增强文件系统功能的方法,所述方法包括增加、删除某项功能的步骤,所述步骤包括:在物理文件系统单元中增加、删除相应的物理文件系统,或在已有物理文件系统增加、删除与该项功能相应的部分的步骤,修改所述管理单元和顶部驱动单元,提供或删除相应的功能支持以及驱动功能的步骤。The method for building and enhancing file system functions of the present invention includes the steps of adding and deleting a certain function, and the steps include: adding or deleting a corresponding physical file system in a physical file system unit, or adding or deleting a corresponding physical file system in an existing physical file system The steps of adding and deleting the part corresponding to the function of the file system, modifying the management unit and the top drive unit, and providing or deleting the corresponding function support and driving function.

本发明的构建及增强文件系统功能的方法还包括在所述管理单元中根据用户需要加入功能定制,来实现该功能要求,提供该功能的步骤。The method for constructing and enhancing the function of the file system of the present invention also includes the steps of adding function customization in the management unit according to user needs to realize the function requirement and provide the function.

本发明的构建及增强文件系统功能的方法,所述方法包括跨平台移植用户定制的功能的步骤,所述步骤进一步包括:在所述物理文件系统单元增加从另一个操作系统移植的用户定制物理文件系统,修改所述管理单元和顶部驱动单元,提供管理和实现被移植的所述物理文件系统所需要的通用和特殊功能以及驱动功能。The method for constructing and enhancing file system functions of the present invention includes the step of transplanting user-customized functions across platforms, and the steps further include: adding user-customized physical files transplanted from another operating system to the physical file system unit. The file system modifies the management unit and the top drive unit to provide general and special functions and driver functions needed to manage and implement the migrated physical file system.

本发明的构建及增强文件系统功能的方法,还包括接入从另一操作系统移植过来的、带有与原操作系统或原硬件设备相关的信息的目标文件系统的步骤,所述步骤进一步包括在所述目标文件系统设置与所述的文件系统相应的管理单元、物理文件系统单元和顶部驱动单元,并且将所述这些单元与所述的文件系统的相应部分进行连接的步骤。The method for constructing and enhancing file system functions of the present invention also includes the step of accessing a target file system transplanted from another operating system with information related to the original operating system or original hardware device, and the steps further include A step of setting a management unit, a physical file system unit and a top drive unit corresponding to the file system in the target file system, and connecting these units with corresponding parts of the file system.

本发明还提供一种具有上述文件系统的文件记录装置,其特征在于,包括:应用程序单元,运行适应其他文件系统的数据;以及硬件设备,接收来自所述操作系统的驱动单元的数据,其中,所述入口接口转换单元将来自所述应用程序单元的适应所述其他文件系统运行的数据转换为适应所述文件系统运行的数据;所述管理单元用于控制所述物理文件系统单元,对所述硬件设备将要接收的数据的进程进行调度;所述物理文件系统单元用来处理来自所述管理单元的数据;所述顶部驱动单元用于处理来自所述物理文件系统单元的数据,并将其发送到所述出口接口转换单元;所述出口接口转换单元将来自所述顶部驱动单元的适应所述文件系统运行的数据转换为适应所述其他文件系统运行的数据,并将其发送到所述操作系统的驱动单元。The present invention also provides a file recording device with the above-mentioned file system, which is characterized in that it includes: an application program unit, running data adapted to other file systems; and a hardware device, receiving data from the drive unit of the operating system, wherein , the entry interface conversion unit converts the data from the application program unit adapted to the operation of the other file systems into data adapted to the operation of the file system; the management unit is used to control the physical file system unit, for The hardware device schedules the process of the data to be received; the physical file system unit is used to process the data from the management unit; the top drive unit is used to process the data from the physical file system unit, and It is sent to the export interface conversion unit; the export interface conversion unit converts the data adapted to the operation of the file system from the top drive unit into data suitable for the operation of the other file systems, and sends it to the The driver unit of the above operating system.

本发明的文件系统,减少VFS单元,并且根据需要设置管理单元,与现有技术相比,本发明的文件系统减少内核了尺寸,能实现各种用户自行定制的特殊事务处理,以及能方便实现地跨操作系统的移植。The file system of the present invention reduces the number of VFS units, and sets management units as required. Compared with the prior art, the file system of the present invention reduces the size of the kernel, can realize special transaction processing customized by various users, and can be conveniently implemented. Migration across operating systems.

附图说明 Description of drawings

图1示出Linux下的VFS文件系统;Fig. 1 shows the VFS file system under Linux;

图2示出Linux本发明的文件系统以及标准的VFS文件系统;Fig. 2 shows the file system of the present invention of Linux and the standard VFS file system;

图3示出uITRON系统中的文件系统;Fig. 3 shows the file system in the uITRON system;

图4示出根据本发明的一个实施例,将文件系统从uITRON系统向Linux系统移植的示意图;Fig. 4 shows, according to an embodiment of the present invention, the schematic diagram that file system is transplanted to Linux system from uITRON system;

图5示出本发明的一个实施例,在本发明的文件系统中对UDF物理文件系统添加实时性功能的示意图;Fig. 5 shows an embodiment of the present invention, in the file system of the present invention, adds the schematic diagram of real-time function to UDF physical file system;

图6示出根据本发明的一个实施例,对于管理单元进行修改的示意图;和Fig. 6 shows a schematic diagram of modifying the management unit according to an embodiment of the present invention; and

图7示出根据本发明的实施例,对于顶部驱动单元进行修改的示意图。Fig. 7 shows a schematic diagram of a modification to a top drive unit according to an embodiment of the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明再作进一步的详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.

图2的右侧示出了本发明的文件系统。如图2所示,本发明的文件系统包括:文件系统入口的接口转换单元1,管理单元2,物理文件系统单元3,顶部驱动单元4,和出口的接口转换单元5。应用程序单元连接入口的接口转换单元1,入口的接口转换单元1连接所述管理单元2,管理单元2连接物理文件系统单元3,物理文件系统单元3连接顶部驱动单元4,顶部驱动单元4连接出口的接口转换单元5,和出口的接口转换单元5连接操作系统的驱动单元。The right side of Fig. 2 shows the file system of the present invention. As shown in FIG. 2 , the file system of the present invention includes: an interface conversion unit 1 for the file system entry, a management unit 2 , a physical file system unit 3 , a top drive unit 4 , and an interface conversion unit 5 for the exit. The application program unit is connected to the interface conversion unit 1 of the portal, the interface conversion unit 1 of the portal is connected to the management unit 2, the management unit 2 is connected to the physical file system unit 3, the physical file system unit 3 is connected to the top drive unit 4, and the top drive unit 4 is connected to the The export interface conversion unit 5 is connected with the drive unit of the operating system.

当一个应用程序向文件系统发出请求时,命令通过特定的方法,例如系统调用或是在原有已存在的系统调用的基础上进行扩展,提交给入口的接口转换单元1,通过接口转换,使得输入的命令被支持用户自行定义的物理文件系统的管理单元2所接受。管理单元2提供特殊事务处理,负责实现用户需要的各种定制,如进程的调度方法,实时性的算法,内存管理等等。如果对于这些特殊的定制没有需要,则这里的管理单元2可以省略。此后,进入物理文件系统单元3,在这里其中的物理文件系统可以是遵从标准协议的标准文件系统,也可以是经过用户自行算法定制的非标准文件系统,同时还可以是从其他平台上移植过来的包含较多原来操作系统“痕迹”的目标文件系统。这里的“痕迹”是指,可以保留原来操作系统平台对于标准物理文件系统实现的外层封装,例如,Linux操作系统对标准的物理文件系统,添加的基于VFS的封装。经过物理文件系统单元的处理,命令和数据经由顶部驱动单元以及出口的接口转换单元,转化为操作系统能识别的命令,输出文件系统部分,被操作系统原有的底层驱动单元接受,进行数据的进一步处理。When an application program sends a request to the file system, the command is submitted to the interface conversion unit 1 of the entry through a specific method, such as a system call or an extension based on an existing system call, and the input is converted through the interface. The commands are accepted by management unit 2 that supports user-defined physical file systems. The management unit 2 provides special transaction processing and is responsible for realizing various customizations required by users, such as process scheduling methods, real-time algorithms, memory management, and so on. If there is no need for these special customizations, the management unit 2 here can be omitted. After that, enter the physical file system unit 3, where the physical file system can be a standard file system that complies with standard protocols, or a non-standard file system customized by the user's own algorithm, and it can also be transplanted from other platforms The target file system contains more "traces" of the original operating system. The "trace" here means that the outer encapsulation of the standard physical file system implemented by the original operating system platform can be retained, for example, the VFS-based encapsulation added by the Linux operating system to the standard physical file system. After being processed by the physical file system unit, commands and data are converted into commands recognized by the operating system through the top drive unit and the interface conversion unit of the exit, and the output file system part is accepted by the original underlying drive unit of the operating system for data conversion. further processing.

本发明的文件系统,可省略位于入口的接口转换单元1和物理文件系统单元3之间的管理单元2。因此,本发明的文件系统可包括文件系统入口的接口转换单元1,物理文件系统单元3,顶部驱动单元4,和出口的接口转换单元5,其中,由于省略了管理单元2,入口的接口转换单元1直接与物理文件系统单元3连接。省略管理单元2是一种比较特殊的情况,此时,该文件系统也能提供需要的事务处理。The file system of the present invention can omit the management unit 2 located between the entry interface conversion unit 1 and the physical file system unit 3 . Therefore, the file system of the present invention can include the interface conversion unit 1 of the file system entry, the physical file system unit 3, the top drive unit 4, and the interface conversion unit 5 of the exit, wherein, since the management unit 2 is omitted, the interface conversion of the entry Unit 1 is directly connected to physical file system unit 3 . Omitting the management unit 2 is a special case, at this time, the file system can also provide the required transaction processing.

本发明的文件系统,减少VFS单元,并且根据需要设置管理单元,与现有技术相比,本发明的文件系统减少内核了尺寸,能实现用户自行定制的特殊事务处理,以及能方便实现地跨操作系统的移植。The file system of the present invention reduces the number of VFS units, and sets management units according to needs. Compared with the prior art, the file system of the present invention reduces the size of the kernel, and can realize special transaction processing customized by users, and can be conveniently implemented across Operating system porting.

本发明的文件系统可单独用于一个操作系统中,也可与标准的文件系统并行使用。本发明的文件系统可以是在操作系统中已有的文件系统的基础上,平行的增加一个用户自行定制的文件系统,增加用户对文件系统的特定功能定制,动态加载,方便跨操作系统的移植,减少内核大小,实现各种特殊的应用。The file system of the present invention can be used alone in an operating system, and can also be used in parallel with a standard file system. The file system of the present invention can be based on the existing file system in the operating system, add a file system customized by the user in parallel, increase the user's customization of the specific function of the file system, dynamically load, and facilitate cross-operating system transplantation , to reduce the size of the core, to achieve a variety of special applications.

在带有本发明的文件系统的操作系统中,应用程序中可设立编译开关,用于提供应用单元的命令进入标准文件系统还是进入本发明的文件系统的选择。应用单元的命令进入本发明的文件系统可以通过各种方法,其中包括,但不限于下列方式:In the operating system with the file system of the present invention, a compilation switch can be set up in the application program, which is used to provide the choice of whether the command of the application unit enters the standard file system or enters the file system of the present invention. The command of the application unit can enter the file system of the present invention through various methods, including, but not limited to the following ways:

增加新的系统调用,这些新增加的系统调用指向本发明所述的文件系统。在应用程序中设立编译开关,当需要使用新型的文件系统时,打开编译开关,应用单元的文件系统的操作命令指向新增加的系统调用,应用单元的命令通过所述新增加的系统调用,进入本发明的文件系统。如打开编译开关,使得文件系统的操作命令,如open,close…等指向新增加的系统调用,使得应用单元的命令通过这些新增加的系统调用,进入操作系统内核中本发明所述的文件系统;当不需要使用基于本发明所述文件系统的文件系统算法实现时,可以关闭编译开关,使得应用程序的操作命令,仍旧指向Linux下标准的文件系统的入口,执行标准文件系统下的操作。New system calls are added, and these newly added system calls point to the file system described in the present invention. Set up the compilation switch in the application program, when a new type of file system needs to be used, turn on the compilation switch, the operation command of the file system of the application unit points to the newly added system call, and the command of the application unit enters through the newly added system call The file system of the present invention. Such as turning on the compilation switch, so that the operating commands of the file system, such as open, close..., etc. point to the newly added system calls, so that the commands of the application unit enter the file system of the present invention in the operating system kernel through these newly added system calls When it is not necessary to use the file system algorithm based on the file system of the present invention to realize, the compilation switch can be closed, so that the operation command of the application program still points to the entry of the standard file system under Linux, and the operation under the standard file system is performed.

也可以在系统调用增加新的控制命令字,指向操作系统中本发明的文件系统的入口函数,来调用本发明的文件系统。如在原有的文件系统调用操作函数,如ioctl中,增加新的控制命令字,。通过应用程序的编译开关,使得open,close…等应用层文件操作函数由ioctl中对应的新增加的命令字所代表,通过原有的系统调用,进入操作系统的内核中本发明所述的文件系统。在内核中,以上述ioctl命令的新的命令字做代表的命令,在入口转换单元,被转接到定制的物理文件系统单元的入口中。It is also possible to add a new control command word in the system call to point to the entry function of the file system of the present invention in the operating system to call the file system of the present invention. For example, add a new control command word in the original file system call operation function, such as ioctl. Through the compilation switch of the application program, the application layer file operation functions such as open, close... are represented by the corresponding newly added command words in the ioctl, and enter the file described in the present invention in the kernel of the operating system through the original system call system. In the kernel, the command represented by the new command word of the above-mentioned ioctl command is transferred to the entry of the customized physical file system unit in the entry conversion unit.

显然,在本发明的文件系统与标准的文件系统并行使用时,对于本领域人员来说,也可采用其它方式将应用单元的命令接入本发明的文件系统。Obviously, when the file system of the present invention is used in parallel with the standard file system, those skilled in the art can also use other methods to connect the commands of the application unit to the file system of the present invention.

在本发明的文件系统,其管理单元2可以对物理文件单元中各个具体的物理文件系统进行管理和调度,并且可以用于实现用户需要的各种自行定义的文件系统功能,如进程调度、各种算法、内存管理等,当然也可用来实现一些通用的功能。如果用户对于目标的文件系统没有对应于管理单元的特殊功能要求时,管理单元可以取消。这样,用户的请求命令通过入口的接口转换单元直接进入物理文件系统单元。In the file system of the present invention, its management unit 2 can manage and schedule each specific physical file system in the physical file unit, and can be used to realize various self-defined file system functions required by users, such as process scheduling, various Algorithms, memory management, etc., of course, can also be used to achieve some general functions. If the user has no special function requirements corresponding to the management unit for the target file system, the management unit can be canceled. In this way, the user's request command directly enters the physical file system unit through the interface conversion unit of the entry.

在本发明的文件系统,当用户对一个目标文件系统,进行跨操作系统平台移植时,可以最大限度的保留原来操作系统对于物理文件系统单元的封装,极大的减少跨平台移植时的工作量和繁难程度。这里的“对于物理文件系统单元的封装”正如上文所述的“痕迹”,它是一个操作系统为保持其特定功能和操作,而在具体的物理文件系统外面所添加的一层封装,这层封装正如Linux操作系统中的VFS单元,或是uITRON操作系统中的GFM单元一样。In the file system of the present invention, when a user performs cross-operating system platform transplantation on a target file system, the packaging of the original operating system for the physical file system unit can be retained to the greatest extent, greatly reducing the workload during cross-platform transplantation and complexity. The "encapsulation of the physical file system unit" here is just like the "trace" mentioned above. It is a layer of encapsulation added by an operating system outside the specific physical file system in order to maintain its specific functions and operations. Layer encapsulation is just like the VFS unit in the Linux operating system, or the GFM unit in the uITRON operating system.

在本发明的文件系统,当进行物理文件系统的跨平台移植时,可以保留如上所述的原操作系统对物理文件系统单元的封装,为减少工作量,这样只需进行入口的接口转接工作,对需要移植的目标文件系统,无需进行很大的代码修改工作,就可以成功的完成移植工作。但当为了减少内核大小,适应资源有限的系统,如嵌入式操作系统时,此时如使用的目标文件系统是特定的某一个目标文件系统,就可以从应用单元,直接通过入口转换单元,将命令传输给管理单元或具体的目标文件系统,减少了VFS单元,这样可以减少内核的大小。在系统资源有限的嵌入式系统中,具有很大的优势。In the file system of the present invention, when the cross-platform transplantation of the physical file system is carried out, the encapsulation of the physical file system unit by the original operating system as described above can be retained. In order to reduce the workload, only the interface transfer work of the entry is required. , for the target file system that needs to be transplanted, the transplanting work can be successfully completed without a lot of code modification work. However, in order to reduce the size of the kernel and adapt to a system with limited resources, such as an embedded operating system, if the target file system used is a specific target file system, the application unit can directly pass through the entry conversion unit. Commands are transmitted to the management unit or specific target file system, reducing the VFS unit, which can reduce the size of the kernel. In embedded systems with limited system resources, it has great advantages.

在本发明的文件系统,物理文件系统单元中可包括遵从标准协议的标准物理文件系统,和/或用户定制的非标准物理文件系统,还可包括增加的物理文件系统,包括标准/非标准的物理文件系统,和从其他操作系统移植过来的、用户定制的标准/非标准物理文件系统,等等。显然,根据需要,本发明的物理文件系统单元可包括上述一种或多种物理文件系统,当然也可包括其它的能实现某项功能的内容或部分,等等。在本说明书中,用户不仅包括使用含本发明文件系统的操作系统最终用户,也包括与本发明的文件系统或含本发明文件系统的操作系统有关的其它方,包括,但不限于提供本发明的文件系统以及提供增加、删除、跨平台移植等服务的制造商和供应商,等等。In the file system of the present invention, the physical file system unit may include a standard physical file system complying with a standard protocol, and/or a user-customized non-standard physical file system, and may also include an increased physical file system, including standard/non-standard Physical file systems, and user-customized standard/non-standard physical file systems transplanted from other operating systems, etc. Apparently, as required, the physical file system unit of the present invention may include one or more physical file systems mentioned above, and of course may also include other content or parts capable of realizing a certain function, and so on. In this specification, users not only include the end users who use the operating system containing the file system of the present invention, but also include other parties related to the file system of the present invention or the operating system containing the file system of the present invention, including, but not limited to providing file systems and manufacturers and suppliers that provide services such as adding, deleting, cross-platform porting, etc.

在本发明的文件系统,还可通过在管理单元中包括根据需要加入功能定制,如根据需要而加入的特定的功能定制,来实现该特定的功能定制,提供该功能,从而满足需要。In the file system of the present invention, the specific function customization can also be realized by adding the function customization according to the needs in the management unit, such as adding the specific function customization according to the needs, and providing the function to meet the needs.

本发明的文件系统中,管理单元可包括数个提供通用和特殊功能的模块,顶部驱动单元可包括数个有通用或特殊驱动功能的模块,支持物理文件系统单元中的通用和特殊物理文件系统,提供通用和特殊的事务处理以及完成用户其他功能的特殊定制要求。当根据用户要求,需要增加或删除某项的功能时,可通过将该物理文件系统引入物理文件系统单元或从其删除,以及对管理单元和顶部驱动单元进行相应修改,如增加或删除相应的模块来对其进行修改。当根据用户要求,需要跨操作系统移植某项物理文件系统时,可将物理文件系统移植到本发明文件系统的物理文件系统单元,通过对管理单元和顶部驱动单元的相应修改来完成。因此,本发明的文件系统具有足够的灵活性,能按用户要求增加或删除某项功能,并且移植方便。In the file system of the present invention, the management unit can include several modules that provide general and special functions, and the top drive unit can include several modules with general or special drive functions to support general and special physical file systems in the physical file system unit , to provide general and special transaction processing and to complete the special customization requirements of other functions of users. When the function of a certain item needs to be added or deleted according to user requirements, the physical file system can be introduced into the physical file system unit or deleted from it, and the management unit and the top drive unit can be modified accordingly, such as adding or deleting the corresponding module to modify it. When a certain physical file system needs to be transplanted across operating systems according to user requirements, the physical file system can be transplanted to the physical file system unit of the file system of the present invention, and completed by corresponding modification of the management unit and the top drive unit. Therefore, the file system of the present invention has sufficient flexibility, can add or delete a certain function according to user requirements, and is easy to transplant.

对于带有本发明的文件系统的操作系统,本发明的文件系统可作为操作系统内核的一部分。如本发明的文件系统以通过静态编译,成为操作系统内核的一部分,每次启动时可以自动加载,也可以通过模块的方法,即将本发明的文件系统作为一个模块,在需要的时候动态加载到操作系统,或动态地从操作系统卸载。加载时,由本发明的文件系统截获应用程序发向原文件系统的命令;卸载后,则恢复原来的操作流程,由标准文件系统的VFS单元接受应用程序的命令。For an operating system with the file system of the present invention, the file system of the present invention can be used as a part of the kernel of the operating system. As the file system of the present invention becomes a part of the operating system kernel through static compilation, it can be automatically loaded each time it is started, and it can also be used as a module by means of a module, which can be dynamically loaded into the operating system when needed. operating system, or dynamically uninstalled from the operating system. When loading, the file system of the present invention intercepts the command sent by the application program to the original file system; after unloading, the original operation process is restored, and the VFS unit of the standard file system accepts the command of the application program.

下面,根据本发明的一个实施例,即通过从uITRON操作系统上移植自行定制的目标文件系统到Linux系统的本发明的文件系统中的具体实施例,来说明本发明的文件系统对从其他平台上移植过来的包含较多原来操作系统“痕迹”的目标文件系统的移植,该移植是易于实现。Next, according to an embodiment of the present invention, namely, by transplanting the target file system customized by oneself from the uITRON operating system to the specific embodiment of the file system of the present invention of the Linux system, the file system of the present invention will be described for other platforms. The transplantation of the target file system that contains more "traces" of the original operating system is easy to implement.

下面首先介绍本移植过程的技术背景。如图3所示,在uITRON下,带有物理文件系统,分别是UDFM与RFM,还带有GFM单元,同时,在UDFM与RFM中,其进程调度方式、数据结构、内存分配方式等等是按照用户自行定制的。也就是说这里需要移植的目标文件系统不是一个标准的VFS文件系统,而是经过用户特殊定制后的文件系统。The following first introduces the technical background of the transplantation process. As shown in Figure 3, under uITRON, there are physical file systems, namely UDFM and RFM, and GFM unit. At the same time, in UDFM and RFM, the process scheduling method, data structure, memory allocation method, etc. are According to the user's own customization. That is to say, the target file system to be transplanted here is not a standard VFS file system, but a file system specially customized by the user.

如果按照通常的移植方法,是考虑将这个目标文件系统的内部进行重新的调整,分离出纯粹的物理文件系统以及自行定制的算法单元两个部分,并进而用Linux文件系统中表示VSF文件系统的四个接口数据结构super_block,file,inode,dentry来重新表示目标文件系统的接口,再将自行定制的算法重新融合于Linux操作系统中,将是非常困难和难以完成的。According to the usual transplanting method, it is considered to readjust the inside of the target file system, separate the pure physical file system and the self-customized algorithm unit, and then use the Linux file system to represent the VSF file system The four interface data structures super_block, file, inode, and dentry are used to re-express the interface of the target file system, and then reintegrate the self-customized algorithm into the Linux operating system, which will be very difficult and difficult to complete.

如图3所示,在uITRON系统中的文件系统部分包括GFM,UDFM,RFM,RE_RWDRIVE,RE_PRDRIVE,RE_PRWDRIVE,RE_RDRIVE,RE_UPPDRIVE等部分,在Linux系统中的标准文件系统包括VFS,UDF,CDROM.C等结构。此时我们需要采用本发明所述的文件系统。根据本发明所述的文件系统,将uITRON操作系统中文件系统的各部分设置成与本发明的文件系统相应的管理单元,物理文件系统单元,顶部驱动单元,其中,GFM单元设置为对文件系统进行进程调度、内存分配等工作的统一管理单元,UDFM与RFM为将具体的文件系统与特定的算法结合后的物理文件系统。其下的RE_RWDRIVE,RE_PRDRIVE,RE_PRWDRIVE,RE_RDRIVE,RE_UPPDRIVE是顶部驱动单元,它们用于实现特定的驱动功能。按图3箭头表示的流程线的方向,将uITRON操作系统中文件系统的各部分与本发明的文件系统中的相应部分进行连接,从而移植到本发明的文件系统,如图4右侧所示。此时,移植后的目标文件系统就是按照本发明所述的方式进行安排的。其中包括了I/F change 1,GFM,UDFM & RFM,RE_RWDRIVE &RE_PRDRIVE & RE_PRWDRIVE & RE_RDRIVE & RE_UPPDRIVE,I/F change 2它们分别对应了本发明的文件系统中的入口接口转换单元,管理单元,物理文件系统单元,顶部驱动单元,出口接口转换单元,这样,需要移植的用户的定制内容已经全部融合于本发明的文件系统中。As shown in Figure 3, the file system in the uITRON system includes GFM, UDFM, RFM, RE_RWDRIVE, RE_PRDRIVE, RE_PRWDRIVE, RE_RDRIVE, RE_UPPDRIVE, etc. The standard file system in the Linux system includes VFS, UDF, CDROM.C, etc. structure. At this point we need to adopt the file system described in the present invention. According to the file system of the present invention, each part of the file system in the uITRON operating system is set as a management unit corresponding to the file system of the present invention, a physical file system unit, and a top drive unit, wherein the GFM unit is set to support the file system. A unified management unit for process scheduling, memory allocation, etc. UDFM and RFM are physical file systems that combine specific file systems with specific algorithms. The following RE_RWDRIVE, RE_PRDRIVE, RE_PRWDRIVE, RE_RDRIVE, RE_UPPDRIVE are top drive units, which are used to realize specific drive functions. According to the direction of the process line indicated by the arrow in Figure 3, each part of the file system in the uITRON operating system is connected with the corresponding part in the file system of the present invention, thereby transplanted to the file system of the present invention, as shown on the right side of Figure 4 . At this point, the transplanted target file system is arranged in the manner described in the present invention. It includes I/F change 1, GFM, UDFM & RFM, RE_RWDRIVE & RE_PRDRIVE & RE_PRWDRIVE & RE_RDRIVE & RE_UPPDRIVE, I/F change 2, which respectively correspond to the entry interface conversion unit, management unit, and physical file in the file system of the present invention System unit, top drive unit, export interface conversion unit, like this, the customized content of the user who needs to be transplanted has all been integrated in the file system of the present invention.

移植后,应用单元命令通过入口接口转换单元1,入口的接口转换单元1将输入的命令转换成被管理单元2所接受的格式,管理单元2对输入的命令和数据进行处理,提供对物理文件系统的支持,物理文件系统单元包括UDFM和RFM,处理来自管理单元2的命令和数据,然后,命令和数据经由顶部驱动单元4处理,此后通过出口的接口转换单元5,将命令请求传输到底层驱动单元,进而使驱动器按照设定的功能工作。显然,在移植时可对管理单元2和顶部驱动单元4进行修改,以适于与本发明的文件系统中的相应部分的连接。After transplantation, the application unit command passes through the entry interface conversion unit 1, and the entry interface conversion unit 1 converts the input command into a format accepted by the management unit 2, and the management unit 2 processes the input command and data, and provides a physical file System support, the physical file system unit includes UDFM and RFM, processing commands and data from the management unit 2, then the commands and data are processed through the top drive unit 4, and then the command request is transmitted to the bottom layer through the interface conversion unit 5 at the exit The drive unit, and then make the drive work according to the set function. Apparently, the management unit 2 and the top drive unit 4 can be modified during migration, so as to be suitable for connection with corresponding parts in the file system of the present invention.

其中由于目标文件系统涉及到了对C语言标准库函数以及与操作系统相关部分函数的调用,所以我们将目标文件系统进行移植之后,需要重新编写此类相关的函数。Among them, since the target file system involves calls to C language standard library functions and some functions related to the operating system, after we transplant the target file system, we need to rewrite such related functions.

在上面的实施例中采用了将目标文件系统进行整体移植的方式,避免了根据VFS的需要进行专用数据结构的接口连接,而这种接口连接的过程是十分困难的,同时本过程没有更改文件系统的内部结构、流程、算法,本过程仅仅涉及进、出接口部分的改写,添加了需要的标准C语言库以及系统相关部分。这一过程简单、清晰、工作量低,可以快速、有效的进行跨系统移植,并在Linux中建立需要的目标文件系统。In the above embodiment, the method of transplanting the target file system as a whole is adopted, which avoids the interface connection of the special data structure according to the needs of VFS, and the process of this interface connection is very difficult, and at the same time, the process does not change the file The internal structure, process, and algorithm of the system, this process only involves the rewriting of the interface part, and the required standard C language library and related parts of the system are added. This process is simple, clear, and with low workload. It can quickly and effectively perform cross-system transplantation, and establish the required target file system in Linux.

同时由于新移植的部分可以采用模块的方式,进行动态的移植,使得本发明的文件系统具有很大的灵活性,可以简单的随时进行添加和卸载。卸载之后,对于原来的操作系统内核,特别是原有的文件系统没有任何的影响。At the same time, because the newly transplanted part can be dynamically transplanted in the form of modules, the file system of the present invention has great flexibility, and can be simply added and uninstalled at any time. After uninstalling, there is no impact on the original operating system kernel, especially the original file system.

本发明还提供一种构建及增强文件系统功能的方法,所述方法包括步骤:设置包括入口的接口转换单元,管理单元,物理文件系统单元,顶部驱动单元,和出口的接口转换单元的文件系统,应用程序单元连接所述入口的接口转换单元,所述入口的接口转换单元连接所述管理单元,所述管理单元连接所述物理文件系统单元,所述物理文件系统单元连接所述顶部驱动单元,所述顶部驱动单元连接所述出口的接口转换单元,和所述出口的接口转换单元连接操作系统的驱动单元,其中,所述入口的接口转换单元用于将输入的命令转换成被所述管理单元所接受的格式,所述管理单元,对输入的命令和数据进行处理,提供对物理文件系统的支持,所述物理文件系统单元包括物理文件系统,用于处理来自所述管理单元的命令和数据,命令和数据经由所述顶部驱动单元处理后,到所述出口的接口转换单元,所述出口的接口转换单元将来自所述顶部驱动单元的命令和数据转换为被操作系统的驱动单元接受的、硬件设备能识别的控制命令与数据,并将其提供给操作系统的驱动单元。The present invention also provides a method for constructing and enhancing file system functions, said method comprising the steps of: setting a file system including an entry interface conversion unit, a management unit, a physical file system unit, a top drive unit, and an exit interface conversion unit , the application program unit is connected to the interface conversion unit of the portal, the interface conversion unit of the portal is connected to the management unit, the management unit is connected to the physical file system unit, and the physical file system unit is connected to the top drive unit , the top drive unit is connected to the interface conversion unit of the outlet, and the interface conversion unit of the outlet is connected to the drive unit of the operating system, wherein the interface conversion unit of the inlet is used to convert the input command into the The format accepted by the management unit, the management unit processes the input commands and data, and provides support for the physical file system, and the physical file system unit includes the physical file system for processing commands from the management unit and data, after the command and data are processed by the top drive unit, they are transferred to the interface conversion unit of the outlet, and the interface conversion unit of the outlet converts the command and data from the top drive unit into the drive unit for the operating system Accepted control commands and data that can be recognized by hardware devices, and provide them to the drive unit of the operating system.

本发明的方法中,还可省略管理单元。在此情况下,本发明的方法包括将本发明的文件系统设置成包括入口的接口转换单元,物理文件系统单元,顶部驱动单元,和出口的接口转换单元,其中,由于省略了管理单元,入口的接口转换单元直接与物理文件系统单元连接。,本发明的方法还包括步骤,通过入口的接口转换单元将输入的命令进行转换后提供给物理文件系统单元,物理文件系统单元包括该物理文件系统,处理来自入口的接口转换单元的命令和数据,并将处理后的命令和数据经由所述顶部驱动单元,提供到出口的接口转换单元,通过出口的接口转换单元将来自顶部驱动单元的命令和数据转换为被操作系统的驱动单元接受的、硬件设备能识别的控制命令与数据后,再其提供给操作系统的驱动单元。本发明的方法在本发明的文件系统中省略管理单元是一种比较特殊的情况,省略后也能提供需要的事务处理。In the method of the present invention, the management unit can also be omitted. In this case, the method of the present invention includes setting the file system of the present invention to include an interface conversion unit of the entry, a physical file system unit, a top drive unit, and an interface conversion unit of the exit, wherein, since the management unit is omitted, the entry The interface translation unit is directly connected with the physical file system unit. , the method of the present invention also includes the step of converting the input command through the interface conversion unit of the entry and providing it to the physical file system unit, the physical file system unit includes the physical file system, and processes commands and data from the interface conversion unit of the entry , and provide the processed command and data to the interface conversion unit of the outlet through the top drive unit, and convert the command and data from the top drive unit into the drive unit accepted by the operating system through the interface conversion unit of the outlet. After the control commands and data recognized by the hardware device are provided to the drive unit of the operating system. The method of the present invention omits the management unit in the file system of the present invention is a relatively special case, and the necessary transaction processing can also be provided after being omitted.

本发明的构建及增强文件系统功能的方法,还包括实现通用和特殊事务处理的步骤,所述步骤包括:在所述物理文件系统单元设置遵从标准协议的标准物理文件系统和/或用户定制的非标准物理文件系统,所述管理单元提供管理和实现标准和/或非标准物理文件系统所需要的通用和特殊功能。The method for constructing and enhancing the file system function of the present invention also includes the step of realizing general and special transaction processing, the step includes: setting a standard physical file system complying with the standard protocol and/or a user-customized file system in the physical file system unit For non-standard physical file systems, the management unit provides general and special functions required to manage and implement standard and/or non-standard physical file systems.

本发明的构建及增强文件系统功能的方法,还包括实现物理文件系统跨平台移植的步骤,所述步骤包括:将物理文件系统从一个操作系统移植到所述物理文件系统单元,修改所述管理单元,提供管理和实现被移植的所述物理文件系统所需要的通用和特殊功能。The method for constructing and enhancing the file system function of the present invention also includes the step of realizing the cross-platform transplantation of the physical file system. The step includes: transplanting the physical file system from an operating system to the physical file system unit, modifying the management A unit that provides the general and specific functions needed to manage and implement the physical file system being migrated.

本发明的构建及增强文件系统功能的方法,还包括接入从另一操作系统移植过来的、带有与原操作系统或原硬件设备相关的信息的目标文件系统的步骤,所述步骤进一步包括在所述目标文件系统设置与所述的文件系统相应的管理单元、文件算法实现单元和顶部驱动单元,并且将与所述的文件系统的相应部分进行连接的步骤。The method for constructing and enhancing file system functions of the present invention also includes the step of accessing a target file system transplanted from another operating system with information related to the original operating system or original hardware device, and the steps further include A step of setting a management unit, a file algorithm implementation unit and a top drive unit corresponding to the file system in the target file system, and connecting with corresponding parts of the file system.

在本发明的文件系统,也可进行目标物理文件系统的跨操作系统的移植,通过对管理单元和顶部驱动单元进行修改,使其提供支持移植的目标物理文件系统的通过和特殊功能,就能将目标物理文件系统从另一操作系统移植到本发明的文件系统中。In the file system of the present invention, the cross-operating system transplantation of the target physical file system can also be carried out. By modifying the management unit and the top driver unit, it can provide the passage and special functions of the target physical file system that supports transplantation. Migrate the target physical file system from another operating system to the file system of the present invention.

下面通过一个实施例,来说明在本发明的文件系统中添加用户要求的特殊功能。在本实施例中,可通过在已有物理文件系统中增加相应的功能,以及对管理单元和顶部驱动单元进行相应修改,使得在文件系统增加用户定制的某项功能。The following uses an embodiment to illustrate the addition of special functions required by users in the file system of the present invention. In this embodiment, a user-customized function can be added to the file system by adding corresponding functions to the existing physical file system and making corresponding modifications to the management unit and the top drive unit.

现在,介绍如何在本发明的文件系统,在UDF物理文件系统的基础上添加实现实时性的功能。Now, how to add the real-time function to the file system of the present invention on the basis of the UDF physical file system.

UDF2.01的协议规范包括了两个部分,一个是标准部分,另一个是附加部分。标准部分实现了UDF文件系统的主体算法;而在附加部分中,规范定义了针对于实时性操作所需要的一些参数和方法。在现有的Linux不同的内核版本中,如Linux 2.4.20内核中实现的UDF 2.01版本和在Linux 2.6.1中实现的UDF 2.5,都是协议中的标准部分的实现。但是并没有实现协议中的附加部分,也就是并不支持实时性的功能。The protocol specification of UDF2.01 includes two parts, one is the standard part and the other is the additional part. The standard part implements the main algorithm of the UDF file system; and in the additional part, the specification defines some parameters and methods required for real-time operations. In different existing Linux kernel versions, such as the UDF 2.01 version implemented in the Linux 2.4.20 kernel and the UDF 2.5 version implemented in Linux 2.6.1, they are all implementations of the standard part of the protocol. However, the additional part in the protocol is not implemented, that is, the real-time function is not supported.

对于现有的Linux文件系统,虽然可以经过努力在其中实现附加部分规定的实时性的功能,但是由于目前Linux文件系统采用了VFS的文件系统,使得上述的实时性功能,并没有显示出良好的性能。在VFS文件系统中,数据的进程管理、调度,内存的管理等方面均通过VFS中的若干数据结构实现,如inode等。当通过上述方式进行数据的传输的时候,所有的事务均由Linux内核中的特殊进程调度算法进行。而Linux的内核在实时性处理方面并没有进行专门的设计,这使得这种非直接的方式,导致了某些具有用户高优先级的进程不能够真的最快被处理。使得实时性的功能不能够完全实现。目前Linux各版本中的UDF部分,并没有包括标准UDF协议中扩展部分的实时性功能,也正是根源于此。For the existing Linux file system, although the real-time function specified in the additional part can be realized through efforts, the above-mentioned real-time function does not show good performance because the current Linux file system adopts the VFS file system. performance. In the VFS file system, data process management, scheduling, and memory management are all implemented through several data structures in the VFS, such as inodes. When data is transmitted in the above manner, all transactions are performed by a special process scheduling algorithm in the Linux kernel. However, the Linux kernel is not specially designed for real-time processing, which makes this indirect method cause some processes with high user priority to not be processed the fastest. The real-time function cannot be fully realized. At present, the UDF part in various versions of Linux does not include the real-time function of the extended part of the standard UDF protocol, which is also the root cause.

本发明所述的文件系统由于去除了VFS单元,并且引入了用户自定义的用户管理单元。所以可以通过专门的设计,良好支持上述实时性功能,解决标准Linux文件系统下,对于实时性功能支持不好的缺点。The file system of the present invention removes the VFS unit and introduces a user-defined user management unit. Therefore, the above-mentioned real-time functions can be well supported through a special design, and the shortcoming of poor support for real-time functions under the standard Linux file system can be solved.

图5示出在本实施例下本发明的文件系统。在标准UDF物理文件系统的基础上,在本发明的文件系统中增加实时性功能的流程或方法如下:FIG. 5 shows the file system of the present invention under the present embodiment. On the basis of the standard UDF physical file system, the process or method of increasing the real-time function in the file system of the present invention is as follows:

修改管理单元,使其除了常规的关于进程调度和内存管理的相关实现之外,还要根据实时性的要求添加实现UDF协议以及用户,关于实时性的特殊定制。这种特殊的定制,在此称为“修改1”,如图5中所示。Modify the management unit so that in addition to the conventional related implementations of process scheduling and memory management, it is also necessary to implement the UDF protocol and the user's special customization of real-time performance according to real-time requirements. This particular customization, referred to herein as "Modification 1", is shown in FIG. 5 .

在UDF物理文件系统单元,添加具体实现UDF实时性功能要求的各种文件系统相关的算法、协议、规定,如果UDF已包含该实时性功能的话,本步骤可以省略。In the UDF physical file system unit, add various file system-related algorithms, protocols, and regulations that specifically implement the UDF real-time function requirements. If the UDF already includes the real-time function, this step can be omitted.

修改顶部驱动单元,在这里,除了关于驱动的常规实现之外,还要添加实现UDF协议以及用户,针对实时性要求的特殊定制,在图5中称为“修改2”。Modify the top drive unit. Here, in addition to the conventional implementation of the drive, it is also necessary to add the implementation of the UDF protocol and the user's special customization for real-time requirements, which is called "Modification 2" in Figure 5.

通过上述方法增加实时性功能后,本发明的文件系统就可提供实时性功能,实现这一特殊事务处理。具体流程如下:After the real-time function is added through the above method, the file system of the present invention can provide the real-time function to realize this special transaction processing. The specific process is as follows:

1.应用程序的操作请求,首先进入输入的接口转换单元,在这里,操作请求的数据和参数等,将被翻译为用户定制的管理单元能够理解的命令语言。1. The operation request of the application program first enters the input interface conversion unit, where the data and parameters of the operation request will be translated into a command language that the user-defined management unit can understand.

2.然后,进入管理单元,在这里根据实时性的要求,除了常规的关于进程调度和内存管理的相关实现之外,还要实现UDF协议以及用户,关于实时性的特殊定制。2. Then, enter the management unit, where according to the real-time requirements, in addition to the conventional related implementation of process scheduling and memory management, the UDF protocol and the user's special customization of real-time performance must also be implemented.

3.此后,数据流进入UDF物理文件系统单元,具体实现UDF要求的各种文件系统相关的算法、协议、规定。3. After that, the data stream enters the UDF physical file system unit, and implements various file system-related algorithms, protocols, and regulations required by UDF.

4.从UDF算法实现单元输出后,数据流进入顶部驱动单元,在这里,除了关于驱动的常规实现之外,还要实现UDF协议以及用户,针对实时性要求的特殊定制。4. After outputting from the UDF algorithm implementation unit, the data flow enters the top drive unit. Here, in addition to the conventional implementation of the drive, the UDF protocol and the user's special customization for real-time requirements must also be implemented.

5.最后,进入出口接口转换单元,在这里,将数据流中的各种数据,参数等转化为底层驱动单元能够理解的格式,输入到底层文件系统中。5. Finally, enter the export interface conversion unit, where various data and parameters in the data stream are converted into a format that the underlying drive unit can understand, and input into the underlying file system.

在本发明方法中,“修改1”是通过在管理单元2中添加实时性判断和实时性处理等模块进行的。当数据流进入管理单元后,其流程可按照图6所示的方式进行:In the method of the present invention, "modification 1" is carried out by adding modules such as real-time judgment and real-time processing in the management unit 2 . After the data flow enters the management unit, its process can be carried out as shown in Figure 6:

1.进入管理单元后,首先进入“实时性判断模块”100,根据相应标志位的说明,系统判断此数据流是否为具有实时性的要求。1. After entering the management unit, first enter the "real-time judging module" 100, and according to the description of the corresponding flag bit, the system judges whether the data flow has real-time requirements.

2.如果具有实时性的要求,那么进入“实时性处理模块”102,按照UDF协议规范进行相应的实时性功能的定制和实现。此步骤完成后,进到步骤4。2. If there is a real-time requirement, enter the "real-time processing module" 102, and customize and realize corresponding real-time functions according to the UDF protocol specification. After this step is complete, go to step 4.

3.如果没有实时性的要求,那么进入“通用数据处理操作模块”101,进行相应的处理后,进到步骤4。3. If there is no real-time requirement, enter the "general data processing operation module" 101, and proceed to step 4 after performing corresponding processing.

4.上述输出的数据流,进入进行其他功能处理的“其他功能管理模块”103,之后完成此部分的实现,进入UDF的算法实现单元。4. The above-mentioned output data flow enters the "other function management module" 103 for processing other functions, and then completes the realization of this part, and enters the algorithm implementation unit of UDF.

在本发明方法中,“修改2”是通过在顶部驱动单元4中修改或添加数据流类型或实时性控制等模块进行的。当数据流进入顶部驱动单元后,其流程可按照图7所示的方式进行:In the method of the present invention, "modification 2" is performed by modifying or adding modules such as data stream type or real-time control in the top drive unit 4 . After the data stream enters the top drive unit, its process can be carried out as shown in Figure 7:

1.数据流经过UDF物理文件系统单元处理后,输出到顶部驱动单元。在这里首先判断传进来的数据流的类型,此功能由104模块实现。按照“一般数据流”,“流媒体数据流”和“实时性数据流”三种情况,分别进入对应的数据处理模块进行处理。上述三个模块分别在图中表示为105模块,106模块和107模块。1. After the data stream is processed by the UDF physical file system unit, it is output to the top drive unit. Here first judge the type of incoming data flow, this function is realized by the 104 module. According to the three situations of "general data flow", "streaming media data flow" and "real-time data flow", respectively enter the corresponding data processing module for processing. The above three modules are respectively represented as module 105, module 106 and module 107 in the figure.

2.经过处理后,数据流进入顶部驱动单元中的其他控制部分,图中108模块。2. After processing, the data flow enters other control parts in the top drive unit, module 108 in the figure.

3.经过顶部驱动单元的所有处理后,数据流进入出口接口转换单元。3. After all processing by the top drive unit, the data flow enters the outlet interface conversion unit.

为了使本文件系统在实际使用中更为灵活,此系统可以设计为一个可安装模块,在不用对于Linux内容的全部源文件进行重新编译的情况下,将此可安装模块动态的插入运行中的内核中,使之成为内核的一个有机整体,从而实现本发明所述的新型文件系统所具有的各项特殊的功能;或者从内核中移走已经安装了的模块,从而取消Linux内核对于新型文件系统的和各项特殊功能的支持。例如,在Linux中,其具体的实现方式使通过调用(module_init)(初始化新型文件系统)和(module_exit)(推出新型文件系统)来实现的。在初始化新型文件系统使,注册新型文件系统;而在推出新型文件系统使,取消已经注册的新型文件系统。In order to make this file system more flexible in actual use, this system can be designed as an installable module. Without recompiling all source files of Linux content, this installable module can be dynamically inserted into the running In the kernel, make it become an organic whole of kernel, thereby realize each special function that the novel file system of the present invention has; Or remove the module that has been installed from kernel, thereby cancel Linux kernel for novel file System and support for various special functions. For example, in Linux, its specific implementation method is realized by calling (module_init) (initializing the new file system) and (module_exit) (launching the new file system). When initializing the new file system, register the new file system; and when launching the new file system, cancel the registered new file system.

在本发明的构建及增强文件系统功能的方法中,还可包括通过在管理单元中根据需要加入功能定制,如某些特定的功能定制,来提供所定制的功能,实现该功能要求的步骤。In the method for constructing and enhancing the file system function of the present invention, it may also include the step of adding function customization, such as some specific function customization, in the management unit as needed to provide the customized function and realize the function requirement.

本发明还提供本发明的文件系统中增加、删除某项功能的增强文件系统功能的方法。如在物理文件系统单元中根据需要或定制增加、删除相应的物理文件系统,如提供该其功能的物理文件系统,或者在已有物理文件系统增加、删除与该项功能对应的相应部分,如具有该功能的部分,通过修改管理单元和顶部驱动单元,如根据增加的物理文件系统或在物理文件系统增加的相应部分,相应修改管理单元和顶部驱动单元,以提供管理和实现所增加的物理文件系统或相应部分所需要的通用和特殊功能以及驱动功能,进而实现功能,或者根据删除和物理文件系统或从物理文件系统删除相应部分,修改管理单元和顶部驱动单元,从中删除与之相对应的对该项功能的支持以及驱动功能,进行实现从本发明的文件系统删除该项功能。The present invention also provides a method for enhancing file system functions by adding or deleting a certain function in the file system of the present invention. For example, in the physical file system unit, add or delete the corresponding physical file system according to the needs or customization, such as the physical file system that provides the function, or add or delete the corresponding part corresponding to the function in the existing physical file system, such as For the part with this function, by modifying the management unit and the top drive unit, such as according to the added physical file system or the corresponding part added in the physical file system, the management unit and the top drive unit are modified accordingly to provide management and realize the added physical file system. The general and special functions and driver functions required by the file system or corresponding parts, and then realize the functions, or modify the management unit and the top drive unit according to the deletion and physical file system or delete the corresponding part from the physical file system, and delete the corresponding The support and driving function of this function are implemented to delete this function from the file system of the present invention.

本发明所述的一种操作系统下的文件系统,以及带有本发明文件系统的操作系统和一种构建及增强文件系统功能的方法,可以用在,但不限于下列产品和技术中:DVD录像机,DVD摄像机,硬盘录像机,硬盘摄像机,以及与DVD,硬盘等记录介质相关的产品、设备和技术。The file system under an operating system described in the present invention, as well as the operating system with the file system of the present invention and a method for constructing and enhancing file system functions can be used in, but not limited to, the following products and technologies: DVD Video recorders, DVD cameras, hard disk video recorders, hard disk cameras, and products, equipment and technologies related to recording media such as DVDs and hard disks.

最后应该说明的是:以上实施例仅用以说明而非限制本发明的技术方案,尽管参照上述实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:依然可以对本发明进行修改或者等同的替换,对于不脱离本发明的精神和范围的任何修改或局部替换,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that: the above embodiments are only used to illustrate and not limit the technical solutions of the present invention, although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be modified or Equivalent replacements, any modifications or partial replacements that do not depart from the spirit and scope of the present invention shall fall within the scope of the claims of the present invention.

Claims (20)

1. the file system under the operating system, described file system comprises: the interface conversion unit of inlet, the physical file system unit, top drive unit, the interface conversion unit of outlet, wherein, the interface conversion unit of described inlet connects application program unit and described physical file system unit, described physical file system unit connects the interface conversion unit and the described top drive unit of described inlet, described top drive unit connects the interface conversion unit of described physical file system unit and described outlet, and the interface conversion unit of described outlet connects the driver element of described top drive unit and operating system.
2. the file system under the operating system, described file system comprises: the interface conversion unit of inlet, administrative unit, the physical file system unit, top drive unit, the interface conversion unit of outlet, the interface conversion unit of wherein said inlet connects application program unit and described administrative unit, described administrative unit connects the interface conversion unit and the described physical file system unit of described inlet, described physical file system unit connects described administrative unit and described top drive unit, described top drive unit connects the interface conversion unit of described physical file system unit and described outlet, and the interface conversion unit of described outlet connects the driver element of described top drive unit and operating system.
3. file system as claimed in claim 2, it is characterized in that: the interface conversion unit of described inlet is used for the command conversion of input is become the form of being accepted by described administrative unit, described administrative unit, order and data to input are handled, support to physical file system is provided, described physical file system unit comprises described physical file system, be used to handle order and data from described administrative unit, after order and data are handled via described top drive unit, interface conversion unit to described outlet, control command and data that driver element that the interface conversion unit of described outlet will be converted to the system of being operated from the order and the data of described top drive unit is accepted, and provide it to the driver element of operating system.
4. file system as claimed in claim 3, it is characterized in that described physical file system unit comprises the standard physical file system of deferring to standard agreement at least, the non-standard physical file system of customization, the physical file system that increases, a kind of with from other operating system transplantations physical file system that come, customization, described administrative unit comprises and is used for management and realizes the needed general and specific function of these physical file systems.
5. file system as claimed in claim 3 is characterized in that described administrative unit also comprises the customizing functions that adds as required, provides this function according to the customizing functions that is added.
6. file system as claimed in claim 3, it is characterized in that, described file system also comprises the target file system of coming from another operating system transplantation, have the information relevant with origin operation system or former hardware device, described target file system comprise with the corresponding administrative unit of described file system, physical file system unit and top drive unit partly or entirely.
7. operating system that has as any one described file system of claim 1-6.
8. operating system as claimed in claim 7, further comprise the standard file system that contains VFS, wherein, set up compiler toggle in the application program, be used to provide the order of applying unit to enter standard file system and still enter selection as any one described file system of claim 1-6.
9. operating system as claimed in claim 8, it is characterized in that, open described compiler toggle, the operational order of the file system of applying unit is pointed to the system call that increases newly, the order of applying unit enters any one described file system as claim 1-6 by the described system call that increases newly.
10. operating system as claimed in claim 8, it is characterized in that, increase new control command word in system call, point to the entrance function in the described operating system, call any one described file system as claim 1-6 as any one described file system of claim 1-6.
11. operating system as claimed in claim 7 wherein, as a module, is loaded into described operating system or from the unloading of this operating system as any one described file system of claim 1-6 at any time.
12. operating system as claimed in claim 7 wherein, can be used as the part of operating system nucleus as any one described file system of claim 1-6.
13. a method that makes up and strengthen file system function, described method comprises step:
Step 1, setting comprises the interface conversion unit of inlet, the physical file system unit, top drive unit, file system with the interface conversion unit that exports, wherein, application program unit connects the interface conversion unit of described inlet, the interface conversion unit of described inlet connects described physical file system unit, described physical file system unit connects described top drive unit, described top drive unit connects the interface conversion unit of described outlet, the driver element of the interface conversion unit attended operation system of described outlet, and
Step 2, after changing, the order that will import by the interface conversion unit of described inlet offers described physical file system unit, described physical file system unit comprises physical file system, processing is from the order and the data of the interface conversion unit of described inlet, after order and data are handled via described top drive unit, interface conversion unit to described outlet, the driver element that interface conversion unit by described outlet will be converted to the system of being operated from the order and the data of described top drive unit is accepted, control command and data that hardware device can be discerned, and provide it to the driver element of operating system.
14. a method that makes up and strengthen file system function, described method comprises step:
Step 1, setting comprises the interface conversion unit of inlet, administrative unit, the physical file system unit, top drive unit, file system with the interface conversion unit that exports, wherein, application program unit connects the interface conversion unit of described inlet, and the interface conversion unit of described inlet connects described administrative unit, and described administrative unit connects described physical file system unit, described physical file system unit connects described top drive unit, described top drive unit connects the interface conversion unit of described outlet, the driver element of the interface conversion unit attended operation system of described outlet, and
Step 2, interface conversion unit by described inlet becomes the form of being accepted by described administrative unit with the command conversion of importing, by described administrative unit the order and the data of input are handled, support to physical file system is provided, in described physical file system unit, comprise described physical file system, handle order and data thus from described administrative unit, after order and data are handled via described top drive unit, interface conversion unit to described outlet, the driver element that interface conversion unit by described outlet will be converted to the system of being operated from the order and the data of described top drive unit is accepted, control command and data that hardware device can be discerned, and provide it to the driver element of operating system.
15. as structure as described in the claim 14 and strengthen the method for file system function, it is characterized in that, described method comprises the step that realization is general and particular transaction is handled, described step comprises: defer to the non-standard physical file system of the standard physical file system of standard agreement and/or customization and provide management and realization standard and/or the needed general and specific function of non-standard physical file system by described administrative unit in the unit setting of described physical file system.
16. as structure as described in claim 14 or 15 and strengthen the method for file system function, it is characterized in that described method is included in the described administrative unit and adds customizing functions according to user's needs, realizes the step of this functional requirement.
17. as structure as described in claim 14 or 15 and strengthen the method for file system function, it is characterized in that, described method comprises the step of increase, a certain function of deletion, described step comprises: increase, delete corresponding physical file system or having the corresponding step partly of physical file system increase, deletion and this function in the physical file system unit, revise described administrative unit and top drive unit, the step that provides or delete the function corresponding support and drive function.
18. as structure as described in claim 14 or 15 and strengthen the method for file system function, it is characterized in that, described method comprises the step of the function of cross-platform transplanting customization, described step further comprises: the physical file system that increases the customization of coming from another operating system transplantation in described physical file system unit, revise described administrative unit and top drive unit, management is provided and realizes transplanted described physical file system needed general and specific function and driving function.
19. method as claim 14 or 15 described structures and enhancing file system function, it is characterized in that, the step that described method comprises is that access is come from another operating system transplantation, have the target file system of the information relevant with origin operation system or former hardware device, described step further is included in described target file system setting and the corresponding administrative unit of described file system, physical file system unit and top drive unit, and the appropriate section of described these unit and described file system is carried out step of connecting.
20. the file recording device with the described file system of claim 2 is characterized in that, comprising:
Application program unit, operation adapts to the data of alternative document system; And
Hardware device receives the data from the driver element of described operating system, wherein,
Described ingress interface converting unit will be converted to the data that adapt to described file system operation from the data of the described alternative document of the adaptation of described application program unit system operation;
Described administrative unit is used to control described physical file system unit, and the process of the data that will receive described hardware device is dispatched;
Described physical file system unit is used for handling the data from described administrative unit;
Described top drive unit is used to handle the data from described physical file system unit, and sends it to described discharge coupling converting unit;
Described discharge coupling converting unit will be converted to the data of the described alternative document of adaptation system operation from the data of the described file system operation of the adaptation of described top drive unit, and send it to the driver element of described operating system.
CN2005100598552A 2005-03-31 2005-03-31 File system and method for constructing enhanced functions thereof, operating system, recording device Expired - Fee Related CN100407139C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005100598552A CN100407139C (en) 2005-03-31 2005-03-31 File system and method for constructing enhanced functions thereof, operating system, recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005100598552A CN100407139C (en) 2005-03-31 2005-03-31 File system and method for constructing enhanced functions thereof, operating system, recording device

Publications (2)

Publication Number Publication Date
CN1841317A CN1841317A (en) 2006-10-04
CN100407139C true CN100407139C (en) 2008-07-30

Family

ID=37030360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005100598552A Expired - Fee Related CN100407139C (en) 2005-03-31 2005-03-31 File system and method for constructing enhanced functions thereof, operating system, recording device

Country Status (1)

Country Link
CN (1) CN100407139C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY175092A (en) * 2011-01-21 2020-06-05 Interdigital Ce Patent Holdings Method for backward-compatible aggregate file system operation performance improvement. and respective apparatus
CN102662870B (en) * 2012-03-20 2014-08-13 武汉噢易科技有限公司 Android operation system protection method based on input/output request intercepted by VFS (virtual file system) layer
CN104573061B (en) * 2015-01-23 2017-09-26 南开大学 A kind of Virtual File System apparatus and method for supporting expanded function
CN106371934A (en) * 2016-08-25 2017-02-01 成都索贝数码科技股份有限公司 Windows file system driver-based third-party storage protocol file access system and access method
CN107133034A (en) * 2017-04-17 2017-09-05 王成 The platform software implementation method and system of cross operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771379A (en) * 1995-11-01 1998-06-23 International Business Machines Corporation File system and method for file system object customization which automatically invokes procedures in response to accessing an inode
US20030009473A1 (en) * 2001-05-31 2003-01-09 Ham Jungkyoo Pamela Method, system, and computer program product for providing an extensible file system for accessing a foreign file system from a local data processing system
CN1553325A (en) * 2003-06-05 2004-12-08 联想(北京)有限公司 Method for transparent extending document system function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771379A (en) * 1995-11-01 1998-06-23 International Business Machines Corporation File system and method for file system object customization which automatically invokes procedures in response to accessing an inode
US20030009473A1 (en) * 2001-05-31 2003-01-09 Ham Jungkyoo Pamela Method, system, and computer program product for providing an extensible file system for accessing a foreign file system from a local data processing system
CN1553325A (en) * 2003-06-05 2004-12-08 联想(北京)有限公司 Method for transparent extending document system function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Linux系统中虚拟文件系统内核机制研究. 史芳丽,周亚莉.陕西师范大学学报(自然科学版),第33卷第1期. 2005
Linux系统中虚拟文件系统内核机制研究. 史芳丽,周亚莉.陕西师范大学学报(自然科学版),第33卷第1期. 2005 *

Also Published As

Publication number Publication date
CN1841317A (en) 2006-10-04

Similar Documents

Publication Publication Date Title
CN110162345B (en) Application program access method and device and storage medium
CN103092777B (en) Storage and recovery application run time behaviour
US8788634B2 (en) Portable device upgrade via a content transfer protocol
JP4578480B2 (en) Promotion and demotion technology to facilitate file property management between object systems
CN108037961A (en) A kind of application program collocation method, device, server and storage medium
CN102270141B (en) Configurable data acquisition software system and designing method
JPH10283198A (en) User mode proxy for kernel mode operation in computer operating system
US8250352B2 (en) Isolating workload partition space
CN102830995B (en) A kind of Android platform software upgrade method retaining user data
CN113849379B (en) Method, device, equipment and readable medium for collecting server asset information
US9495410B1 (en) File creation through virtual containers
AU2012255716A1 (en) Providing access to mainframe data objects in a heterogeneous computing environment
CN105205142B (en) Preserve method, device and the mobile terminal of journal file
CN105378689A (en) Unified extensible firmware interface (UEFI) driver and protocol
US20220012049A1 (en) Synchronization of Source Code Under Development in Multiple Concurrent Instances of an Integrated Development Environment
CN100407139C (en) File system and method for constructing enhanced functions thereof, operating system, recording device
CN106528133A (en) Equipment request processing method and device applied to multiple systems
CN1308838C (en) Method of utilizing virtual equipment file system in expanding memory capacity of movable device
CN106919391A (en) Towards the embedded system of the customizable operating system component of smart mobile phone
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
CN114385733A (en) Method and device for unified creation of data model in ETL process
US7996631B1 (en) System and method for accessing storage devices attached to a stateless client
CN113434315B (en) Interface management method and device, storage medium and electronic equipment
CN101753579B (en) Multimedia play method for mobile communication equipment
US20060026414A1 (en) Managing the environmental configuration for an application disposed in removable storage

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
ASS Succession or assignment of patent right

Owner name: HITACHI LTD.

Free format text: FORMER OWNER: HITACHI,LTD.

Effective date: 20130821

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130821

Address after: Tokyo, Japan

Patentee after: Hitachi Consumer Electronics Co.,Ltd.

Address before: Tokyo, Japan

Patentee before: Hitachi Manufacturing Co., Ltd.

ASS Succession or assignment of patent right

Owner name: HITACHI MAXELL LTD.

Free format text: FORMER OWNER: HITACHI LTD.

Effective date: 20150304

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150304

Address after: Osaka Japan

Patentee after: Hitachi Maxell, Ltd.

Address before: Tokyo, Japan

Patentee before: Hitachi Consumer Electronics Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180302

Address after: Kyoto Japan

Patentee after: Mike seer

Address before: Osaka Japan

Patentee before: Hitachi Maxell, Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080730

Termination date: 20180331