--- zzzz-none-000/linux-5.4.213/fs/pstore/platform.c 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/fs/pstore/platform.c 2024-05-29 11:20:02.000000000 +0000 @@ -713,6 +713,13 @@ record->compressed = false; } +ssize_t pstore_copy(enum pstore_type_id type, u64 id, void **buf) +{ + if (!psinfo->copy) + return -EOPNOTSUPP; + return psinfo->copy(type, id, buf, psinfo); +} + /* * Read all the records from one persistent store backend. Create * files in our filesystem. Don't warn about -EEXIST errors