• Lingzhu Xiang's avatar
    efivarfs: Never return ENOENT from firmware again · 3fab70c1
    Lingzhu Xiang authored
    Previously in 1fa7e695 efi_status_to_err() translated firmware status
    EFI_NOT_FOUND to -EIO instead of -ENOENT for efivarfs operations to
    avoid confusion. After refactoring in e14ab23d, it is also used in other
    places where the translation may be unnecessary.
    
    So move the translation to efivarfs specific code. Also return EOF
    for reading zero-length files, which is what users would expect.
    
    Cc: Josh Boyer <jwboyer@redhat.com>
    Cc: Jeremy Kerr <jk@ozlabs.org>
    Cc: Lee, Chun-Yi <jlee@suse.com>
    Cc: Andy Whitcroft <apw@canonical.com>
    Signed-off-by: 's avatarLingzhu Xiang <lxiang@redhat.com>
    Signed-off-by: 's avatarMatt Fleming <matt.fleming@intel.com>
    3fab70c1
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
file.c Loading commit data...
inode.c Loading commit data...
internal.h Loading commit data...
super.c Loading commit data...