Skip to content

Commit

Permalink
Spelling and grammar fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Skyttä <[email protected]>
  • Loading branch information
scop committed Feb 20, 2022
1 parent 933651e commit fc002f1
Show file tree
Hide file tree
Showing 41 changed files with 55 additions and 55 deletions.
4 changes: 2 additions & 2 deletions HOWTO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ I/O type
range of possible random values.
Defaults are: random for **pareto** and **zipf**, and 0.5 for **normal**.
If you wanted to use **zipf** with a `theta` of 1.2 centered on 1/4 of allowed value range,
you would use ``random_distibution=zipf:1.2:0.25``.
you would use ``random_distribution=zipf:1.2:0.25``.

For a **zoned** distribution, fio supports specifying percentages of I/O
access that should fall within what range of the file or device. For
Expand Down Expand Up @@ -3370,7 +3370,7 @@ Verification
To avoid false verification errors, do not use the norandommap option when
verifying data with async I/O engines and I/O depths > 1. Or use the
norandommap and the lfsr random generator together to avoid writing to the
same offset with muliple outstanding I/Os.
same offset with multiple outstanding I/Os.

.. option:: verify_offset=int

Expand Down
4 changes: 2 additions & 2 deletions crc/xxhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ You can contact the author at :
//#define XXH_ACCEPT_NULL_INPUT_POINTER 1

