0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01: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) const opts &opts)
try try
{ {
if(unlikely(run::level != run::level::RUN)) if(unlikely(run::level < run::level::RUN))
throw unavailable throw unavailable
{ {
"Unable to write to device in runlevel %s", "Unable to write to device in runlevel %s",
reflect(run::level), reflect(run::level),
}; };
assert(run::level == run::level::RUN); assert(run::level >= run::level::RUN);
const auto max_size const auto max_size
{ {
opts.size == -1UL? opts.size == -1UL?