Re: [PATCH 2/2] pstore: reject persistent RAM zones too small for the buffer header
From: Andrea Parri
Date: Mon Sep 21 2026 - 18:47:34 EST
(Dropped anton.vorontsov@xxxxxxxxxx and john.stultz@xxxxxxxxxx from Cc,
both bounced.)
> I wonder if it should return ENOSPC instead, though?
Fair point: nothing branches on the specific errno, but ENOSPC matches
the "doesn't fit" convention used elsewhere in ram.c, while EINVAL is
otherwise reserved for malformed config values. I'll send a one-line
patch on top of 1b30df8662ac switching it, unless you'd rather fold it
in yourself.
Thanks!
Andrea