Jeremy Kerr 0c542edde3 efi: Handle deletions and size changes in efivarfs_write_file
A write to an efivarfs file will not always result in a variable of
'count' size after the EFI SetVariable() call. We may have appended to
the existing data (ie, with the EFI_VARIABLE_APPEND_WRITE attribute), or
even have deleted the variable (with an authenticated variable update,
with a zero datasize).

This change re-reads the updated variable from firmware, to check for
size changes and deletions. In the latter case, we need to drop the
dentry.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-30 10:39:17 +00:00
..
2012-10-02 17:26:42 -07:00
2012-10-07 20:55:16 +09:00
2012-10-12 10:21:02 +09:00
2012-10-11 00:45:21 -07:00
2012-09-26 22:28:21 -04:00
2012-09-22 10:29:19 +01:00
2012-10-08 06:33:44 +09:00
2012-09-24 10:07:40 -07:00
2012-10-13 13:22:01 -07:00
2012-10-07 17:29:24 +09:00
2012-10-10 20:15:24 +09:00
2012-10-12 13:56:52 -04:00
2012-10-03 09:44:08 -07:00
2012-10-09 16:11:46 +09:00
2012-10-01 19:11:38 -07:00
2012-10-10 20:15:24 +09:00
2012-10-13 10:57:01 +09:00
2012-10-01 19:11:38 -07:00
2012-10-13 11:16:58 +09:00
2012-10-12 10:21:02 +09:00
2012-10-01 12:09:59 -07:00
2012-10-12 22:20:28 +09:00
2012-10-01 18:46:13 -07:00