Apparatus, system and method for managing object-based file systems

By creating block access objects in the object-based file system, external applications are allowed to write using the block service protocol, which solves the problem of difficulty in writing to the file system under limited user access and achieves efficient indexing and deduplication indexing. Update capability.

CN113841136BActive Publication Date: 2024-10-01HITACHI VANTARA LLC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201980096435.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-17
Publication Date
2024-10-01
Estimated Expiration
2039-05-17

AI Technical Summary

Technical Problem

It is difficult for existing object-based file systems to allow external processes to write to the file system when user access is restricted (such as read-only state), especially when it is necessary to create or update index files or deduplication indexes.

Method used

By creating a block access object in the file system management department, external applications are allowed to access the file system using the block service protocol, bypassing object-level access restrictions, and providing a block storage device for write operations, such as by mounting it as a block device To facilitate writing by search indexing or deduplication indexing applications.

Benefits of technology

It achieves the ability to effectively write to the file system under restricted user access, ensuring that indexes and deduplication indexes can be updated without affecting file system consistency, thus supporting file system snapshots and checkpoint operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113841136B_ABST
    Figure CN113841136B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an apparatus, system and method for managing an object-based file system, and in particular to providing external applications with modification access to a file system managed in a user-access-restricted state, such as a read-only state. The apparatus for managing an object-based file system according to the present disclosure includes a network interface configured to be communicatively connected to one or more client computers via a communication network, and a file system management unit at least partially implemented by a processor, the file system management unit being configured to manage the object-based file system including a plurality of file objects, each file object being associated with a corresponding file of the file system, the file system management unit being configured to serve file access requests of a file service protocol received via the interface. The file system management unit is also configured to provide a block access object of the object-based file system, the block access object being capable of being mounted as a block storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an apparatus, system and method for managing an object-based file system. Background Art

[0002] In the prior art, it is known to provide a file server or file server system that manages a file system based on object-based management, wherein files and directories of the file system are managed as file system objects at an object layer level together with management objects, which include metadata of the file system. Above the object layer level, files can be accessed from a client computer by communicating using a file service protocol. Below the object layer level, data can be stored in logical blocks and each object includes metadata indicating a mapping to one or more storage blocks associated with the corresponding file system object.

[0003] Such file system management may include various file system management operations, such as deduplication, search indexing, making a snapshot of a file system, establishing a checkpoint sequence of a file system, and file system replication.

[0004] Some file system management operations, such as copying a source file system to a target file system, may require managing a file system (e.g., a target file system) in a user-access restricted state (e.g., even in a read-only state), while other file system management operations may require an external process to write index files or an index database (e.g., in the case of searching an index or managing a deduplication index), and such managed index files or index databases may preferably be managed as part of the file system so as to be included in other file system management operations, such as snapshot and checkpoint processing.

[0005] The present disclosure is directed to providing a mechanism to enable limiting user access to file system objects of a file system while effectively allowing external processes to write data to or within the file system.

[0006] Therefore, an object of the present disclosure is to provide an apparatus, system and method for managing an object-based file system, in particular for effectively modifying external application access to a file system managed in a user-access-restricted state, such as a read-only state. Summary of the invention

[0007] According to an exemplary aspect, a device for managing an object-based file system is proposed, the device comprising a network interface configured to be communicatively connected to one or more client computers via a communication network, and a file system management unit implemented at least in part by a processor, the file system management unit being configured to manage an object-based file system comprising a plurality of file objects, each file object being associated with a corresponding file of the file system, the file system management unit being configured to service file access requests of a file service protocol received via the interface.

[0008] In some exemplary embodiments, the file system management unit may be further configured to provide a block access object of the object-based file system, and the block access object can be mounted as a block storage device.

[0009] Therefore, effective modification access to block access objects can be provided to external applications of the file system, even though file access based on the file service protocol may be managed as a user access restricted state, such as in a read-only state.

[0010] In some exemplary embodiments, the file system management unit may include a block service protocol server unit configured to service block access requests of a block service network protocol directed to a block storage device of a block access object of the object-based file system.

[0011] In some exemplary embodiments, the file system management part may be configured to provide a block access object of the object-based file system, which can be mounted as a block storage device by a host operating system of a host computer.

[0012] In some exemplary embodiments, the file system management portion may include a file service application executed on a host operating system of a host computer.

[0013] In some exemplary embodiments, the file system management unit may be configured to provide block access objects of the object-based file system to a host operating system of a host computer so as to format the block storage device provided by the block access object into the file system format of the host operating system.

[0014] In some exemplary embodiments, the file system management portion may be configured to provide block access objects of the object-based file system for write access by external applications executing on a host operating system of a host computer.

[0015] In some exemplary embodiments, the external application may be a search index application configured to create and / or update a search index based on a file access request issued for a file associated with an object of the object-based file system.

[0016] In some exemplary embodiments, the file system management unit may be configured to provide a block access object of the object-based file system for write access by the search index application to write to the search index file or search index database stored in the block access object.

[0017] In some exemplary embodiments, each object of an object-based file system may be associated with one or more corresponding storage blocks at a block level, and a file system management unit may include a deduplication processing unit configured to perform deduplication processing at the block level, including calculating hash values ​​of each storage block at the block level, and deduplicating the storage blocks based on matching the hash values.

[0018] In some exemplary embodiments, the external application may be a deduplication index application configured to create and / or update a deduplication index based on a hash value shared by the deduplication processing section through inter-process communication.

[0019] In some exemplary embodiments, the file system management unit may be configured to provide a block access object of the object-based file system for write access by a deduplication index application to write to a deduplication index file or a deduplication index database stored in the block access object.

[0020] In some exemplary embodiments, the file system management part may be configured to create a block access object at an object level of the object-based file system when determining that the object-based file system is set to a user access restricted state.

