主权项 |
1. A method for use in managing files of file systems, the method comprising:
creating a bulk transaction record for an indirect data block of a file of a file system, wherein the indirect data block of the file includes a set of data blocks of the file, wherein the bulk transaction record indicates updates to the indirect data block; adding a set of transaction entries to the bulk transaction record, wherein each transaction entry of the set of transaction entries includes metadata transaction information regarding an operation performed on a data block of the set of data blocks; and storing the bulk transaction record in a journal as a single metadata transaction instead of storing separate metadata transactions in the journal for each transaction entry included in the bulk transaction record, wherein the journal includes a persistent log, wherein the journal includes a set of bulk transaction records, each bulk transaction record of the set of bulk transaction records indicating changes to metadata of a plurality of files of a plurality of file systems, wherein the journal is used for recovering the file system by using the changes to the metadata stored in the journal for updating metadata of the plurality of file system organized on a persistent storage. |