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

Enrich nydus-image print, fix prefetch table layout and other couple of fixes #767

Merged
merged 7 commits into from
Sep 30, 2022

Commits on Sep 30, 2022

  1. rafs/v6: add a method inodes_count for rafs v6

    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    6389191 View commit details
    Browse the repository at this point in the history
  2. rafs: use real inode number when get path from ino

    rafs v5 han v6 has different root inode numbers.
    
    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    8fd5dd6 View commit details
    Browse the repository at this point in the history
  3. nydus-image: only validate inode size when it's regular file

    Because root dir's size is zero before gathering prefetching files.
    
    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    d2ea783 View commit details
    Browse the repository at this point in the history
  4. nydus-image: fill readahead patterns with node index

    Rafs v6 can't decide each inode number when walking and
    building nodes tree. So record those prefetching files'
    index in nodes array in readahead patterns.
    
    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    69aa21c View commit details
    Browse the repository at this point in the history
  5. nydus-image/inspect: print more info about rafs layout

    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    5ee1928 View commit details
    Browse the repository at this point in the history
  6. nyuds-image: only set root ino for rafs v5

    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    6c78cd0 View commit details
    Browse the repository at this point in the history
  7. nydus-test: explicitly set prefetch_all in rafs config

    By default, prefeth_all is true in rafs config. We
    can't verify prefetch table contents then.
    
    Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
    changweige committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    ab35457 View commit details
    Browse the repository at this point in the history