[0021] In some exemplary embodiments, the file system management section may be configured to create a block access object upon determining that the object-based file system is set to a read-only state.

[0022] In some example embodiments, the file system management may be configured to create a block access object with associated object metadata.

[0023] In some exemplary embodiments, the object metadata of the block access object may indicate a block access type of the block access object.

[0024] In some exemplary embodiments, the object metadata of a block access object indicates a unique object number reserved for objects of the block access type.

[0025] According to a further exemplary aspect, a system may be provided, the system comprising a host computer executing a host operating system, and an apparatus according to at least one of the above aspects and one or more of the above exemplary embodiments.

[0026] In some exemplary embodiments, the file system management unit of the device of the system may be configured to provide a block access object of an object-based file system, which can be mounted as a block storage device by a host operating system of a host computer.

[0027] According to another exemplary aspect, a method for managing an object-based file system may be provided, the method comprising managing, at least in part by a processor, an object-based file system comprising a plurality of file objects, each file object being associated with a corresponding file of the file system, a file system management unit being configured to service file access requests of a file service protocol received from one or more client computers, and to provide a block access object of the object-based file system, the block access object being mountable as a block storage device.

[0028] The method may also implement any functions and / or operations of at least one of the aforementioned aspects and one or more of the aforementioned exemplary embodiments.

[0029] According to a further exemplary aspect, there may be provided a computer program product comprising computer readable instructions which, when executed on a computer, cause the computer to perform the above method.

[0030] Although certain exemplary aspects have been described above, it should be understood that these aspects are merely illustrative and not restrictive of the broader invention, and that the exemplary aspects are not limited to the specific constructions and arrangements shown and described above, since various other variations, combinations, omissions, modifications, and substitutions in addition to those set forth in the above paragraphs are possible.

[0031] Those skilled in the art will appreciate that various changes, modifications and / or combinations of the aspects just described may be configured. Therefore, it should be understood that, in addition to those specifically described herein, additional aspects may be practiced. For example, unless otherwise expressly stated, the steps of the processes described herein may be performed in an order different from that described herein, and one or more steps may be combined, split, or performed simultaneously.

[0032] In view of the present disclosure, those skilled in the art will also appreciate that the different aspects described herein can be combined to form further aspects of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is an exemplary schematic block diagram of a file storage system according to some exemplary embodiments of the present invention.

[0034] Figure 2 is an exemplary schematic block diagram of a file server according to some exemplary embodiments of the present invention.

[0035] Figure 3is an exemplary schematic block diagram of an object-based file system management configuration according to some exemplary embodiments of the present invention.

[0036] Figure 4 is an exemplary schematic block diagram of an object tree structure according to some exemplary embodiments of the present invention.

[0037] Figure 5 is an exemplary schematic block diagram of a file system management system according to some exemplary embodiments of the present invention.

[0038] Figure 6 is an exemplary schematic block diagram of a file system management system according to some other exemplary embodiments of the present invention.

[0039] Figure 7 A method for file system management according to some exemplary embodiments, in particular for providing block access to objects of an object-based file system, is exemplarily illustrated. DETAILED DESCRIPTION

[0040] Below, the preferred aspects and embodiments of the present invention will be described in more detail with reference to the accompanying drawings. The same or similar features in different drawings and embodiments are represented by similar reference numerals. It should be understood that the following detailed descriptions relating to various preferred aspects and preferred embodiments are not intended to limit the scope of the present invention.

[0041] Figure 1 is an exemplary schematic block diagram of a file storage system according to some exemplary embodiments of the present invention.

[0042] Exemplarily, the file storage system includes a file server 100 (exemplarily, for the sake of simplicity and convenience, a single file server 100 is shown, but the file storage system may also include multiple file servers, such as a file server cluster).

[0043] Exemplarily, the file server 100 is communicatively connected to a plurality of client computers 101a, 101b, and 101c (client devices) via a communication network 102. The communication network 102 may include one or more local networks, such as a local area network (LAN), a wireless local area network (WLAN), etc., and the communication network 102 may include a wider area network, such as a wide area network (WAN), and / or a global network, such as the Internet or an Internet Protocol network.

[0044] Further illustratively, the file server 100 is communicatively connected to a plurality of storage devices 104a, 104b, and 104c via a communication network 103, which may include a storage network or a storage area network (SAN) or the like. The storage devices 104a, 104b, and 104c may provide block storage for storing data, and in some exemplary embodiments, the storage devices may be configured to store data in a redundant manner for data protection purposes, such as through a RAID configuration (RAID system).

[0045] In some exemplary embodiments, the file server 100 may be configured to implement file access via the network 102 using one or more file service network protocols (eg, SMB, CIFS, and / or NFS).

[0046] In some exemplary embodiments, the file server 100 may be configured to communicate with one or more storage devices 104a, 104b, and 104c via a network 103 using one or more block service network protocols (e.g., network block device, SCSI, Fibre Channel, iSCSI, or Ethernet Fibre Channel).

[0047] It should be noted that the file storage system may include multiple file servers and multiple RAID systems interconnected in various configurations, including a full grid configuration where any file server can communicate with any RAID system over a redundant and switched Fibre Channel network.

[0048] Figure 2 is an exemplary schematic block diagram of a file server 100 according to some exemplary embodiments of the present invention.

[0049] Exemplarily, the file server 100 includes a processing unit 1001 (for example, implemented by one or more processors), and a storage unit 1002, wherein the storage unit 1002 is used to store data and / or software for use by the processing unit 1001, and the storage unit 1002 exemplarily includes one or more memories, such as ROM, RAM, cache, etc., and optionally further includes a storage device such as a storage drive (for example, a hard disk and / or a solid-state drive).

