0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 21:48:55 +02:00

ircd:🆑 Relax runlevel requirement for memory operations.

This commit is contained in:
Jason Volk 2022-04-22 19:20:48 -07:00
parent 5f0250c9e1
commit 6033f18694

View file

@ -915,14 +915,14 @@ ircd::cl::exec::exec(data &data,
const opts &opts)
try
{
if(unlikely(run::level != run::level::RUN))
if(unlikely(run::level < run::level::RUN))
throw unavailable
{
"Unable to write to device in runlevel %s",
reflect(run::level),
};
assert(run::level == run::level::RUN);
assert(run::level >= run::level::RUN);
const auto max_size
{
opts.size == -1UL?