On Tue, 2024-12-24 at 08:07 -0500, James Bottomley wrote: [...] > On the other hand the most intuitive thing would be to remove zero > length files on last close, not first, so if you have a thought on > how to do that easily, I'm all ears. I could do this by adding an open_count to the i_private data struct efivar_entry and reimplementing simple_open as an efivarfs specific open that increments this count and decrementing it in ->release(). That's still somewhat adding "more convoluted crap", though ... Regards, James