All of lore.kernel.org
 help / color / mirror / Atom feed
* Why not abort when posix_fallocate() failed?
@ 2013-08-12  7:23 xan.peng
  2013-08-13 14:43 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: xan.peng @ 2013-08-12  7:23 UTC (permalink / raw)
  To: fio

Hi all,

I'm recently reading fio source code and running it for test purpose.
A case bothered me which is fio keep going after posix_fallocate()
failed, I'm wondering why, shouldn't it abort immediately?

Information may be useful followed:

==part of the output==
fio: set debug option file
libaio.dat: (g=0): rw=randrw, bs=8K-8K/8K-8K/8K-8K, ioengine=libaio, iodepth=16
libaio.dat: Laying out IO file(s) (1 file(s) / 2048MB)
fio: posix_fallocate fails: No space left on device
fio: ENOSPC on laying out file, stopping
fio: io_u error on file /mnt/nfs/libaio.dat.1.0: No space left on device
     write offset=1398325248, buflen=8192
fio: io_u error on file /mnt/nfs/libaio.dat.1.0: No space left on device
     write offset=1994014720, buflen=8192
fio: pid=7152, err=28/file:io_u.c:1377, func=io_u error, error=No
space left on device

==reproduce==
dd if=/dev/zero of=/tmp/1gdisk bs=1M count=1024
losetup /dev/loop0 /tmp/1gdisk
mkfs.ext4 /dev/loop0
mount /dev/loop0 /mnt/loopfs
cat aio-bench # simplified here
// [global] ioengine=libaio,direct=1,rw=randrw,bs=8k,directory=/mnt/loopfs,time_based,runtime=10
// [libaio.dat] size=2g,iodepth=16
fio aio-bench

-- 
- Thanks.
- xan.peng

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-19  1:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12  7:23 Why not abort when posix_fallocate() failed? xan.peng
2013-08-13 14:43 ` Jens Axboe
2013-08-14  1:48   ` xan.peng
2013-08-16  5:38     ` FIO-2.1.2 Windows Binaries Availability Ritchie Babaylan
2013-08-16  5:44     ` Encountered Mix Access R/W Problem Ritchie Babaylan
2013-08-19  1:24       ` xan.peng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.