Project

General

Profile

Actions

Bug #13965

open

loader: open file list should be dynamic

Added by Toomas Soome 7 days ago. Updated about 13 hours ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Open file list is currently created as statically allocated array (64 items). Once this array is filled up, loader will not be able to operate with files. In most cases, this mechanism is good enough, but the problem appears, when we have many disks with zfs pool(s). In current loader implementation, all discovered zfs pool configurations are kept in memory and disk devices open - consuming the open file array. Rewrite the open file mechanism to use dynamically allocated list.

Testing done: build/install/boot, loader is working as expected.
Tested also with userboot module + libumem, this test did point to use TAILQ_FOREACH_REVERSE_SAFE.

Actions #1

Updated by Toomas Soome about 13 hours ago

  • Description updated (diff)
Actions

Also available in: Atom PDF