[0050] Further exemplarily, the file server 100 includes a client network interface 1003 and a storage network interface 1004, wherein the client network interface 1003 is configured to communicate with one or more client computers, such as client computers 101a, 101b, and 101c, via the communication network 102, and the storage network interface 1004 is configured to communicate with one or more storage devices, such as storage devices 104a, 104b, and 104c, via the communication network 103. In other exemplary embodiments, in addition to or instead of the storage network interface 1004, the file server 100 may include an internal storage device for block storage.

[0051] In other exemplary embodiments, when the storage system includes multiple file servers for distributed file system management, the multiple file servers may further include a file server interface for communicating with other file servers of the system.

[0052] For example, in some exemplary embodiments, the file server 100 (or the file server system cluster) may be configured to manage one or more file systems according to object-based file system management.

[0053] Figure 3 is an exemplary schematic block diagram of an object-based file system management configuration according to some exemplary embodiments of the present invention.

[0054] The file system management configuration exemplarily managed by the file server 100 (or the file server system cluster) exemplarily includes a file level layer 31 , an object level layer 32 , and a block level layer 33 .

[0055] The file level 31 illustratively manages files (and directories) of one or more file systems. The object level 32 illustratively manages objects of one or more file systems, wherein each file (and further optionally each directory) of the file level 31 may be illustratively associated with a corresponding file system object of the object level 32.

[0056] Finally, illustratively, the block level layer 33 manages storage blocks (eg, logical blocks) for data storage, wherein each object of the object level layer 32 may be associated with one or more storage blocks of the block level layer 33 .

[0057] For the association of files (and optionally directories) with corresponding associated objects of the object level 32, the file server 100 (or file server system cluster) can manage metadata 312. The metadata 312 can indicate the association of files (and optionally directories) with corresponding associated objects of the object level 32.

[0058] In some exemplary embodiments, metadata 312 may be managed as one or more metadata objects of object level layer 32 .

[0059] Therefore, for each file system, at the object level 32, the file server 100 (or file server system cluster) can manage one or more file system objects (including file objects and / or directory objects), and one or more management objects (including one or more metadata objects).

[0060] For the association of objects with corresponding storage blocks of the block level layer 33 (storing data of the corresponding associated objects), the file server 100 (or the file server system cluster) can manage metadata 323. The metadata 323 can indicate the association of objects (file system objects and management / metadata objects) with corresponding associated storage blocks of the block level layer 33.

[0061] Thus, for each object, the file server 100 (or a cluster of file server systems) may manage one or more storage blocks storing metadata 323 and object data.

[0062] In some exemplary embodiments, metadata 323 may be managed as a dynamic tree structure of corresponding objects.

[0063] Figure 4 is an exemplary schematic block diagram of an object tree structure of an object 400 according to some exemplary embodiments of the present invention.

[0064] The object 400 exemplarily includes a tree structure of multiple metadata nodes, the multiple metadata nodes including a root metadata node 401 , multiple indirect metadata nodes 411 and 412 , multiple direct metadata nodes 421 , 422 , 423 and 424 , and multiple storage blocks 431 to 438 .

[0065] Exemplarily, the root metadata node 401 includes pointers (exemplarily shown by arrows) to indirect metadata nodes 411 and 412, which include pointers to corresponding nodes among direct metadata nodes 421 to 424, and direct metadata nodes 421 to 424 include pointers to corresponding storage blocks among multiple storage blocks 431 to 438.

[0066] When data is written to an object, the data may be written to additional storage blocks, which may then be additionally allocated to the object, and additional metadata nodes and / or additional pointers may be dynamically added to the tree structure. The tree structure may also include multiple levels of indirect nodes. Typically, a direct metadata node is a metadata node that includes a pointer directly to a storage block, while an indirect metadata node is a metadata node that points to other metadata nodes (e.g., other indirect metadata nodes and / or direct metadata nodes).

[0067] In some exemplary aspects, the file server 100 (of the file server cluster system) can manage a special metadata object (eg, called an indirect object) at the object level that associates a file identifier (eg, such as a file handle) with an object.

[0068] Then, when the user (client computer) sends a file access request of a certain file service protocol, which indicates the file identifier of the file to be accessed and the offset of the data to be accessed in the target file, the file server can traverse the object tree of the special metadata object (indirect object) to identify the associated object identifier of the associated file object.

[0069] Then, for example, based on the offset indicated in the file access request, the file server may traverse the object tree of the associated file object to access the storage block(s) corresponding to the indicated offset and the requested data length.

[0070] Now, in some cases, it may be desirable to restrict user access to a file system managed by a file server, such as by establishing certain access permissions or making the file system completely read-only.

[0071] Restricted user access may mean that modification access such as write access is at least partially prohibited and / or disabled. When the file system is read-only, read access to the file system is allowed / enabled, while modification access (such as write access) is prohibited / disabled.

[0072] For example, a file system can be made read-only when it is the target file system of a replication process that replicates another source file system, wherein the source file system is still accessible and modifications performed in the source file system are replicated to the target file system. To keep the target file system consistent with the source file system, independent user access to the target file system needs to be disabled (except for read access).

[0073] Nonetheless, it may be desirable for a user-access restricted file system (e.g., a read-only file system) to perform operations that may require writing data and / or metadata (e.g., index files) (e.g., a search index for search purposes and / or a deduplication index for deduplication purposes), where the written data should be preserved as part of the file system (e.g., as metadata associated with the file system) so as to be moved with the file system when the file system is moved, and / or integrated / included in certain file system operations (e.g., creating a file system snapshot or a file system checkpoint).

[0074] To this end, in some exemplary embodiments, exemplary novel concepts and exemplary mechanisms are proposed that allow writing certain data within a file system that is (at least currently, e.g., temporarily or permanently) managed as a user-access-restricted or even read-only file system.

[0075] Figure 5 is an exemplary schematic block diagram of a file system management system according to some exemplary embodiments of the present invention.

[0076] Illustratively, such a file system management system may be implemented on the file server 100 or a plurality of file servers of the file server system, as exemplarily described in the above exemplary aspects.

