Skip to content

Commit

Permalink
fix spelling/grammar mistakes
Browse files Browse the repository at this point in the history
Some spelling error sneaked in alongside #227
Let's fix them.

Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Feb 23, 2021
1 parent 43f5e63 commit b2315f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1280,13 +1280,13 @@ memory:

## Calling external programs

By default ghw may call external programs, for example `ethtool` to learn about hardware capabilities.
By default ghw may call external programs, for example `ethtool`, to learn about hardware capabilities.
In some rare circumstances it may be useful to opt out from this behaviour and rely only on the data
provided by pseudo-filesystems, like sysfs.
The most common use case is when we want to consume a snapshot from ghw. In these cases the information
provided by tools will be most likely inconsistent with the data from the snapshot - they will run on
a different host!
To make ghw not calling external tools, set the environs variable `GHW_DISABLE_TOOLS` to any value,
To prevent ghw from calling external tools, set the environs variable `GHW_DISABLE_TOOLS` to any value,
or, programmatically, check the `WithDisableTools` function.
The default behaviour of ghw is to call external tools when available.

Expand Down
6 changes: 3 additions & 3 deletions pkg/snapshot/clonetree_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const (
sysClassNet = "/sys/class/net"
)

// ExpectedCloneNetContent returns a slice of strings pertaning the network interfaces ghw
// ExpectedCloneNetContent returns a slice of strings pertaning to the network interfaces ghw
// cares about. We cannot use a static list because we want to filter away the virtual devices,
// which ghw doesn't concerns itself about. So we need to do some runtime discovery.
// which ghw doesn't concern itself about. So we need to do some runtime discovery.
// Additionally, we want to make sure to clone the backing device data.
func ExpectedCloneNetContent() []string {
var fileSpecs []string
Expand All @@ -41,7 +41,7 @@ func ExpectedCloneNetContent() []string {
}
if strings.Contains(dest, "devices/virtual/net") {
// there is no point in cloning data for virtual devices,
// becahse ghw concerns itself with HardWare.
// because ghw concerns itself with HardWare.
continue
}

Expand Down

0 comments on commit b2315f1

Please sign in to comment.