projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/libzbc: enable block backend
[fio.git]
/
diskutil.c
diff --git
a/diskutil.c
b/diskutil.c
index 6c6380bbc774e7b4dca76f6882dac9008008538b..0051a7a035875b3a51493ac527125b413ad1bb7d 100644
(file)
--- a/
diskutil.c
+++ b/
diskutil.c
@@
-181,7
+181,7
@@
static int get_device_numbers(char *file_name, int *maj, int *min)
/*
* must be a file, open "." in that path
*/
/*
* must be a file, open "." in that path
*/
- snprintf(tempname, ARRAY_SIZE(tempname), "%s", file_name);
+ snprintf(tempname,
FIO_
ARRAY_SIZE(tempname), "%s", file_name);
p = dirname(tempname);
if (stat(p, &st)) {
perror("disk util stat");
p = dirname(tempname);
if (stat(p, &st)) {
perror("disk util stat");
@@
-313,7
+313,7
@@
static struct disk_util *disk_util_add(struct thread_data *td, int majdev,
sfree(du);
return NULL;
}
sfree(du);
return NULL;
}
- snprintf((char *) du->dus.name, ARRAY_SIZE(du->dus.name), "%s",
+ snprintf((char *) du->dus.name,
FIO_
ARRAY_SIZE(du->dus.name), "%s",
basename(path));
du->sysfs_root = strdup(path);
du->major = majdev;
basename(path));
du->sysfs_root = strdup(path);
du->major = majdev;
@@
-435,7
+435,7
@@
static struct disk_util *__init_per_file_disk_util(struct thread_data *td,
log_err("unknown sysfs layout\n");
return NULL;
}
log_err("unknown sysfs layout\n");
return NULL;
}
- snprintf(tmp, ARRAY_SIZE(tmp), "%s", p);
+ snprintf(tmp,
FIO_
ARRAY_SIZE(tmp), "%s", p);
sprintf(path, "%s", tmp);
}
sprintf(path, "%s", tmp);
}