[0077] The file system management system may run an operating system (OS) layer of the operating system 500. Exemplarily, the file system management part 510 is configured to execute operations or processes on the operating system 500.

[0078] The file system management unit 510 is exemplarily configured according to the hierarchical structure ( Figure 5 The dotted box in the figure manages one or more file systems. The hierarchical structure includes a file level layer 31, an object level layer 32 and a storage block level layer 33, for example, similar to the above combined Figure 3 Discussed.

[0079] The file system management unit 510 illustratively includes a file service protocol server unit 511, which is configured to receive and serve file service protocol access requests according to one or more file service network protocols (e.g., SMB, CIFS and / or NFS).

[0080] The file service protocol server 511 allows access to files at the file level 31, such as " / file1" and " / file2" of the file system. Figure 3Exemplarily discussed, the files of the file system may be associated with corresponding file system objects of the object hierarchy 32. For example, the file " / file1" is associated with the file system object O1, and " / file2" is associated with the file system object O2.

[0081] Furthermore, each object of the object level layer 32 is associated with a corresponding storage block(s) of the block level layer 33. For example, object O1 is associated with storage blocks B1 and B2, and object O2 is associated with storage blocks B3 and B4.

[0082] Therefore, the file " / file1" of the file system is exemplarily managed as the file system object O1, which stores the file data of " / file1" in the associated storage blocks B1 and B2, and the file " / file2" of the file system is exemplarily managed as the file system object O2, which stores the file data of " / file2" in the associated storage blocks B3 and B4.

[0083] As described above, when more data is written to any file, the corresponding associated object can be dynamically expanded by allocating more blocks to the corresponding object and adjusting the object's metadata (eg, its metadata tree).

[0084] The file service protocol server unit 511 can be accessed by a corresponding file service protocol client using a compatible file service network protocol, such as from an external client computer used to establish user access to the managed file system or from a file service protocol client unit 503 configured / running on the operating system layer of the operating system 500.

[0085] In other words, the file service protocol server portion 511, according to the parlance of the corresponding file service network protocol, can provide a managed file system for access as a share or export, either for external client computers or for the internal operating system 500 and applications executed thereon.

[0086] Therefore, when application 520 is executed on operating system 500, application 520 can access a virtual file system (OS virtual file system) managed by operating system 500 and provided by operating system's file system driver 502, which is configured to communicate with file service protocol client part 503.

[0087] In other words, the file system managed by the file system management part 510 can be provided to the application 520 via the file service protocol client part 503 and the OS file system driver 502 as a shared / exported file system of the virtual file system 501 of the operating system 500 .

[0088] On the other hand, when the user's access to the file system managed by the file system management unit 510 is (partially) restricted or when the file system managed by the file system management unit 510 is even set to read-only, such file system access by the application 520 is restricted or even limited to read-only access, and write access may be restricted or even prohibited.

[0089] However, in some cases, it may be desirable for application 520 to write data even to a file system with limited user access or even a read-only file system.

[0090] For example, in Figure 5 In the present invention, it can be assumed that application 520 is an indexing application configured to create a search index associated with data stored in a file system to be stored in an index file or an index database that should be managed together with the indexed file system.

[0091] It may then be desirable for the indexing application 520 to continue writing to the index files or index database of the file system even when user access to the file system is restricted or even when the file system is in a read-only state.

[0092] Exemplarily, in some exemplary embodiments, this may be accomplished by providing a special type of file system object in the file system that is accessible via a block services network protocol (e.g., network block device, SCSI, Fibre Channel, iSCSI, or Fibre Channel over Ethernet).

[0093] To this end, a special object O3 (illustratively, without any association with files on the file layer 31) may be created on the object level 32 in the file system managed by the file system management unit 510, for example as a management object or a metadata object.

[0094] As such, the special object O3 may still be affected by file system operations, such as operations considered in the snapshot or checkpoint mechanism of the file system management of the file system management part 510.

[0095] In order to access the special object O3, the file system management part 510 illustratively includes a block service protocol server part 512. Illustratively, the special object O3 is associated with the storage blocks B5 to B7 at the block level layer 33.

[0096] In order to create or modify a search index based on indexing file system objects (such as objects O1 and O2, which are associated with regular files of the file system managed by the file system management unit 510), the application 520 can still read files via the file service protocol client unit 503 through the above mechanism.

[0097] However, since write access to the file system may be restricted or prohibited (eg, in the case of a read-only file system), the index file or index database may be written to the special object O3 by a different mechanism in some exemplary embodiments.

[0098] Exemplarily, the special object O3 may be a block service protocol volume (may also be referred to as a "block" in the terminology of the block service protocol, but in order to distinguish it from the storage block of the block-level layer 33, it is referred to as a volume or a "block" here).

[0099] In other words, the operating system 500 may be enabled to mount the BLOCK as a volume or block device, thereby formatting the volume of the BLOCK as a virtual file system of the operating system 500, i.e., disguised as a local file system representing the operating system 500. That is, the operating system 500 is enabled to mount a special object O3 as a virtual local OS file system, such as an index file or an index database for storing the application 520.

[0100] The operating system 500 further illustratively includes a block service protocol client unit 505 that communicates with a block service protocol server unit 512 of the file system management unit 510 .

[0101] The operating system 500 also illustratively includes an OS block driver 504 that communicates with a block service protocol client part 505 of the operating system 500 and an OS file system driver 502 of the operating system 500 .

[0102] Therefore, the application 520 can access the virtual file system mounted from the special object O3 through the virtual file system 501, the OS file system driver 502, the OS block driver 504, the block service protocol client unit 505 and the block service protocol server unit 512 of the file system management unit 510, for example, for writing a search index file or a search index database into the virtual file system provided by the special object O3.

[0103] In the above example, even when normal access to the file system managed by the file system management part 510 is restricted, or even when the file system is set to read-only (temporarily or permanently), the application 520 can write to the special object O3 in an unrestricted manner.

[0104] In the above, the mechanism is described in conjunction with an exemplary indexing application 520, which, for example, creates and / or updates a search index based on a file system managed by the file system management unit 510 and writes a search index file or a search index database into a special object O3 of the file system managed by the file system management unit 510.

[0105] However, in other exemplary embodiments, similar principles may be applied to or used for file system deduplication, such as in the following combination Figure 6 Discussed.

[0106] Figure 6 is an exemplary schematic block diagram of a file system management system according to some other exemplary embodiments of the present invention.

[0107] exist Figure 6 In the example, the file system management unit 510 further includes a deduplication processing application 513, which is configured to perform a deduplication process within (one or more) file systems managed by the file system management unit 510.

[0108] For example, the deduplication processing application 513 may be configured to perform a deduplication process in which the deduplication processing application 513 reads data of storage blocks of the storage block level layer 33, for example to calculate a hash value of each storage block (storing user data or file system object data).

[0109] Then, if the hash value matches the previously established hash value, indicating that the corresponding storage block stores the same data as data already stored in another storage block, the deduplication processing application 513 can be configured to dedupe the corresponding storage block by replacing one of the storage blocks with a pointer or reference to another storage block, thereby enabling the replaced block to be released for further use, thereby managing the storage space more efficiently.

[0110] However, it may be beneficial to use an external application (eg, deduplication index application 530) to create or update a deduplication index of hash values ​​and associations with hashed storage blocks.

[0111] Exemplarily, the deduplication index application 530 for externally creating or updating the deduplication index runs on the operating system 500 and communicates with the deduplication processing application 513 of the file system management unit 510, for example, by Figure 6 The arrow IPC in the middle indicates inter-process communication.

[0112] Still, it may be desirable to save / store the deduplication index within a file system managed by the file system management unit 510 (e.g., as one or more deduplication index files or a deduplication index database), preferably even though access to the file system may be restricted or even though the file system may be read-only.

[0113] and Figure 5Similarly, the file system managed by the file system management unit 510 includes a special object O3 on the object level 32. That is, the special object O3 can be created on the object level 32 in the file system managed by the file system management unit 510 (illustratively, without any association with the files on the file level 31), for example, as a management object or a metadata object.

[0114] As such, the special object O3 may still be affected by file system operations, such as operations considered in the snapshot or checkpoint mechanism of the file system management of the file system management part 510.

[0115] In order to access the special object O3, the file system management part 510 illustratively includes a block service protocol server part 512. Illustratively, the special object O3 is associated with the storage blocks B5 to B7 at the block level layer 33.

[0116] In order to create or modify or update a deduplication index based on a hash value obtained from the deduplication processing application 513 (for example, via inter-process communication IPC), the application 530 can write a deduplication index file or a deduplication index database to a special object O3 even when write access to the file system may be restricted or prohibited (for example, in the case of a read-only file system).

[0117] Exemplarily, the special object O3 may be provided as a block services protocol volume, ie as a volume or "BLOCK").

