From: Tomohiro Kusumi Date: Mon, 8 Aug 2016 17:27:30 +0000 (+0900) Subject: Use a pointer to const char* for I/O engine name (in response to aa2b823c) X-Git-Tag: fio-2.14~45 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=43072e8e8b1bf08aad7a138761a563f92ab99fb3 Use a pointer to const char* for I/O engine name (in response to aa2b823c) aa2b823c also needed to change ioengine_ops::name size to 64, or make it a pointer to a readonly string which seems to be better in this case as no one is to (or should be able to) modify it. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/ioengine.h b/ioengine.h index 0effadec..ceed3291 100644 --- a/ioengine.h +++ b/ioengine.h @@ -138,7 +138,7 @@ enum { struct ioengine_ops { struct flist_head list; - char name[16]; + const char *name; int version; int flags; int (*setup)(struct thread_data *);