X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=memory.c;h=7f4cef529a52e55ecbf099c0e23738943ab2b492;hp=5285c0a5d416cf2eb40dd5f0698d90927ddf05fb;hb=44f29692cfba246981bb3c1b894333a6d2209f51;hpb=a1242a20ac186dccdf8a72e37b9c331e0b4f8a5e diff --git a/memory.c b/memory.c index 5285c0a5..7f4cef52 100644 --- a/memory.c +++ b/memory.c @@ -76,7 +76,7 @@ static int alloc_mem_shm(struct thread_data *td, unsigned int total_mem) dprint(FD_MEM, "shmget %u, %d\n", total_mem, td->shm_id); if (td->shm_id < 0) { td_verror(td, errno, "shmget"); - if (geteuid() != 0 && errno == ENOMEM) + if (geteuid() != 0 && (errno == ENOMEM || errno == EPERM)) log_err("fio: you may need to run this job as root\n"); if (td->o.mem_type == MEM_SHMHUGE) { if (errno == EINVAL) {