[0118] In other words, the operating system 500 may be enabled to mount the BLOCK as a volume or block device, thereby formatting the volume of the BLOCK as a virtual file system of the operating system 500 , ie, pretending to represent a local file system of the operating system 500 .

[0119] That is, the operating system 500 is enabled to mount the special object O3 as a virtual local OS file system, such as a deduplication index file or a deduplication index database for storing the application 530 .

[0120] The operating system 500 further illustratively includes a block service protocol client unit 505 that communicates with a block service protocol server unit 512 of the file system management unit 510 .

[0121] The operating system 500 also illustratively includes an OS block driver 504 that communicates with a block service protocol client part 505 of the operating system 500 and an OS file system driver 502 of the operating system 500 .

[0122] Therefore, the application 530 can access the virtual file system mounted from the special object O3 through the virtual file system 501, the OS file system driver 502, the OS block driver 504, the block service protocol client unit 505 and the block service protocol server unit 512 of the file system management unit 510, for example, to write / update the deduplication index file or the deduplication index database into the virtual file system provided by the special object O3.

[0123] In the above example, even when regular access to the file system managed by the file system management part 510 is restricted, or even when the file system is set to read-only (temporarily or permanently), the deduplication index application 530 can write to the special object O3 in an unrestricted manner.

[0124] It should be noted that in some exemplary embodiments, including Figure 5 and Figure 6 The size of the BLOCK (block volume) provided by the special object O3 can be changed dynamically, for example increased by exemplarily allocating more storage blocks of the block level layer 33 to the special object O3.

[0125] Specifically, metadata associating a special object O3 with its associated storage block at the block level layer 33 may be managed by the file system management section 510, similar to other objects of the file system managed by the file system management section 510, such as based on, for example Figure 4 The tree structure shown in .

[0126] In some preferred exemplary embodiments, the block service protocol server unit 512 knows the size of the special object O3 and the size of the storage block of the block level layer 33 so as to provide efficient access, for example, by accessing the special object O3 in a chunk whose chunk size is equal to the size of the storage block of the block level layer 33.

[0127] In some exemplary embodiments, including for Figure 5 and Figure 6 The file system management unit 510 may manage one or more special objects for block service protocol access through the block service protocol server unit 512, and the metadata of the object may indicate the type of the special object, for example, the type of the special object indicates that the special object is enabled for block access (for example, through the type BLOCK_ACCESS).

[0128] Furthermore, for ease of identification and more efficient file system management, each of the one or more special objects may be associated with a unique permanent object number, while regular file system objects may be dynamically assigned a currently unique object number.

[0129] In addition, the unique permanent object number of this special object can be permanently associated with an associated application (such as the above-mentioned applications 520 and 530 respectively), for example, through a unique object number, such as DEDUPE_INDEX_BLOCK_ACCESS of the above-mentioned application 530 and SEARCH_INDEX_BLOCK_ACCESS of the above-mentioned application 520.