// XXH_FORCE_NATIVE_FORMAT :
// By default, xxHash library provides endian-independant Hash values, based on little-endian convention.
// By default, xxHash library provides endian-independent Hash values, based on little-endian convention.
// Results are therefore identical for little-endian and big-endian CPU.
// This comes at a performance cost for big-endian CPU, since some swapping is required to emulate little-endian format.
// Should endian-independance be of no importance for your application, you may set the #define below to 1.
// Should endian-independence be of no importance for your application, you may set the #define below to 1.
// It will improve speed for Big-endian CPU.
// This option has no impact on Little_Endian CPU.
#define XXH_FORCE_NATIVE_FORMAT 0
Expand Down
4 changes: 2 additions & 2 deletions engines/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ char *str_replace(char *orig, const char *rep, const char *with)
/*
* Replace a substring by another.
*
* Returns the new string if occurences were found
* Returns orig if no occurence is found
* Returns the new string if occurrences were found
* Returns orig if no occurrence is found
*/
char *result, *insert, *tmp;
int len_rep, len_with, len_front, count;
Expand Down
4 changes: 2 additions & 2 deletions engines/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static void _add_aws_auth_header(CURL *curl, struct curl_slist *slist, struct ht

signature = _conv_hex(md, SHA256_DIGEST_LENGTH);

/* Surpress automatic Accept: header */
/* Suppress automatic Accept: header */
slist = curl_slist_append(slist, "Accept:");

snprintf(s, sizeof(s), "x-amz-content-sha256: %s", dsha);
Expand Down Expand Up @@ -419,7 +419,7 @@ static void _add_swift_header(CURL *curl, struct curl_slist *slist, struct http_
if (op == DDIR_WRITE) {
dsha = _gen_hex_md5(buf, len);
}
/* Surpress automatic Accept: header */
/* Suppress automatic Accept: header */
slist = curl_slist_append(slist, "Accept:");

snprintf(s, sizeof(s), "etag: %s", dsha);
Expand Down
2 changes: 1 addition & 1 deletion engines/ime.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct ime_data {
};
struct iovec *iovecs; /* array of queued iovecs */
struct io_u **io_us; /* array of queued io_u pointers */
struct io_u **event_io_us; /* array of the events retieved afer get_events*/
struct io_u **event_io_us; /* array of the events retrieved after get_events*/
unsigned int queued; /* iovecs/io_us in the queue */
unsigned int events; /* number of committed iovecs/io_us */

Expand Down
2 changes: 1 addition & 1 deletion engines/libhdfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct hdfsio_data {
};

struct hdfsio_options {
void *pad; /* needed because offset can't be 0 for a option defined used offsetof */
void *pad; /* needed because offset can't be 0 for an option defined used offsetof */
char *host;
char *directory;
unsigned int port;
Expand Down
2 changes: 1 addition & 1 deletion engines/librpma_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int librpma_fio_client_post_init(struct thread_data *td)

/*
* td->orig_buffer is not aligned. The engine requires aligned io_us
* so FIO alignes up the address using the formula below.
* so FIO aligns up the address using the formula below.
*/
ccd->orig_buffer_aligned = PTR_ALIGN(td->orig_buffer, page_mask) +
td->o.mem_align;
Expand Down
2 changes: 1 addition & 1 deletion engines/librpma_gpspm.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static int server_post_init(struct thread_data *td)

/*
* td->orig_buffer is not aligned. The engine requires aligned io_us
* so FIO alignes up the address using the formula below.
* so FIO aligns up the address using the formula below.
*/
sd->orig_buffer_aligned = PTR_ALIGN(td->orig_buffer, page_mask) +
td->o.mem_align;
Expand Down
2 changes: 1 addition & 1 deletion engines/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static struct fio_option options[] = {
},
};

/* Alocates nbd_data. */
/* Allocates nbd_data. */
static int nbd_setup(struct thread_data *td)
{
struct nbd_data *nbd_data;
Expand Down
2 changes: 1 addition & 1 deletion engines/rados.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int _fio_rados_connect(struct thread_data *td)
char *client_name = NULL;

/*
* If we specify cluser name, the rados_create2
* If we specify cluster name, the rados_create2
* will not assume 'client.'. name is considered
* as a full type.id namestr
*/
Expand Down
4 changes: 2 additions & 2 deletions engines/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int _fio_rbd_connect(struct thread_data *td)
char *client_name = NULL;

/*
* If we specify cluser name, the rados_create2
* If we specify cluster name, the rados_create2
* will not assume 'client.'. name is considered
* as a full type.id namestr
*/
Expand Down Expand Up @@ -633,7 +633,7 @@ static int fio_rbd_setup(struct thread_data *td)

/* taken from "net" engine. Pretend we deal with files,
* even if we do not have any ideas about files.
* The size of the RBD is set instead of a artificial file.
* The size of the RBD is set instead of an artificial file.
*/
if (!td->files_index) {
add_file(td, td->o.filename ? : "rbd", 0, 0);
Expand Down
2 changes: 1 addition & 1 deletion engines/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ static int check_set_rlimits(struct thread_data *td)

static int compat_options(struct thread_data *td)
{
// The original RDMA engine had an ugly / seperator
// The original RDMA engine had an ugly / separator
// on the filename for it's options. This function
// retains backwards compatibility with it. Note we do not
// support setting the bindname option is this legacy mode.
Expand Down
4 changes: 2 additions & 2 deletions examples/enospc-pressure.fio
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ bs=4k
rw=randtrim
filename=raicer

# Verifier thread continiously write to newly allcated blocks
# and veryfy written content
# Verifier thread continuously writes to newly allcated blocks
# and verifies written content
[aio-dio-verifier]
create_on_open=1
verify=crc32c-intel
Expand Down
2 changes: 1 addition & 1 deletion examples/falloc.fio
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rw=randtrim
numjobs=2
filename=fragmented_file

## Mesure IO performance on fragmented file
## Measure IO performance on fragmented file
[sequential aio-dio write]
stonewall
ioengine=libaio
Expand Down
2 changes: 1 addition & 1 deletion examples/librpma_apm-server.fio
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ thread
# (https://pmem.io/rpma/documentation/basic-direct-write-to-pmem.html)
direct_write_to_pmem=0

numjobs=1 # number of expected incomming connections
numjobs=1 # number of expected incoming connections
size=100MiB # size of workspace for a single connection
filename=malloc # device dax or an existing fsdax file or "malloc" for allocation from DRAM
# filename=/dev/dax1.0
2 changes: 1 addition & 1 deletion examples/librpma_gpspm-server.fio
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ thread
direct_write_to_pmem=0
# set to 0 (false) to wait for completion instead of busy-wait polling completion.
busy_wait_polling=1
numjobs=1 # number of expected incomming connections
numjobs=1 # number of expected incoming connections
iodepth=2 # number of parallel GPSPM requests
size=100MiB # size of workspace for a single connection
filename=malloc # device dax or an existing fsdax file or "malloc" for allocation from DRAM
Expand Down
2 changes: 1 addition & 1 deletion examples/rand-zones.fio
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ random_distribution=zoned:50/5:30/15:20/
# The above applies to all of reads/writes/trims. If we wanted to do
# something differently for writes, let's say 50% for the first 10%
# and 50% for the remaining 90%, we could do it by adding a new section
# after a a comma.
# after a comma.

# random_distribution=zoned:50/5:30/15:20/,50/10:50/90
2 changes: 1 addition & 1 deletion filesetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ static bool init_rand_distribution(struct thread_data *td)

/*
* Check if the number of blocks exceeds the randomness capability of
* the selected generator. Tausworthe is 32-bit, the others are fullly
* the selected generator. Tausworthe is 32-bit, the others are fully
* 64-bit capable.
*/
static int check_rand_gen_limits(struct thread_data *td, struct fio_file *f,
Expand Down
4 changes: 2 additions & 2 deletions fio.1
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ more control over most probable outcome. This value is in range [0-1] which maps
range of possible random values.
Defaults are: random for \fBpareto\fR and \fBzipf\fR, and 0.5 for \fBnormal\fR.
If you wanted to use \fBzipf\fR with a `theta` of 1.2 centered on 1/4 of allowed value range,
you would use `random_distibution=zipf:1.2:0.25`.
you would use `random_distribution=zipf:1.2:0.25`.
.P
For a \fBzoned\fR distribution, fio supports specifying percentages of I/O
access that should fall within what range of the file or device. For
Expand Down Expand Up @@ -3082,7 +3082,7 @@ the verify will be of the newly written data.
To avoid false verification errors, do not use the norandommap option when
verifying data with async I/O engines and I/O depths > 1. Or use the
norandommap and the lfsr random generator together to avoid writing to the
same offset with muliple outstanding I/Os.
same offset with multiple outstanding I/Os.
.RE
.TP
.BI verify_offset \fR=\fPint
Expand Down
2 changes: 1 addition & 1 deletion graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ const char *graph_find_tooltip(struct graph *g, int ix, int iy)
ydiff = fabs(yval - y);

/*
* zero delta, or within or match critera, break
* zero delta, or within or match criteria, break
*/
if (ydiff < best_delta) {
best_delta = ydiff;
Expand Down
6 changes: 3 additions & 3 deletions lib/pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static const char *parse_number(const char *beg, char *out,
* This function tries to find formats, e.g.:
* %o - offset of the block
*
* In case of successfull parsing it fills the format param
* In case of successful parsing it fills the format param
* with proper offset and the size of the expected value, which
* should be pasted into buffer using the format 'func' callback.
*
Expand Down Expand Up @@ -267,15 +267,15 @@ static const char *parse_format(const char *in, char *out, unsigned int parsed,
* @fmt_desc - array of pattern format descriptors [input]
* @fmt - array of pattern formats [output]
* @fmt_sz - pointer where the size of pattern formats array stored [input],
* after successfull parsing this pointer will contain the number
* after successful parsing this pointer will contain the number
* of parsed formats if any [output].
*
* strings:
* bytes sequence in double quotes, e.g. "123".
* NOTE: there is no way to escape quote, so "123\"abc" does not work.
*
* numbers:
* hexidecimal - sequence of hex bytes starting from 0x or 0X prefix,
* hexadecimal - sequence of hex bytes starting from 0x or 0X prefix,
* e.g. 0xff12ceff1100ff
* decimal - decimal number in range [INT_MIN, INT_MAX]
*
Expand Down
4 changes: 2 additions & 2 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ int get_max_str_idx(char *input)
}

/*
* Returns the directory at the index, indexes > entires will be
* Returns the directory at the index, indexes > entries will be
* assigned via modulo division of the index
*/
int set_name_idx(char *target, size_t tlen, char *input, int index,
Expand Down Expand Up @@ -1560,7 +1560,7 @@ static int str_gtod_reduce_cb(void *data, int *il)
int val = *il;

/*
* Only modfiy options if gtod_reduce==1
* Only modify options if gtod_reduce==1
* Otherwise leave settings alone.
*/
if (val) {
Expand Down
2 changes: 1 addition & 1 deletion os/os-android.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

#ifndef CONFIG_NO_SHM
/*
* Bionic doesn't support SysV shared memeory, so implement it using ashmem
* Bionic doesn't support SysV shared memory, so implement it using ashmem
*/
#include <stdio.h>
#include <linux/ashmem.h>
Expand Down
2 changes: 1 addition & 1 deletion os/os-netbsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <sys/endian.h>
#include <sys/sysctl.h>

/* XXX hack to avoid confilcts between rbtree.h and <sys/rbtree.h> */
/* XXX hack to avoid conflicts between rbtree.h and <sys/rbtree.h> */
#undef rb_node
#undef rb_left
#undef rb_right
Expand Down
2 changes: 1 addition & 1 deletion os/windows/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ HANDLE windows_handle_connection(HANDLE hjob, int sk)
ret = pi.hProcess;

/* duplicate socket and write the protocol_info to pipe so child can
* duplicate the communciation socket */
* duplicate the communication socket */
if (WSADuplicateSocket(sk, GetProcessId(pi.hProcess), &protocol_info)) {
log_err("WSADuplicateSocket failed (%lu).\n", GetLastError());
ret = INVALID_HANDLE_VALUE;
Expand Down
6 changes: 3 additions & 3 deletions oslib/libmtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ int mtd_mark_bad(const struct mtd_dev_info *mtd, int fd, int eb);
* @mtd: MTD device description object
* @fd: MTD device node file descriptor
* @eb: eraseblock to read from
* @offs: offset withing the eraseblock to read from
* @offs: offset within the eraseblock to read from
* @buf: buffer to read data to
* @len: how many bytes to read
*
Expand All @@ -273,7 +273,7 @@ int mtd_read(const struct mtd_dev_info *mtd, int fd, int eb, int offs,
* @mtd: MTD device description object
* @fd: MTD device node file descriptor
* @eb: eraseblock to write to
* @offs: offset withing the eraseblock to write to
* @offs: offset within the eraseblock to write to
* @data: data buffer to write
* @len: how many data bytes to write
* @oob: OOB buffer to write
Expand Down Expand Up @@ -329,7 +329,7 @@ int mtd_write_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd,
* @mtd: MTD device description object
* @fd: MTD device node file descriptor
* @eb: eraseblock to write to
* @offs: offset withing the eraseblock to write to
* @offs: offset within the eraseblock to write to
* @img_name: the file to write
*
* This function writes an image @img_name the MTD device defined by @mtd. @eb
Expand Down
2 changes: 1 addition & 1 deletion stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void show_group_stats(struct group_run_stats *rs, struct buf_output *out)
free(maxalt);
}

/* Need to aggregate statisitics to show mixed values */
/* Need to aggregate statistics to show mixed values */
if (rs->unified_rw_rep == UNIFIED_BOTH)
show_mixed_group_stats(rs, out);
}
Expand Down
2 changes: 1 addition & 1 deletion stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct group_run_stats {
* than one. This method has low accuracy when the value is small. For
* example, let the buckets be {[0,99],[100,199],...,[900,999]}, and
* the represented value of each bucket be the mean of the range. Then
* a value 0 has an round-off error of 49.5. To improve on this, we
* a value 0 has a round-off error of 49.5. To improve on this, we
* use buckets with non-uniform ranges, while bounding the error of
* each bucket within a ratio of the sample value. A simple example
* would be when error_bound = 0.005, buckets are {
Expand Down
2 changes: 1 addition & 1 deletion t/latency_percentiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def check_latencies(self, jsondata, ddir, slat=True, clat=True, tlat=True, plus=
#
# Check only for the presence/absence of json+
# latency bins. Future work can check the
# accurracy of the bin values and counts.
# accuracy of the bin values and counts.
#
# Because the latency percentiles are based on
# the bins, we can be confident that the bin
Expand Down
2 changes: 1 addition & 1 deletion t/one-core-peak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ check_binary() {
for bin in "$@"; do
if [ ! -x ${bin} ]; then
which ${bin} >/dev/null
[ $? -eq 0 ] || fatal "${bin} doesn't exists or is not executable"
[ $? -eq 0 ] || fatal "${bin} doesn't exist or is not executable"
fi
done
}
Expand Down
2 changes: 1 addition & 1 deletion t/readonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# readonly.py
#
# Do some basic tests of the --readonly paramter
# Do some basic tests of the --readonly parameter
#
# USAGE
# python readonly.py [-f fio-executable]
Expand Down
2 changes: 1 addition & 1 deletion t/sgunmap-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# sgunmap-test.py
#
# Limited functonality test for trim workloads using fio's sg ioengine
# Limited functionality test for trim workloads using fio's sg ioengine
# This checks only the three sets of reported iodepths
#
# !!!WARNING!!!
Expand Down
2 changes: 1 addition & 1 deletion t/steadystate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# steadystate_tests.py
#
# Test option parsing and functonality for fio's steady state detection feature.
# Test option parsing and functionality for fio's steady state detection feature.
#
# steadystate_tests.py --read file-for-read-testing --write file-for-write-testing ./fio
#
Expand Down
2 changes: 1 addition & 1 deletion t/time-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
* accuracy because the (ticks * clock_mult) product used for final
* fractional chunk
*
* iv) 64-bit arithmetic with the clock ticks to nsec conversion occuring in
* iv) 64-bit arithmetic with the clock ticks to nsec conversion occurring in
* two stages. This is carried out using locks to update the number of
* large time chunks (MAX_CLOCK_SEC_2STAGE) that have elapsed.
*
Expand Down
Loading

0 comments on commit fc002f1

Please sign in to comment.