diff options
author | 2023-09-10 06:54:45 +0200 | |
---|---|---|
committer | 2023-09-11 09:10:02 +0000 | |
commit | 79b83606abc778aa3cbee535b362ce905d0b9448 (patch) | |
tree | 870e98c342a29df53d8a0e99e9e5f9e281edfdfc /scripts/generate_rust_analyzer.py | |
parent | efi/unaccepted: Use ACPI reclaim memory for unaccepted memory table (diff) | |
download | linux-rng-79b83606abc778aa3cbee535b362ce905d0b9448.tar.xz linux-rng-79b83606abc778aa3cbee535b362ce905d0b9448.zip |
efivarfs: fix statfs() on efivarfs
Some firmware (notably U-Boot) provides GetVariable() and
GetNextVariableName() but not QueryVariableInfo().
With commit d86ff3333cb1 ("efivarfs: expose used and total size") the
statfs syscall was broken for such firmware.
If QueryVariableInfo() does not exist or returns EFI_UNSUPPORTED, just
report the file system size as 0 as statfs_simple() previously did.
Fixes: d86ff3333cb1 ("efivarfs: expose used and total size")
Link: https://lore.kernel.org/all/20230910045445.41632-1-heinrich.schuchardt@canonical.com/
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
[ardb: log warning on QueryVariableInfo() failure]
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions