Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reorganize code and add an unit test #354

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Commits on Nov 19, 2024

  1. [EROFS]: refactor: reorganize code

    Reorganize the code to make the structure clearer. Specifically:
    
    - erofs_common.*: contains some common content used internally
      by EROFS, such as I/O controllers and constants;
    
    - liberofs.*: contains the content for creating EROFS filesystem
      images;
    
    - erofs_fs.*: contains the content for building the EROFS filesystem
      from EROFS filesystem images and performing operations on the filesystem.
    
    Additional changes:
    - rename `min` to `erofs_min` to avoid conflicts with `std::min`;
    - declare erofs_check_fs() and erofs_create_fs() as extern in comm_func.cpp,
      as including erofs_fs.h at this point leads to conflicts. Subsequent patches
      will clean up erofs_fs.h to allow it to be included by third parties (hide content
      related to liberofs to avoid conflicts).
    
    No other changes were made.
    
    Signed-off-by: Hongzhen Luo <[email protected]>
    salvete committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    355b288 View commit details
    Browse the repository at this point in the history
  2. [EROFS]: clean up erofs_fs

    Hide the parts related to liberofs in erofs_fs.h
    so that erofs_fs.h can be included.
    
    Signed-off-by: Hongzhen Luo <[email protected]>
    salvete committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    104f779 View commit details
    Browse the repository at this point in the history
  3. [EROFS]: test: add test for ErofsCache

    Add an unit test for the internal ErofsCache.
    
    Signed-off-by: Hongzhen Luo <[email protected]>
    salvete committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    b73ed2c View commit details
    Browse the repository at this point in the history