-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add capability of prefetch for rafs v6 format #319
Commits on Mar 10, 2022
-
nydus-image: persist v6 prefetch table to extended super block
Place a prefetch table which has nids for files and directories that needs to be prefetched. The prefetch table is very close to blobs table on v6 rafs extended super block. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for 6517f36 - Browse repository at this point
Copy the full SHA 6517f36View commit details -
rafs/v6: implement is_hardlink() for v6 format
Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for f5ad040 - Browse repository at this point
Copy the full SHA f5ad040View commit details -
rafs/v6: perform prefetch based on v6 super block
Load v6 prefetch table from extended super block and prefetch files' contents per as the table. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for ef416f3 - Browse repository at this point
Copy the full SHA ef416f3View commit details -
nydus-image: rename seek_to_offset to seek_offset
Because seek is transitive. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for e7b443e - Browse repository at this point
Copy the full SHA e7b443eView commit details -
rafs/v6: implement collect_descendants_inodes() for rafs v6
Rafs prefetch needs the functionality. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for 63f4bfc - Browse repository at this point
Copy the full SHA 63f4bfcView commit details -
rafs/storage: map to blob addressable chunk infos
V6 format does not have chunks' particualer addresses in bootstrap but only their indexes by which to locate each chunk from blob. For prefetch, we aslo have to map the chunks info so that bios can be sorted when handling prefetch requests. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for 1cad5da - Browse repository at this point
Copy the full SHA 1cad5daView commit details -
rafs: use real root ino when perform dynamic prefetch
Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for 11115bf - Browse repository at this point
Copy the full SHA 11115bfView commit details -
nydus-image: only write extended sb once
Right now, when prefetch enabled and xattrs packed, extended sb will be revised and rewritten more than onece. It is not necessary. Only write extended block when all the settings are done. Signed-off-by: Changwei Ge <chge@linux.alibaba.com>
Configuration menu - View commit details
-
Copy full SHA for 8bd4600 - Browse repository at this point
Copy the full SHA 8bd4600View commit details