summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2025-02-27 00:48:26 +0300
committerArd Biesheuvel <ardb@kernel.org>2025-02-27 13:27:49 +0300
commitfc20737d8b85691ecabab3739ed7d06c9b7bc00f (patch)
tree36af2a64c87f39a80e37b8a56cdb6984ea1f0aae /tools/perf/scripts/python/exported-sql-viewer.py
parentcb6ae457bc6af58c84a7854df5e7e32ba1c6a715 (diff)
downloadlinux-fc20737d8b85691ecabab3739ed7d06c9b7bc00f.tar.xz
efivarfs: allow creation of zero length files
Temporarily allow the creation of zero length files in efivarfs so the 'fwupd' user space firmware update tool can continue to operate. This hack should be reverted as soon as the fwupd mechanisms for updating firmware have been fixed. fwupd has been coded to open a firmware file, close it, remove the immutable bit and write to it. Since commit 908af31f4896 ("efivarfs: fix error on write to new variable leaving remnants") this behaviour results in the first close removing the file which causes the second write to fail. To allow fwupd to keep working code up an indicator of size 1 if a write fails and only remove the file on that condition (so create at zero size is allowed). Tested-by: Richard Hughes <richard@hughsie.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> [ardb: replace LVFS with fwupd, as suggested by Richard] Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions