Skip to content

Commit c28411b

Browse files
authored
Skip staging package when searching manager (#2511)
1 parent 97b2411 commit c28411b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/throne_tracker.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
148148
if (!strncmp(name, "..", namelen) || !strncmp(name, ".", namelen))
149149
return FILLDIR_ACTOR_CONTINUE; // Skip "." and ".."
150150

151+
if (d_type == DT_DIR && namelen >= 8 && !strncmp(name, "vmdl", 4) &&
152+
!strncmp(name + namelen - 4, ".tmp", 4)) {
153+
pr_info("Skipping directory: %.*s\n", namelen, name);
154+
return FILLDIR_ACTOR_CONTINUE; // Skip staging package
155+
}
156+
151157
if (snprintf(dirpath, DATA_PATH_LEN, "%s/%.*s", my_ctx->parent_dir,
152158
namelen, name) >= DATA_PATH_LEN) {
153159
pr_err("Path too long: %s/%.*s\n", my_ctx->parent_dir, namelen,

0 commit comments

Comments
 (0)