[0130] Figure 7 A method for file system management according to some exemplary embodiments, in particular for providing block access to objects of an object-based file system, is exemplarily illustrated.

[0131] In step S701, a (new) special object in an object-based file system is created or, if previously created by a file system management unit, a special object in an object-based file system is provided. The file system management unit may run on top of a host operating system or communicate with a host running a host operating system.

[0132] In step S702, the file system management unit starts to serve the special object through the block service protocol.

[0133] In step S703, the file system management part may send a signal to the host operating system to enable block access to a special object that is a block device (eg, a volume).

[0134] In step S704, after receiving the signal, the host operating system connects and mounts the block device through the block service protocol.

[0135] Optionally, for example, if the special object has not been used before, the host operating system formats the block device in step S705 to provide an OS file system (eg, in the host's own format).

[0136] In step S706, the host operating system mounts the file system formatted on the block device into the virtual file system of the host operating system.

[0137] In step S707 , the host operating system provides information indicating the location of the block device file system to an external process application, such as the above-mentioned application 520 and / or 530 .

[0138] In step S708, the external process application may start accessing the block device file system formatted on the block device provided by the special object of the object-based file system through a block service network protocol (such as network block device, SCSI, Fibre Channel, iSCSI or Ethernet Fibre Channel).

[0139] In summary, in some exemplary embodiments, a new file system object with a known unique object number can be created and / or provided, and one or more external processes can be enabled to access the new special object through a network protocol designed for storage block access. In other words, access at the object level can bypass the access restriction state or even the read-only state of the file system.

[0140] The use of new special objects can ensure that data protected by the access-restricted state or even the read-only state of the file system is not affected by the newly enabled read / write access via block access.

[0141] In some exemplary embodiments, a host operating system driver and client may be provided to allow the host operating system to create and / or format a (local and / or virtual) file system into a virtual storage BLOCK that is served by a block services network protocol.

[0142] The host OS file system can then be mounted and made available to external processes or applications, such as a deduplication indexing application or a search indexing application.

[0143] ***

[0144] Those skilled in the art will understand that, as described above and in the accompanying drawings, the present invention may be embodied as a method (e.g., a computer-implemented process, a business process, or any other process), an apparatus (including a device, a machine, a system, a computer program product, and / or any other apparatus), or a combination of the foregoing.

[0145] Thus, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects (generally referred to herein as a "system"). In addition, embodiments of the present invention may take the form of a computer program product on a computer-readable medium having computer-executable program code embodied in the medium.

[0146] It should be noted that arrows may be used in the diagrams to represent communications, transmissions, or other activities involving two or more entities. Bidirectional arrows generally indicate that activity may occur in both directions (e.g., a command / request in one direction with a corresponding reply in the other direction, or peer-to-peer communication initiated by either entity), although in some cases the activity does not necessarily occur in both directions.

[0147] Unidirectional arrows generally indicate activity that is solely or primarily in one direction, but it should be noted that in some cases such directional activity may actually involve activity in both directions (e.g., a message from a sender to a receiver and a reply from a receiver to a sender, or establishing a connection before a transmission and terminating the connection after the transmission). Therefore, the types of arrows used to indicate particular activities in a particular figure are exemplary and should not be considered limiting.

[0148] Embodiments of the present invention are described above with reference to the flowcharts and / or block diagrams of the method and apparatus, and with reference to many example views of a graphical user interface generated by the method and / or apparatus. It will be understood that each block of the flowchart and / or block diagram, and / or the combination of blocks in the flowchart and / or block diagram, and the graphical user interface, can be implemented by computer executable program code.

[0149] Computer executable program code may be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus to produce a specific machine, so that the program code, which is executed via the processor of the computer or other programmable data processing apparatus, creates means for implementing the functions / actions / outputs specified in the flowchart, one or more blocks of the block diagram, the drawings, and / or the specification.

[0150] These computer executable program codes may also be stored in a computer-readable memory, which may direct a computer or other programmable data processing device to operate in a specific manner so that the program code stored in the computer-readable memory produces an article of manufacture including an instruction device that implements the functions / actions / outputs specified in the flowchart, one or more boxes of the block diagram, the drawings and / or the specification.

[0151] The computer executable program code may also be loaded onto a computer or other programmable data processing device to cause a series of operating steps to be performed on the computer or other programmable device to produce a computer-implemented process, so that the program code executed on the computer or other programmable device provides steps for implementing the functions / actions / outputs specified in the flowchart, one or more blocks of the block diagram, the drawings and / or the specification. Alternatively, the steps or actions implemented by the computer program may be combined with the steps or actions implemented by an operator or manually to perform embodiments of the present invention.

[0152] It should be noted that terms such as "server" and "processor" may be used herein to describe devices that may be used in certain embodiments of the present invention and should not be construed as limiting the present invention to any particular device type unless the context requires otherwise. Thus, a device may include, but is not limited to, a bridge, a router, a brouter, a switch, a node, a server, a computer, a device, or other types of devices. Such devices typically include one or more network interfaces for communicating over a communications network and a processor (e.g., a microprocessor with memory and other peripherals and / or specialized hardware) configured accordingly to perform the functions of the device.

[0153] The communication network may generally include public and / or private networks; may include local area networks, wide area networks, metropolitan area networks, storage networks and / or other types of networks; and may use communication technologies including but not limited to analog technology, digital technology, optical technology, wireless technology (such as Bluetooth), networking technology and network interconnection technology.

[0154] It should also be noted that devices may use communication protocols and messages (eg, messages created, sent, received, stored, and / or processed by the devices), and that such messages may be transmitted by a communication network or medium.

[0155] Unless the context requires otherwise, the present invention should not be construed as being limited to any particular communication message type, communication message format, or communication protocol. Therefore, communication messages may generally include, but are not limited to, frames, packets, datagrams, user datagrams, cells, or other types of communication messages.

[0156] Unless the context requires otherwise, references to particular communication protocols are exemplary, and it should be understood that alternative embodiments may employ variations of these communication protocols (e.g., the protocols may be modified or extended from time to time) or other known or future-developed protocols, as appropriate.

[0157] It should also be noted that the logic flow is described herein to demonstrate various aspects of the present invention, and should not be interpreted as limiting the present invention to any specific logic flow or logic implementation. The described logic can be divided into different logic blocks (e.g., programs, modules, functions, or subroutines) without changing the overall results or otherwise departing from the true scope of the present invention.

[0158] Often times, logic elements may be added, modified, omitted, executed in a different order, or implemented using different logic constructs (e.g., logic gates, looping primitives, conditional logic, and other logic constructs) without changing the overall results or otherwise departing from the true scope of the invention.

[0159] The present invention may be embodied in many different forms, including but not limited to computer program logic used with a processor (e.g., a microprocessor, a microcontroller, a digital signal processor, or a general purpose computer), programmable logic used with a programmable logic device (e.g., a field programmable gate array (FPGA) or other PLD), discrete components, integrated circuits (e.g., an application specific integrated circuit (ASIC)), or any other means including any combination of the foregoing. Computer program logic that implements some or all of the described functions is typically implemented as a set of computer program instructions that are converted into a computer executable format, stored as such in a computer readable medium, and executed by a microprocessor under the control of an operating system. One or more appropriately configured FPGAs may be used to implement hardware-based logic that implements some or all of the described functions.

[0160] The computer program logic implementing all or part of the functionality previously described herein may be embodied in a variety of forms, including but not limited to source code format, computer executable format, and various intermediate formats (e.g., formats generated by an assembler, compiler, linker, or locator).

[0161] Source code may include a series of computer program instructions implemented in any of a variety of programming languages ​​(e.g., object code, assembly language, or a high-level language such as Fortran, C, C++, JAVA, or HTML) for use with a variety of operating systems or operating environments. Source code may define and use a variety of data structures and communication messages. Source code may be in a computer executable format (e.g., by an interpreter), or source code may be converted (e.g., by a translator, assembler, or compiler) into a computer executable format.

[0162] Computer executable program code for performing operations of embodiments of the present invention may be written in an object-oriented, scripted or non-scripted programming language, such as Java, Perl, Smalltalk, C++, etc. However, computer program code for performing operations of embodiments of the present invention may also be written in a conventional procedural programming language, such as the "C" programming language or a similar programming language.

[0163] The computer program logic implementing all or part of the functionality previously described herein may be executed at different times on a single processor (e.g., concurrently) or may be executed at the same or different times on multiple processors and may run under a single operating system process / thread or under different operating system processes / threads.

[0164] Thus, the term "computer process" generally refers to the execution of a set of computer program instructions, regardless of whether different computer processes execute on the same or different processors, and regardless of whether different computer processes run under the same operating system process / thread or different operating system processes / threads.

[0165] A computer program may be fixed, permanently or temporarily, in any form (e.g., source code format, computer executable format, or intermediate format) in a tangible storage medium, such as a semiconductor storage device (e.g., RAM, ROM, PROM, EEPROM, or flash programmable RAM), a magnetic storage device (e.g., a floppy disk or a fixed disk), an optical storage device (e.g., a CD-ROM), a PC card (e.g., a PCMCIA card), or other memory device.

[0166] The computer program may be fixed in any form in a signal transmittable to a computer using any of a variety of communication technologies including but not limited to analog technology, digital technology, optical technology, wireless technology (e.g., Bluetooth), networking technology, and internetworking technology.

[0167] The computer program may be distributed in any form as a removable storage medium accompanied by printed or electronic documentation (e.g., shrink wrapped software), preinstalled on a computer system (e.g., on a system ROM or a fixed disk), or distributed from a server or electronic bulletin board via a communications system (e.g., the Internet or the World Wide Web).

[0168] Hardware logic that implements all or part of the functionality previously described herein (including programmable logic for use with programmable logic devices) can be designed using traditional manual methods, or can be electronically designed, captured, simulated, or recorded using various tools, such as computer-aided design (CAD), hardware description languages ​​(such as VHDL or AHDL), or PLD programming languages ​​(such as PALASM, ABEL, or CUPL).

[0169] Any suitable computer readable medium may be used. The computer readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or medium.

[0170] More specific examples of computer-readable media include, but are not limited to, an electrical connection having one or more wires or other tangible storage media, such as a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a compact disk read-only memory (CD-ROM), or other optical or magnetic storage devices.

[0171] Programmable logic may be permanently or temporarily fixed in a tangible storage medium, such as a semiconductor storage device (e.g., RAM, ROM, PROM, EEPROM, or flash programmable RAM), a magnetic storage device (e.g., a floppy disk or a fixed disk), an optical storage device (e.g., a CD-ROM), or other storage device.

[0172] Programmable logic can be fixed in a signal that can be transmitted to a computer using any of a variety of communication technologies, including but not limited to analog technology, digital technology, optical technology, wireless technology (e.g., Bluetooth), networking technology, and network interconnect technology.

[0173] Programmable logic may be distributed as a removable storage medium with printed or electronic documentation (e.g., shrink wrapped software), pre-installed on a computer system (e.g., on a system ROM or fixed disk), or distributed from a server or electronic bulletin board via a communications system (e.g., the Internet or the World Wide Web). Of course, some embodiments of the invention may be implemented as a combination of software (e.g., a computer program product) and hardware. Other embodiments of the invention are implemented entirely in hardware, or entirely in software.

[0174] Although certain exemplary embodiments have been described and shown in the accompanying drawings, it should be understood that these embodiments are merely illustrative and not restrictive of the broad invention, and that the embodiments of the invention are not limited to the specific constructions and arrangements shown and described, since various other variations, combinations, omissions, modifications and substitutions are possible in addition to those set forth in the above paragraphs.

[0175] Those skilled in the art will appreciate that various changes, modifications and / or combinations of the embodiments just described may be configured without departing from the scope and spirit of the invention. Therefore, it should be understood that, within the scope of the appended claims, the present invention may be practiced in a manner different from that specifically described herein. For example, unless otherwise expressly stated, the steps of the processes described herein may be performed in an order different from that described herein, and one or more steps may be combined, split, or performed simultaneously.

[0176] Those skilled in the art will also appreciate, in light of the present disclosure, that the various embodiments of the invention described herein may be combined to form further embodiments of the invention.

Claims

1. A device for managing an object-based file system, the device comprising: - a network interface configured to be communicatively connected to one or more client computers via a communications network; and a file system management unit, the file system management unit being implemented at least in part by a processor and being configured to manage the object-based file system comprising a plurality of file objects, each file object being associated with a respective file of the file system, The file system management unit is configured to service file access requests of a file service protocol received via the interface; The file system management unit is further configured to provide a block access object of the object-based file system, wherein the block access object can be mounted as a block storage device by a host operating system of a host computer. The file system management unit is configured to create the block access object at the object level of the object-based file system when determining that the object-based file system is set to a user access restricted state, wherein the block access object has no association with a file at the file level. The file system management unit is configured to provide the block access object of the object-based file system for an external application executed on the host operating system of the host computer to perform write access to the object-based file system in the user access restricted state. Each of the one or more block access objects is associated with a unique permanent object number, the file object is dynamically assigned a current unique object number, and the unique permanent object number of the block access object is permanently associated with the associated external application.

2. The device according to claim 1, wherein The file system management unit includes a block service protocol server unit configured to serve a block access request of a block service network protocol, the block access request being directed to the block storage device of the block access object of the object-based file system.

3. The device according to claim 1, wherein The file system management unit includes a file service application executed on the host operating system of a host computer.

4. The device according to claim 1, wherein The file system management section is configured to provide the block access object of the object-based file system to the host operating system of the host computer so as to format the block storage device provided by the block access object into a file system format of the host operating system.

5. The device according to claim 1, wherein The external application is a search index application configured to create and / or update a search index based on a file access request issued for a file associated with an object of the object-based file system, and The file system management section is configured to provide the block access object of the object-based file system for write access by the search index application to write into a search index file or a search index database stored in the block access object.

6. The device according to claim 1, wherein Each object of the object-based file system is associated with one or more corresponding storage blocks at the block level, and The file system management unit includes a deduplication processing unit, which is configured to perform deduplication processing at the block level, including calculating hash values ​​of each storage block at the block level, and deduplicating the storage blocks according to matching the hash values. in, The external application is a deduplication index application configured to create and / or update a deduplication index based on a hash value shared by the deduplication processing section through inter-process communication, and The file system management unit is configured to provide the block access object of the object-based file system for write access by the deduplication index application to write into a deduplication index file or a deduplication index database stored in the block access object.

7. The device according to claim 1, wherein The file system management section is configured to create the block access object upon determining that the object-based file system is set to a read-only state.

8. The device according to claim 1, wherein The file system management section is configured to create the block access object with associated object metadata.

9. The device according to claim 8, wherein The object metadata of the block access object indicates a block access type of the block access object; and / or The object metadata of the block access object indicates a unique object number reserved for objects of block access type.

10. A system for managing an object-based file system, comprising: - a host computer executing a host operating system, and - means for managing an object-based file system; The device comprises: - a network interface configured to be communicatively connected to one or more client computers via a communications network, and a file system management unit, the file system management unit being implemented at least in part by a processor and being configured to manage the object-based file system comprising a plurality of file objects, each file object being associated with a corresponding file of the file system; wherein the file system management unit of the device is configured to serve a file access request of a file service protocol received via the interface; and wherein the file system management unit of the apparatus is configured to provide a block access object of the object-based file system, the block access object being mountable as a block storage device by the host operating system of the host computer, The file system management unit is configured to create the block access object at the object level of the object-based file system when determining that the object-based file system is set to a user access restricted state, wherein the block access object has no association with a file at the file level. The file system management unit is configured to provide the block access object of the object-based file system for an external application executed on the host operating system of the host computer to perform write access to the object-based file system in the user access restricted state. Each of the one or more block access objects is associated with a unique permanent object number, the file object is dynamically assigned a current unique object number, and the unique permanent object number of the block access object is permanently associated with the associated external application.

11. A method for managing an object-based file system, the method comprising: - managing, at least in part by a processor, an object-based file system comprising a plurality of file objects, each file object being associated with a respective file of the file system, the file system management unit being configured to service file access requests of a file service protocol received from one or more client computers, and - providing a block access object of the object-based file system, the block access object being mountable as a block storage device by a host operating system of a host computer, and creating the block access object at an object level of the object-based file system when determining that the object-based file system is set to a user access restricted state, the block access object having no association with a file at a file level, The method includes providing the block access object of the object-based file system for an external application executing on the host operating system of the host computer to write access to the object-based file system in the user access restricted state, Each of the one or more block access objects is associated with a unique permanent object number, the file object is dynamically assigned a current unique object number, and the unique permanent object number of the block access object is permanently associated with the associated external application.

12. A computer-readable medium comprising computer-readable instructions which, when executed on a computer, cause the computer to perform the method according to claim 11.

Citation Information

Patent Citations

  • System and method for caching network file systems

    CN101228523B

  • Multi-protocol storage appliance that provides integrated support for file and block access protocols

    US20040030668A1

  • System and Method For a Dynamic Policies Enforced File System For a Data Storage Device

    US20080229428A1

  • Systems and methods to update a content store associated with a search index

    US20120078859A1

  • File System With Multi-Class In Situ Tiered Archiving

    US20170011048A1