summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ec3bc5)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
+enum {
+ FIO_WARN_ROOT_FLUSH = 1,
+};
+
#ifdef FIO_INC_DEBUG
struct debug_level {
const char *name;
#ifdef FIO_INC_DEBUG
struct debug_level {
const char *name;
#include <linux/falloc.h>
#endif
#include <linux/falloc.h>
#endif
static FLIST_HEAD(filename_list);
/*
static FLIST_HEAD(filename_list);
/*
ret = blockdev_invalidate_cache(f);
}
if (ret < 0 && errno == EACCES && geteuid()) {
ret = blockdev_invalidate_cache(f);
}
if (ret < 0 && errno == EACCES && geteuid()) {
+ if (!fio_did_warn(FIO_WARN_ROOT_FLUSH)) {
log_err("fio: only root may flush block "
"devices. Cache flush bypassed!\n");
log_err("fio: only root may flush block "
"devices. Cache flush bypassed!\n");