mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Meta: Allow overriding the calculated disk image inode count
This commit is contained in:
parent
e887989c23
commit
f7ac121ac4
Notes:
sideshowbarker
2024-07-16 21:20:49 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/f7ac121ac4 Pull-request: https://github.com/SerenityOS/serenity/pull/18392
1 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,13 @@ else
|
|||
DISK_SIZE_BYTES="$SERENITY_DISK_SIZE_BYTES"
|
||||
fi
|
||||
|
||||
if [ -n "$SERENITY_INODE_COUNT" ]; then
|
||||
if [ "$INODE_COUNT" -gt "$SERENITY_INODE_COUNT" ]; then
|
||||
die "SERENITY_INODE_COUNT is set to $SERENITY_INODE_COUNT but required inode count is roughly $INODE_COUNT"
|
||||
fi
|
||||
INODE_COUNT="$SERENITY_INODE_COUNT"
|
||||
fi
|
||||
|
||||
nearest_power_of_2() {
|
||||
local n=$1
|
||||
local p=1
|
||||
|
|
Loading…
Reference in a new issue