diff options
author | Robert Tiemann <rtie@gmx.de> | 2025-10-02 11:59:24 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-06 23:15:59 +0100 |
commit | a153f32b1f2518c666e3371d679e3880725e6186 (patch) | |
tree | 9c4a17792023aafe5e9b2312e1f490dc2a5edb19 /meta/lib/oeqa/sdk/files/rust/hello/src | |
parent | d5c890186e07a01e192fac4e016af23549204175 (diff) | |
download | poky-a153f32b1f2518c666e3371d679e3880725e6186.tar.gz |
udev-extraconf: Speed up mount.sh
On devices with many partitions, running blkid without parameters can
be rather slow because all block devices are inspected:
$ time /sbin/blkid
real 0m0.474s
user 0m0.026s
sys 0m0.172s
versus
$ time /sbin/blkid /dev/mmcblk0p10
real 0m0.027s
user 0m0.002s
sys 0m0.018s
Plugging in a device with 5 partitions means that mount.sh is going to
be executed 5 times, and so will be blkid. In the real-world case
outlined above, this adds up to an overhead of about 2.3 seconds for
blkid alone.
This commit changes mount.sh so that the block device of interest is
passed directly to blkid such that blkid inspects only that device,
leading to significant speedup.
(From OE-Core rev: 5e90348ce2fa400c77641062aa0b1efb52c9f955)
Signed-off-by: Robert Tiemann <rtie@gmx.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/files/rust/hello/src')
0 files changed, 0 insertions, 0 deletions