Skip to content

Snapshot Loader 2.0 #4885

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Snapshot Loader 2.0 #4885

wants to merge 1 commit into from

Conversation

ripatel-fd
Copy link
Contributor

No description provided.

@ripatel-fd ripatel-fd force-pushed the ripatel/snapshot-tiles branch from fd600ba to 10a9577 Compare April 25, 2025 21:22
fd_filerd_tile_t * ctx = fd_topo_obj_laddr( topo, tile->tile_obj_id );
fd_memset( ctx, 0, sizeof(fd_filerd_tile_t) );

if( FD_UNLIKELY( tile->in_cnt !=0UL ) ) FD_LOG_ERR(( "tile `" NAME "` has %lu ins, expected 0", tile->in_cnt ));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These belong in unprivileged_init. privileged_init is only for the minimally scoped, auditable set of stuff that must happen unsandboxed

if( FD_UNLIKELY( tile->out_cnt!=1UL ) ) FD_LOG_ERR(( "tile `" NAME "` has %lu outs, expected 1", tile->out_cnt ));

ctx->fd = open( tile->filerd.file_path, O_RDONLY|O_CLOEXEC );
if( FD_UNLIKELY( ctx->fd<0 ) ) FD_LOG_ERR(( "open() failed (%i-%s)", errno, fd_io_strerror( errno ) ));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to be a very frequently hit operator facing error. Please add a long error message describing the problem when errno is ENOENT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants