From: Gurudas Pai Date: Fri, 30 May 2008 11:35:00 +0000 (+0200) Subject: Fix bad references to 'sgio' X-Git-Tag: fio-1.21-rc4~26 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d0c70934dde93a8ee260a84c1bf69ff24484d486 Fix bad references to 'sgio' The engine name is 'sg', so change bad references to sgio. Signed-off-by: Jens Axboe --- diff --git a/README b/README index 53cc7ebd..059fead2 100644 --- a/README +++ b/README @@ -171,8 +171,8 @@ The job file parameters are: psync for regular pread/pwrite io, vsync for regular readv/writev (with queuing emulation) mmap for mmap'ed io, syslet-rw for syslet driven read/write, splice for - using splice/vmsplice, sgio for direct SG_IO io, net - for network io, or cpuio for a cycler burner load. sgio + using splice/vmsplice, sg for direct SG_IO io, net + for network io, or cpuio for a cycler burner load. sg only works on Linux on SCSI (or SCSI-like devices, such as usb-storage or sata/libata driven) devices. Fio also has a null io engine, which is mainly used for testing diff --git a/engines/sg.c b/engines/sg.c index 72bbc4e8..cb44fa45 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -364,7 +364,7 @@ static int fio_sgio_type_check(struct thread_data *td, struct fio_file *f) if (ret) return 1; } else { - log_err("ioengine sgio only works on block devices\n"); + log_err("ioengine sg only works on block devices\n"); return 1; } @@ -418,12 +418,12 @@ static struct ioengine_ops ioengine = { */ static int fio_sgio_init(struct thread_data fio_unused *td) { - fprintf(stderr, "fio: sgio not available\n"); + fprintf(stderr, "fio: ioengine sg not available\n"); return 1; } static struct ioengine_ops ioengine = { - .name = "sgio", + .name = "sg", .version = FIO_IOOPS_VERSION, .init = fio_sgio_init, };