Skip to content

Commit 0d3215a

Browse files
committed
fix spelling
1 parent be4444f commit 0d3215a

10 files changed

+15
-15
lines changed

doc/usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ correctly written by ``f3write``, and figure out in which file the
107107
sector should be and in which position in that file the sector should
108108
be. Thus, if a sector is well formed, or with a few bits flipped, but
109109
read in an unexpected position, ``f3read`` counts it as overwritten.
110-
Slightly changed sectors, are sectors at right position with a fews bits
110+
Slightly changed sectors, are sectors at right position with a few bits
111111
flipped.
112112

113113
Notice that ``f3write`` doesn't overwrite sectors by itself, it's done

f3probe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static const struct unit_test_item ftype_to_params[] = {
230230
/* Extreme case for memory usage (limbo drive). */
231231
{(1ULL<<20)+512,1ULL << 40, 40, 9, -1, false},
232232

233-
/* Geomerty of a real limbo drive with 256MB of strict cache. */
233+
/* Geometry of a real limbo drive with 256MB of strict cache. */
234234
{7600799744ULL, 67108864000ULL, 36, 9, 19, true},
235235

236236
/* The drive before with a non-strict cache. */

f3read.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static void iterate_files(const char *path, const long *files,
404404
if (has_enough_measurements(&fw)) {
405405
pr_avg_speed(get_avg_speed(&fw));
406406
} else {
407-
/* If the drive is too fast for the measuments above,
407+
/* If the drive is too fast for the measurements above,
408408
* try a coarse approximation of the reading speed.
409409
*/
410410
int64_t total_time_ms = delay_ms(&t1, &t2);
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
426426
.start_at = 0,
427427
.end_at = LONG_MAX - 1,
428428
.max_read_rate = 0,
429-
/* If stdout isn't a terminal, supress progress. */
429+
/* If stdout isn't a terminal, suppress progress. */
430430
.show_progress = isatty(STDOUT_FILENO),
431431
};
432432

f3write.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static int fill_fs(const char *path, long start_at, long end_at,
320320
if (has_enough_measurements(&fw)) {
321321
pr_avg_speed(get_avg_speed(&fw));
322322
} else {
323-
/* If the drive is too fast for the measuments above,
323+
/* If the drive is too fast for the measurements above,
324324
* try a coarse approximation of the writing speed.
325325
*/
326326
int64_t total_time_ms = delay_ms(&t1, &t2);
@@ -360,7 +360,7 @@ int main(int argc, char **argv)
360360
.start_at = 0,
361361
.end_at = LONG_MAX - 1,
362362
.max_write_rate = 0,
363-
/* If stdout isn't a terminal, supress progress. */
363+
/* If stdout isn't a terminal, suppress progress. */
364364
.show_progress = isatty(STDOUT_FILENO),
365365
};
366366

libdevs.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,13 @@ static int wait_for_reset(struct udev *udev, const char *id_serial,
580580
action = udev_device_get_action(dev);
581581
new_size_byte = get_udev_dev_size_byte(dev);
582582
if (!strcmp(action, "add")) {
583-
/* Deal with the case in wich the user pulls
583+
/* Deal with the case in which the user pulls
584584
* the USB device.
585585
*
586586
* DO NOTHING.
587587
*/
588588
} else if (!strcmp(action, "change")) {
589-
/* Deal with the case in wich the user pulls
589+
/* Deal with the case in which the user pulls
590590
* the memory card from the card reader.
591591
*/
592592

@@ -712,7 +712,7 @@ static int bdev_manual_usb_reset(struct device *dev)
712712
bdev->fd = bdev_open(bdev->filename);
713713
if (bdev->fd < 0) {
714714
rc = - errno;
715-
warn("Can't REopen device `%s'", bdev->filename);
715+
warn("Can't reopen device `%s'", bdev->filename);
716716
goto usb_dev;
717717
}
718718

@@ -808,7 +808,7 @@ static int bdev_usb_reset(struct device *dev)
808808
bdev->fd = bdev_open(bdev->filename);
809809
if (bdev->fd < 0) {
810810
int rc = - errno;
811-
warn("Can't REopen device `%s'", bdev->filename);
811+
warn("Can't reopen device `%s'", bdev->filename);
812812
return rc;
813813
}
814814
return 0;

libdevs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const char *dev_get_filename(struct device *dev);
6060
* batch writes or reads.
6161
*
6262
* It must be a power of 2 greater than, or equal to 2^20.
63-
* The current vaule is 1MB.
63+
* The current value is 1MB.
6464
*/
6565
#define BIG_BLOCK_SIZE_BYTE (1 << 20)
6666

libflow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static inline int is_rate_above(const struct flow *fw,
193193
static inline int is_rate_below(const struct flow *fw,
194194
uint64_t delay, double inst_speed)
195195
{
196-
/* We use logical and here to enforce both limist. */
196+
/* We use logical and here to enforce both limits. */
197197
return delay <= fw->delay_ms && inst_speed < fw->max_process_rate;
198198
}
199199

libflow.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct flow {
1616
int progress;
1717
/* Block size in bytes. */
1818
int block_size;
19-
/* Delay intended between measurements in miliseconds. */
19+
/* Delay intended between measurements in milliseconds. */
2020
unsigned int delay_ms;
2121
/* Increment to apply to @blocks_per_delay. */
2222
int64_t step;

libprobe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static int write_bisect_blocks(struct device *dev,
159159

160160
assert(n_blocks >= 1);
161161

162-
/* Find coeficients of function a*idx + b where idx <= max_idx. */
162+
/* Find coefficients of function a*idx + b where idx <= max_idx. */
163163
assert(left_pos < right_pos);
164164
assert(right_pos - left_pos >= 2);
165165
*pb = left_pos + 1;

libutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void fill_buffer_with_block(void *buf, int block_order, uint64_t offset,
209209

210210
/* The offset is known by drives,
211211
* so one doesn't have to encrypt it.
212-
* Plese don't add @salt here!
212+
* Please don't add @salt here!
213213
*/
214214
int64_array[0] = offset;
215215

0 commit comments

Comments
 (0)