X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filesetup.c;h=228e4fffe3c5e7dd509a9ac642497093aca35f87;hb=5711325cbb37d10c21a6975d1f1ebea11799c05e;hp=e664f8b42f795f4d03675e437870382a0243b13b;hpb=e7e536b665bd6a9d3e936e0847dbbb6957101da4;p=fio.git diff --git a/filesetup.c b/filesetup.c index e664f8b4..228e4fff 100644 --- a/filesetup.c +++ b/filesetup.c @@ -226,11 +226,16 @@ static int extend_file(struct thread_data *td, struct fio_file *f) if (r < 0) { int __e = errno; - if (__e == ENOSPC) { + if (__e == ENOSPC || __e == EDQUOT) { + const char *__e_name; if (td->o.fill_device) break; - log_info("fio: ENOSPC on laying out " - "file, stopping\n"); + if (__e == ENOSPC) + __e_name = "ENOSPC"; + else + __e_name = "EDQUOT"; + log_info("fio: %s on laying out " + "file, stopping\n", __e_name); } td_verror(td, errno, "write"); } else @@ -1019,7 +1024,6 @@ int longest_existing_path(char *path) { while (!done) { buf_pos = strrchr(buf, FIO_OS_PATH_SEPARATOR); if (!buf_pos) { - done = true; offset = 0; break; }